rman恢复遭遇ora-1152
在一次rman异机恢复中,遇到了ora-1152的错误。
Error Text, Cause and Action from Message File/s for ORA-01152
Versions 9.2, 10.1, 10.2, 11.1, 11.2, 12.1 Error: ORA-01152 file %s was not restored from a sufficiently old backup --------------------------------------------------------------------------- Cause: An incomplete recovery session was started, but an insufficient number of logs were applied to make the database consistent. This file is still in the future of the last log applied. The most likely cause of this error is forgetting to restore the file from a backup before doing incomplete recovery. Action: Either apply more logs until the database is consistent or restore the database file from an older backup and repeat recovery.
可能metalink上描述不够清晰,只是说明是日志问题,最后总结2种解决方案
1、根据scn进行恢复
查询scan
SQL> select max(checkpoint_change#) from v$datafile_header;
(数据文件最大的现有SCN)
MAX(CHECKPOINT_CHANGE#)
-----------------------
554055
SQL> select checkpoint_change#,current_scn from v$database (控制文件scn)
CHECKPOINT_CHANGE# CURRENT_SCN
------------------ -----------
554193 0
RMAN> list backup of archivelog all;
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 45 554130 23-MAR-11 554151 23-MAR-11
SQL> select sequence# from v$log;
SEQUENCE#
----------
50
51
49
很容易发现,备份的日志组是45号,但是时间上面已经到了51号,可能原因是备份时间长,备份过程中产生了日志切换。
那么恢复的时候只需要回到45号日志组 scn 554151。
2、使用隐藏参数强制打开
startup force
alter system set "_allow_resetlogs_corruption“=true scope=spfile;
recover database using backup controlfile until cancel;
alter database open resetlogs;
- RMAN异机恢复遭遇ORA-01547、ORA-01152、ORA-01110错误案例
- 非归档恢复遭遇ORA-01190 和 ORA-600 [krhpfh_03-1202]–恢复小记
- RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154
- help!ORACLE RMAN恢复问题ORA-01152 ORA-01110
- 用rman进行恢复数据,出现RMAN-03009,RMAN-11003,ORA-01991错误
- rman备份恢复到异机报ORA-01110 ORA-01180错误
- 恢复RMAN备份时遇到ORA-01180错误
- rman恢复好数据库 exp时 出错 EXP-00056 ORA-01403
- RMAN-03009,ORA-00230错误恢复
- rman恢复报ORA-27039
- RMAN中通过时间点不完全恢复报ORA-01841的解决办法
- Rman恢复出现ORA-19755, 无法打开Block Change Tracking文件
- 只有spfile和控制文件情况下进行rman恢复时报ORA-00312 ORA-00313错误
- Oracle 恢复坏块方法(ORA-01578)—RMAN恢复
- rman 恢复数据错误案例--ORA-19573 错误
- rman 恢复数据错误案例--ORA-19573 错误
- rman 恢复数据错误案例--ORA-19573 错误
- RMAN duplicate from active 时遭遇 ORA-17627 ORA-12154
- RMAN恢复报ORA-19563错误
- 用rman恢复备库;遇到备库起不来一个案例 ORA-01152:ORA-01110