没有备份的current状态的redo日志损坏
2014-05-29 10:33
399 查看
SQL> select* from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- -------------------- --- ---------------- ------------- ---------
1 1 2 52428800 1 YES ACTIVE 464602 07-SEP-12
2 1 3 52428800 1 NO CURRENT 464604 07-SEP-12
3 1 1 52428800 1 YES ACTIVE 464091 07-SEP-12
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ----------------------------------------------- ---
3 ONLINE /u01/tiger/oradata/orcl/redo03.log NO
2 ONLINE /u01/tiger/oradata/orcl/redo02.log NO
1 ONLINE /u01/tiger/oradata/orcl/redo01.log NO
SQL> !cp /etc/passwd/u01/tiger/oradata/orcl/redo02.log
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-03113: end-of-file on communicationchannel
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
Oracle instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219136 bytes
Variable Size 117441984 bytes
Database Buffers 188743680 bytes
Redo Buffers 7168000 bytes
Database mounted.
ORA-00316:log 2 of thread 1, type 14900 in header is not log file
ORA-00312: online log 2 thread 1:'/u01/tiger/oradata/orcl/redo02.log'
SQL> recover database;
ORA-00283: recovery session canceled due toerrors
ORA-00316: log 2 of thread 1, type 14900 inheader is not log file
ORA-00312: online log 2 thread 1:'/u01/tiger/oradata/orcl/redo02.log'
SQL> recover database until cancel;
ORA-00279: change 464604 generated at09/07/2012 15:26:50 needed for thread 1
ORA-00289: suggestion :/u01/tiger/flash_recovery_area/ORCL/archivelog/2012_09_07/o1_mf_1_3_%u_.arc
ORA-00280: change 464604 for thread 1 is insequence #3
Specify log: {<RET>=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:'/u01/tiger/oradata/orcl/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS orNORESETLOGS option for database open
SQL> alter database open resetlogs;
Database altered.
无备份的使用隐含参数恢复
如果出现如下情况
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to beconsistent
ORA-01110: data file 1:'/u01/oracle/oradata/ora10g/system01.dbf'
我们只能放弃不完全恢复使用隐含参数恢复
altersystem set "_allow_resetlogs_corruption"=true scope=spfile;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- -------------------- --- ---------------- ------------- ---------
1 1 2 52428800 1 YES ACTIVE 464602 07-SEP-12
2 1 3 52428800 1 NO CURRENT 464604 07-SEP-12
3 1 1 52428800 1 YES ACTIVE 464091 07-SEP-12
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ----------------------------------------------- ---
3 ONLINE /u01/tiger/oradata/orcl/redo03.log NO
2 ONLINE /u01/tiger/oradata/orcl/redo02.log NO
1 ONLINE /u01/tiger/oradata/orcl/redo01.log NO
SQL> !cp /etc/passwd/u01/tiger/oradata/orcl/redo02.log
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-03113: end-of-file on communicationchannel
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
Oracle instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219136 bytes
Variable Size 117441984 bytes
Database Buffers 188743680 bytes
Redo Buffers 7168000 bytes
Database mounted.
ORA-00316:log 2 of thread 1, type 14900 in header is not log file
ORA-00312: online log 2 thread 1:'/u01/tiger/oradata/orcl/redo02.log'
SQL> recover database;
ORA-00283: recovery session canceled due toerrors
ORA-00316: log 2 of thread 1, type 14900 inheader is not log file
ORA-00312: online log 2 thread 1:'/u01/tiger/oradata/orcl/redo02.log'
SQL> recover database until cancel;
ORA-00279: change 464604 generated at09/07/2012 15:26:50 needed for thread 1
ORA-00289: suggestion :/u01/tiger/flash_recovery_area/ORCL/archivelog/2012_09_07/o1_mf_1_3_%u_.arc
ORA-00280: change 464604 for thread 1 is insequence #3
Specify log: {<RET>=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:'/u01/tiger/oradata/orcl/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS orNORESETLOGS option for database open
SQL> alter database open resetlogs;
Database altered.
无备份的使用隐含参数恢复
如果出现如下情况
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to beconsistent
ORA-01110: data file 1:'/u01/oracle/oradata/ora10g/system01.dbf'
我们只能放弃不完全恢复使用隐含参数恢复
altersystem set "_allow_resetlogs_corruption"=true scope=spfile;
相关文章推荐
- 没有备份的current状态的redo日志损坏
- noarchive 数据库current redo log 损坏,没有备份如何应对
- redo日志文件组的三种状态(current,active,inactive)
- 归档模式下redo丢失或损坏(current状态)
- oracle重做日志文件(REDO)损坏或者丢失的恢复操作
- [Oracle] 解析在没有备份的情况下undo损坏怎么办
- 当前在线日志损坏,无所有数据文件备份。异常关闭(实验系列)
- exchange解决全备份后日志没有删除的经验之一
- Oracle数据库诊断案例-redo log日志组处于高激活状态
- Oracle数据库诊断案例-redo log日志组处于高激活状态
- SQL2008报错:无法还原日志备份或差异备份,因为没有文件可用于前滚(转)
- 模拟状态为active的日志损坏的数据恢复实验(不完全恢复)
- 【一个不错的oracle数据库诊断例子,值得学习一下】Oracle数据库诊断案例-redo log日志组处于高激活状态
- Oracle Redo日志的状态
- 还原SQLSERVER数据库差异备份--无法还原日志备份或差异备份,因为没有文件可用于前滚
- 异常断电导致current redo损坏处理
- 模拟状态为inactive的日志损坏的恢复实验(完全恢复)
- 事务日志 备份出错 属性ismanagementdatawarehouse在数据库不可用 或着没有权限
- 当前REDO日志损坏的解决
- 主数据文件损坏(或丢失)情况下,如何备份尾部事务日志.