ALLSTARS_ORACLE 发表于 2017-4-14 17:55:52

ORA-01190: control file or data file 6 is from before the last RESETLOGS


如题,打开数据库的时候,出现了下面的错误:数据文件6或控制文件是上个resetlogs的版本
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01190: control file or data file 6 is from before the last RESETLOGS
ORA-01110: data file 6: 'D:\APP\ASUS\ORADATA\TEST\TEST01.DBF'
复制代码
利用RMAN诊断后,advise failure的建议是“recover datafile 6;”不过执行了之后,还是报错:
SQL>  recover datafile 6;
ORA-00283: recovery session canceled due to errors
ORA-19909: datafile 6 belongs to an orphan incarnation
ORA-01110: data file 6: 'D:\APP\ASUS\ORADATA\TEST\TEST01.DBF'
复制代码
后来我尝试修改参数"_allow_resetlogs_corruption"=true
然后,在恢复整个数据库,结果还是报错:
SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile;

System altered.

SQL> shutdown immediate;
ORA-01109: database not open


Database dismounted.
ORACLE instance shut down.

SQL> startup mount;
ORACLE instance started.

Total System Global Area  644468736 bytes
Fixed Size                  1376520 bytes
Variable Size             268439288 bytes
Database Buffers          369098752 bytes
Redo Buffers                5554176 bytes
Database mounted.

SQL> recover datafile 6;
ORA-00283: recovery session canceled due to errors
ORA-19909: datafile 6 belongs to an orphan incarnation
ORA-01110: data file 6: 'D:\APP\ASUS\ORADATA\TEST\TEST01.DBF'


SQL> recover database until cancel;
ORA-00283: recovery session canceled due to errors
ORA-19909: datafile 6 belongs to an orphan incarnation
ORA-01110: data file 6: 'D:\APP\ASUS\ORADATA\TEST\TEST01.DBF'
复制代码
我想问这种情况下,该怎么修复这个呢?谢谢!!
页: [1]
查看完整版本: ORA-01190: control file or data file 6 is from before the last RESETLOGS