归档无备份,丢失redo和undo文件后,该如何恢复?

[复制链接]
查看11 | 回复9 | 2010-10-8 09:28:52 | 显示全部楼层 |阅读模式
归档无备份,丢失redo和undo文件后,该如何恢复?
环境:
oracle 11.2 linux 系统, Archive Mode 无备份 。
试验方式:
1.t1表先插入几行数据,commit, 切换日志,生成一个归档日志文件。
2.再插入几行数据,commit,写入redo文件,
3.更新t1表记录,不做commit,undo段有写入的信息。
4.模拟数据丢失,删除redo和undo文件。
5.使用_allow_resetlogs_corruption 和 _corrupted_rollback_segment 隐含参数强行打开数据库。
结果打开数据库还是失败。提示Undo有问题,请大家给看看。
下面是操作步骤:
1.建立测试数据:
SQL> create table test01.t1(id number,name varchar2(30));
Table created.
SQL>insert into test01.t1 select rownum,username from dba_users where rownum commit;
Commit complete.
SQL> archive log list;
Database log mode
Archive Mode
Automatic archival
Enabled
Archive destination
/u02/archive/aux
Oldest online log sequence 1
Next log sequence to archive 1
Current log sequence 1
切换日志,生成一个归档日志文件
SQL> alter system switch logfile;
System altered.
SQL> insert into test01.t1 select rownum+4,username from dba_users where rownum select * from test01.t1;
ID NAME
---------- ------------------------------
1 TEST01
2 SCOTT
3 ORACLE_OCM
4 XS$NULL
5 TEST01
6 SCOTT
7 ORACLE_OCM
8 XS$NULL
8 rows selected.
commit,写入redo文件。
SQL> commit;
Commit complete.

SQL> update test01.t1 set name=name||'1';
8 rows updated.
SQL>select * from test01.t1;
ID NAME
---------- ------------------------------
1 TEST011
2 SCOTT1
3 ORACLE_OCM1
4 XS$NULL1
5 TEST011
6 SCOTT1
7 ORACLE_OCM1
8 XS$NULL1
8 rows selected.
2.模拟数据丢失,删除所有redo 文件和 undo文件。
[oracle@kmed aux]$ ll
total 1711792
drwxr-xr-x 2 oracle oinstall4096 Nov 28 10:16 aux_colbk
-rw-r----- 1 oracle asmadmin10076160 Dec 17 19:20 control01.ctl
-rw-r----- 1 oracle asmadmin10076160 Dec 17 19:20 control02.ctl
-rw-r----- 1 oracle asmadmin10076160 Dec 17 19:20 control03.ctl
-rw-r----- 1 oracle asmadmin 104865792 Dec 17 19:16 example01.dbf
-rw-r----- 1 oracle asmadmin52429312 Dec 17 19:19 redo01.log
-rw-r----- 1 oracle asmadmin52429312 Dec 17 19:19 redo02.log
-rw-r----- 1 oracle asmadmin52429312 Dec 17 19:16 redo03.log
-rw-r----- 1 oracle asmadmin 534781952 Dec 17 19:18 sysaux01.dbf
-rw-r----- 1 oracle asmadmin 723525632 Dec 17 19:18 system01.dbf
-rw-r----- 1 oracle asmadmin30416896 Dec 17 19:18 temp01.dbf
-rw-r----- 1 oracle asmadmin10493952 Dec 17 19:18 test01.dbf
-rw-r----- 1 oracle asmadmin 5251072 Dec 17 19:16 test02.dbf
-rw-r----- 1 oracle asmadmin 5251072 Dec 17 19:16 test03.dbf
-rw-r----- 1 oracle asmadmin 5251072 Dec 17 19:16 test04.dbf
-rw-r----- 1 oracle asmadmin 5251072 Dec 17 19:13 test05.dbf
-rw-r----- 1 oracle oinstall 110108672 Dec 17 19:16 undotbs01.dbf
-rw-r----- 1 oracle asmadmin 5251072 Dec 17 19:16 users01.dbf
[oracle@kmed aux]$ rm *.log
[oracle@kmed aux]$ rm undotbs*
3.abort数据库
SQL> shutdown abort;
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

4.修改参数文件,修改undo 和增加2个隐含参数。
*.streams_pool_size=12M
*.undo_retention=3600
*.undo_tablespace='SYSTEM'
*.undo_management=manual
*.utl_file_dir='*'
#*._allow_resetlogs_corruption=true
*._corrupted_rollback_segments=(_SYSSMU1$,_SYSSMU2$,_SYSSMU3$,_SYSSMU4$,_SYSSMU5$,_SYSSMU6$,_SYSSMU7$,_SYSSMU8$,_SYSSMU9$,_SYSSMU10$)
"initaux.ora" 178L, 6383C written

5.启动数据库报01110错误。
[oracle@kmed dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 17 19:20:29 2010
Copyright (c) 1982, 2009, Oracle.All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area255270912 bytes
Fixed Size
1335836 bytes
Variable Size
213913060 bytes
Database Buffers 37748736 bytes
Redo Buffers
2273280 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
SQL> col name format a30;
SQL> select name,status from v$datafile;
NAME
STATUS
------------------------------ -------
/u02/oradata/aux/system01.dbfSYSTEM
/u02/oradata/aux/sysaux01.dbfONLINE
/u02/oradata/aux/undotbs01.dbf ONLINE
/u02/oradata/aux/users01.dbf ONLINE
/u02/oradata/aux/example01.dbf ONLINE
/u02/oradata/aux/test01.dbfONLINE
/u02/oradata/aux/test02.dbfONLINE
/u02/oradata/aux/test03.dbfONLINE
/u02/oradata/aux/test04.dbfONLINE
9 rows selected.

6.offline undo 表空间,打开数据还是报错误。
SQL> alter database datafile '/u02/oradata/aux/undotbs01.dbf' offline drop;
Database altered.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/u02/oradata/aux/redo01.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
7.应用所有日志。
SQL> recover database until cancel;
ORA-00279: change 958435 generated at 12/17/2010 19:16:55 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_1_737931497.dbf
ORA-00280: change 958435 for thread 1 is in sequence #1

Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00279: change 958834 generated at 12/17/2010 19:19:21 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_2_737931497.dbf
ORA-00280: change 958834 for thread 1 is in sequence #2
ORA-00278: log file '/u02/archive/aux/1_1_737931497.dbf' no longer needed for
this recovery

Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log '/u02/archive/aux/1_2_737931497.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/oradata/aux/system01.dbf'

SQL> recover database until cancel;
ORA-00279: change 958834 generated at 12/17/2010 19:19:21 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_2_737931497.dbf
ORA-00280: change 958834 for thread 1 is in sequence #2

Specify log: {=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/oradata/aux/system01.dbf'

ORA-01112: media recovery not started
7.resetlogs 打开数据库,还是错误,
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
Process ID: 4698
Session ID: 1 Serial number: 5

8. alert日志文件中的信息:
ARC1: Archival started
ARC2: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC1: Becoming the 'no SRL' ARCH
ARC2: Becoming the heartbeat ARCH
Fri Dec 17 19:24:40 2010
ARC3 started with pid=23, OS id=4811
Archived Log entry 2 added for thread 1 sequence 1 ID 0x5ed9315b dest 2:
Errors in file /u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc:
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
Errors in file /u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc:
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
Error 704 happened during db open, shutting down database
USER (ospid: 4803): terminating the instance due to error 704
Instance terminated by USER, pid = 4803
ORA-1092 signalled during: alter database open...
opiodr aborting process unknown ospid (4803) as a result of ORA-1092
Fri Dec 17 19:24:42 2010
ORA-1092 : opitsk aborting process


9.trace 文件中的信息:
[oracle@kmed ~]$ vi /u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc
Trace file /u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u02/app/oracle
System name:Linux
Node name:kmed
Release:2.6.18-128.el5
Version:#1 SMP Wed Jan 21 10:44:23 EST 2009
Machine:i686
Instance name: aux
Redo thread mounted by this instance: 1
Oracle process number: 19
Unix process pid: 4803, image: oracle@kmed (TNS V1-V3)

*** 2010-12-17 19:24:39.384
*** SESSION ID:(1.5) 2010-12-17 19:24:39.384
*** CLIENT ID:() 2010-12-17 19:24:39.384
*** SERVICE NAME:() 2010-12-17 19:24:39.384
*** MODULE NAME:(sqlplus@kmed (TNS V1-V3)) 2010-12-17 19:24:39.384
*** ACTION NAME:() 2010-12-17 19:24:39.384
Thread 1 checkpoint: logseq 1, block 2, scn 958838
start recovery at logseq 1, block 2, scn 958838
*** 2010-12-17 19:24:39.517
Started writing zeroblks thread 1 seq 1 blocks 3-10
*** 2010-12-17 19:24:39.518
Completed writing zeroblks thread 1 seq 1
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 0Kb in 0.13s => 0.00 Mb/sec
Longest record: 0Kb, moves: 0/1 (0%)
Longest LWN: 0Kb, moves: 0/1 (0%), moved: 0Mb
Last redo scn: 0x0000.000ea177 (958839)
----------------------------------------------
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
"/u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc" 92L, 3254C
1,1 Top
Trace file /u02/app/diag/rdbms/aux/aux/trace/aux_ora_4803.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u02/app/oracle
System name:Linux
Node name:kmed
Release:2.6.18-128.el5
Version:#1 SMP Wed Jan 21 10:44:23 EST 2009
Machine:i686
Instance name: aux
Redo thread mounted by this instance: 1
Oracle process number: 19
Unix process pid: 4803, image: oracle@kmed (TNS V1-V3)

*** 2010-12-17 19:24:39.384
*** SESSION ID:(1.5) 2010-12-17 19:24:39.384
*** CLIENT ID:() 2010-12-17 19:24:39.384
*** SERVICE NAME:() 2010-12-17 19:24:39.384
*** MODULE NAME:(sqlplus@kmed (TNS V1-V3)) 2010-12-17 19:24:39.384
*** ACTION NAME:() 2010-12-17 19:24:39.384
Thread 1 checkpoint: logseq 1, block 2, scn 958838
start recovery at logseq 1, block 2, scn 958838
*** 2010-12-17 19:24:39.517
Started writing zeroblks thread 1 seq 1 blocks 3-10
*** 2010-12-17 19:24:39.518
Completed writing zeroblks thread 1 seq 1
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 0Kb in 0.13s => 0.00 Mb/sec
Longest record: 0Kb, moves: 0/1 (0%)
Longest LWN: 0Kb, moves: 0/1 (0%), moved: 0Mb
Last redo scn: 0x0000.000ea177 (958839)
----------------------------------------------
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768

1,1 Top
*** 2010-12-17 19:24:39.528
Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
*** 2010-12-17 19:24:39.529
Completed redo application of 0.00MB
*** 2010-12-17 19:24:39.529
Completed recovery checkpoint
IR RIA: redo_size 0 bytes, time_taken 11 ms
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 0
Average hash chain = 0/0 = 0.0
Max compares per lookup = 0
Avg compares per lookup = 0/0 = 0.0
----------------------------------------------
Recovery sets nab of thread 1 seq 1 to 3 with 8 zeroblks
*** 2010-12-17 19:24:41.217
DDE rules only execution for: ORA 1110
----- START Event Driven Actions Dump ----
---- END Event Driven Actions Dump ----
----- START DDE Actions Dump -----
Executing SYNC actions
----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
Successfully dispatched
----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 3 csec) -----
Executing ASYNC actions
----- END DDE Actions Dump (total 3 csec) -----
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '/u02/oradata/aux/undotbs01.dbf'
*** 2010-12-17 19:24:41.246
USER (ospid: 4803): terminating the instance due to error 704
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
归档无备份?
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
原帖由 我上面有人 于 2010-12-17 21:13 发表
归档无备份?


可能我没说清楚,我的意思是这个数据库是归档模式,没有做过任何备份。这个是虚拟机的库,做实验用的。
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
不能沉啊,各位出来帮衬一下啊。
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
没有备份的话,归档日志就成了无本之木啊。
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
原帖由 我上面有人 于 2010-12-18 16:02 发表
没有备份的话,归档日志就成了无本之木啊。

我的实际的数据文件没有丢失,只是丢失了undo和redo文件,应该是可以做到不完全恢复的吧。
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
请求版主来解决这个问题,能打开数据库就行,可以不应用日志。
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
可以做不完全恢复的。
呵呵,
只要数据文件在,就可以做不完全恢复,记住了。
这样吧尝试加个参数
adjust_scn = true
或者
在mount下
alter session set events '10015 trace name adjust_scn level 1';
[ 本帖最后由 ludal 于 2010-12-20 10:06 编辑 ]
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
原帖由 ludal 于 2010-12-20 10:04 发表
可以做不完全恢复的。
呵呵,
只要数据文件在,就可以做不完全恢复,记住了。
这样吧尝试加个参数
adjust_scn = true
或者
在mount下
alter session set events '10015 trace name adjust_scn level 1';


上次做的实验是在家里做的,按照楼上的提示,刚才又重新模拟了一遍,还是无法打开,
下面是操作步骤。
1.建立实验数据:
SQL> create tablespace test1 datafile '/u02/oradata/aux/test101.dbf' size 10m;
Tablespace created.
SQL> create user test01 identified by test01 default tablespace test1;
User created.
SQL> grant dba to test01;
Grant succeeded.
SQL> create table test01.t1 (id number,name varchar2(10));
Table created.
SQL> insert into test01.t1 select rownum,username from dba_users where rownum commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
SQL> insert into test01.t1 select rownum+4,username from dba_users where rownum commit;
Commit complete.
SQL> update test01.t1 set name=name||'aaa';
8 rows updated.
SQL> select name from v$rollname;
NAME
----------------------------------------
SYSTEM
_SYSSMU1$
_SYSSMU2$
_SYSSMU3$
_SYSSMU4$
_SYSSMU5$
_SYSSMU6$
_SYSSMU7$
_SYSSMU8$
_SYSSMU9$
_SYSSMU10$
11 rows selected.
2.删除undo文件
[oracle@kingmed aux]$ ll
total 1061348
-rw-r-----1 oracle oinstall 7061504 Dec 20 00:36 control01.ctl
-rw-r-----1 oracle oinstall 7061504 Dec 20 00:36 control02.ctl
-rw-r-----1 oracle oinstall 7061504 Dec 20 00:36 control03.ctl
-rw-r-----1 oracle oinstall 104865792 Dec 20 00:32 example01.dbf
-rw-r-----1 oracle oinstall52429312 Dec 20 00:35 redo01.log
-rw-r-----1 oracle oinstall52429312 Dec 20 00:32 redo02.log
-rw-r-----1 oracle oinstall52429312 Dec 20 00:34 redo03.log
-rw-r-----1 oracle oinstall 251666432 Dec 20 00:32 sysaux01.dbf
-rw-r-----1 oracle oinstall 503324672 Dec 20 00:32 system01.dbf
-rw-r-----1 oracle oinstall20979712 Dec 20 00:19 temp01.dbf
-rw-r-----1 oracle oinstall10493952 Dec 20 00:33 test101.dbf
-rw-r-----1 oracle oinstall31465472 Dec 20 00:32 undotbs01.dbf
-rw-r-----1 oracle oinstall 5251072 Dec 20 00:32 users01.dbf
[oracle@kingmed aux]$ mv undotbs01.dbf undotbs01.dbf.bk
3.修改参数文件
修改参数文件,加_CORRUPTED_ROLLBACK_SEGMENTS ,修改Undo 为手动管理。
*.sga_target=434110464
*.undo_management='MANUAL'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/aux/udump'
#*._allow_resetlogs_corruption=ture
*._CORRUPTED_ROLLBACK_SEGMENTS=(_SYSSMU1$,_SYSSMU2$,_SYSSMU3$,_SYSSMU4$,_SYSSMU5$,_SYSSMU6$,_SYSSMU7$,_SYSSMU8$,_SYSSMU9$,_SYSSMU10$)
4.abort关闭。
SQL> shutdown abort;
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@kingmed ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 20 00:37:49 2010
Copyright (c) 1982, 2005, Oracle.All rights reserved.
Connected to an idle instance.
5.用新的参数启动数据库。
SQL> startup mount pfile ='/u01/app/oracle/10.2.0/db1/dbs/initaux.ora';
ORACLE instance started.
Total System Global Area436207616 bytes
Fixed Size
1219856 bytes
Variable Size
130024176 bytes
Database Buffers
301989888 bytes
Redo Buffers
2973696 bytes
Database mounted.
SQL> col name format a40;
SQL> select name,status from v$datafile;
NAME
STATUS
---------------------------------------- -------
/u02/oradata/aux/system01.dbf
SYSTEM
/u02/oradata/aux/undotbs01.dbf ONLINE
/u02/oradata/aux/sysaux01.dbf
ONLINE
/u02/oradata/aux/users01.dbf
ONLINE
/u02/oradata/aux/example01.dbf ONLINE
/u02/oradata/aux/test101.dbf
ONLINE
6 rows selected.

6.offline undo.
SQL> alter database datafile '/u02/oradata/aux/undotbs01.dbf' offline drop;
Database altered.
7.recover 日志
SQL> recover database until cancel;
ORA-00279: change 479245 generated at 12/20/2010 00:32:01 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_4_738092540.dbf
ORA-00280: change 479245 for thread 1 is in sequence #4
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00279: change 479597 generated at 12/20/2010 00:34:53 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_5_738092540.dbf
ORA-00280: change 479597 for thread 1 is in sequence #5
ORA-00278: log file '/u02/archive/aux/1_4_738092540.dbf' no longer needed for
this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00326: log begins at change 479666, need earlier change 479597
ORA-00334: archived log: '/u02/archive/aux/1_5_738092540.dbf'
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/oradata/aux/system01.dbf'
SQL> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 CURRENT
3 ACTIVE
2 INACTIVE
SQL> recover database until cancel;
ORA-00279: change 479597 generated at 12/20/2010 00:34:53 needed for thread 1
ORA-00289: suggestion : /u02/archive/aux/1_5_738092540.dbf
ORA-00280: change 479597 for thread 1 is in sequence #5
Specify log: {=suggested | filename | AUTO | CANCEL}
/u02/oradata/aux/redo01.log
Log applied.
Media recovery complete.

8.open 数据库失败。
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@kingmed ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 20 00:44:07 2010
Copyright (c) 1982, 2005, Oracle.All rights reserved.
Connected to an idle instance.
9.重新mount数据库
SQL> startup mount pfile ='/u01/app/oracle/10.2.0/db1/dbs/initaux.ora';
ORACLE instance started.
Total System Global Area436207616 bytes
Fixed Size
1219856 bytes
Variable Size
130024176 bytes
Database Buffers
301989888 bytes
Redo Buffers
2973696 bytes
Database mounted.
10.加adjust_scn参数
SQL> alter session set events '10015 trace name adjust_scn level 1';
Session altered.
11.open 数据库还是失败。
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced

12.alert信息。
ARC1: Becoming the 'no SRL' ARCH
Mon Dec 20 00:40:08 2010
Thread 1 opened at log sequence 1
Current log# 1 seq# 1 mem# 0: /u02/oradata/aux/redo01.log
Successful open of redo thread 1
Mon Dec 20 00:40:08 2010
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Mon Dec 20 00:40:08 2010
SMON: enabling cache recovery
Mon Dec 20 00:40:09 2010
Errors in file /u01/app/oracle/admin/aux/udump/aux_ora_9733.trc:
ORA-00704: bootstrap process failure
ORA-00604: error occurred at recursive SQL level 2
ORA-00376: file 2 cannot be read at this time
ORA-01110: data file 2: '/u02/oradata/aux/undotbs01.dbf'
Mon Dec 20 00:40:09 2010
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Instance terminated by USER, pid = 9733
ORA-1092 signalled during: alter database open resetlogs...
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
我也听其它人说过,只要数据文件在是可以打开数据库的!期待大家帮手
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行