目录
1、现象
在进行rman的不完全恢复时,执行到:
recover database using backup controlfile until cancel;出现此问题: ORACLE—ORA-01190: control file or data file 1 is from before the last RESETLOGS
2、分析
针对上述问题,分析原因:
(1)官方解释:
ORA-01190:控制文件或数据文件’datafile’是从上次重置日志文件之前创建的。
(2)我之前的操作方法是从5-6的进程。
(3)分析原因:
第一次resetlogs之后,我们应该立即进行rman备份。而不应该出现问题后,再利用incarnation1的rman进行恢复,如此会出现上述问题。
3、解决方法
(1)将隐藏参数_allow_resetlogs_corruption设置为TRUE
alter system set "_allow_resetlogs_corruption"=true scope=both;
(2)开始恢复
RMAN> startup nomount; RMAN> restore controlfile from '/oracle/archivelog/MESORCL/backupset/2023_06_02/o1_mf_ncsnf_TAG20230602T142637_l7m2x5or_.bkp'; RMAN> alter database mount; RMAN> restore database; SQL>recover database using backup controlfile until cancel; SQL>alter database open resetlogs;