日期:2014-05-16 浏览次数:20749 次
第一:损坏的redo为非正在使用的redo log;
1、归档模式,不是当前正在日志损坏,数据库打开模式。
模拟损坏:
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 388 52428800 512 1 YES INACTIVE 5385552 27-OCT-13 5385555 27-OCT-13
2 1 389 52428800 512 1 YES INACTIVE 5385555 27-OCT-13 5385558 27-OCT-13
3 1 390 52428800 512 1 NO CURRENT 5385558 27-OCT-13 2.8147E+14
4 1 387 52428800 512 1 YES INACTIVE 5385548 27-OCT-13 5385552 27-OCT-13
SQL> !rm redo02.log
SQL> !ls -l
total 3647744
-rw-r-----. 1 oracle oinstall 9977856 Oct 27 17:36 control01.ctl
-rw-r-----. 1 oracle oinstall 362422272 Oct 27 17:35 example01.dbf
-rw-r-----. 1 oracle oinstall 62922752 Oct 27 17:35 index_tablespace.dbf
-rw-r-----. 1 oracle oinstall 52429312 Oct 27 17:35 redo01.log
-rw-r-----. 1 oracle oinstall 52429312 Oct 27 17:35 redo03.log
-rw-r-----. 1 oracle oinstall 52429312 Oct 27 17:35 redo04.log
-rw-r-----. 1 oracle oinstall 52429312 Oct 25 16:45 redo4_1.log
-rw-r-----. 1 oracle oinstall 524296192 Oct 27 17:35 Rhys_Amy.dbf
-rw-r-----. 1 oracle oinstall 524296192 Oct 27 17:35 statspack.dbf
-rw-r-----. 1 oracle oinstall 671096832 Oct 27 17:35 sysaux01.dbf
-rw-r-----. 1 oracle oinstall 796925952 Oct 27 17:35 system01.dbf
-rw-r-----. 1 oracle oinstall 44048384 Oct 27 16:18 temp01.dbf
-rw-r-----. 1 oracle oinstall 524296192 Oct 27 17:35 undotbs02.dbf
-rw-r-----. 1 oracle oinstall 5251072 Oct 27 17:35 users01.dbf
SQL>
日志提示错误:
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /opt/app/oracle/diag/rdbms/rhys/RHYS/trace/RHYS_arc2_1758.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/opt/app/oracle/oradata/RHYS/redo02.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Master background archival failure