Total System Global Area 1577054664 bytes
Fixed Size 8896968 bytes
Variable Size 1191182336 bytes
Database Buffers 369098752 bytes
Redo Buffers 7876608 bytes
Database mounted.
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u01/app/oracle/oradata/ORCL/system01.dbf'
ORA-01207: file is more recent than control file - old control file
--可以发现,现在数据库已无法启动,提示数据文件scn比控制文件scn要新,控制文件的scn是旧的
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u01/app/oracle/oradata/ORCL/system01.dbf'
ORA-01207: file is more recent than control file - old control file
还是会提示,数据文件比控制文件scn新
5、加参数”using backup controlfile“再恢复
SQL> recover database using backup controlfile;
ORA-00279: change 2464879 generated at 07/16/2021 03:24:19 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/product/19.3.0/db/dbs/arch1_14_1077941831.dbf
ORA-00280: change 2464879 for thread 1 is in sequence #14
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
--输入上面提示的归档日志,但是该日志还未归档,所以报错
/u01/app/oracle/product/19.3.0/db/dbs/arch1_14_1077941831.dbf
ORA-00308: cannot open archived log
'/u01/app/oracle/product/19.3.0/db/dbs/arch1_14_1077941831.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
--输入当前状态下current 日志,恢复完毕
/u01/app/oracle/oradata/ORCL/redo02.log
Log applied.
Media recovery complete.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open noresetlogs;
alter database open noresetlogs
*
ERROR at line 1:
ORA-01588: must use RESETLOGS option for database open