ALLSTARS_ORACLE 发表于 2017-4-14 18:00:41

掉电后控制文件版本号不一致如何解决

我做了如下操作 现在 alter database open 一直报错
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/data/orcl/system01.dbf'


我没有做冷备,但是redolog 都是掉电那天的 我备份了。请问能否补救?

用版本高的控制文件覆盖了低版本的控制文件

SYS@biap> startup mount
ORACLE instance started.

然后
SYS@biap> recover database until cancel

ORA-00279: change 545883943 generated at 07/23/2013 19:03:11 needed for thread 1
ORA-00289: suggestion : /home/oracle/oracle/flash_recovery_area/ORCL/archivelog/2013_07_25/o1_mf_1_12419_%u_.arc
ORA-00280: change 545883943 for thread 1 is in sequence #12419


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log '/home/oracle/oracle/flash_recovery_area/ORCL/archivelog/2013_07_25/o1_mf_1_12419_%u_.arc'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


ORA-00308: cannot open archived log '/home/oracle/oracle/flash_recovery_area/ORCL/archivelog/2013_07_25/o1_mf_1_12419_%u_.arc'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


ORA-10879: error signaled in parallel recovery slave
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: '/data/orcl/system01.dbf'

SYS@biap> alter database open
  2  ;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

SYS@biap> alter database open noresetlogs;
alter database open noresetlogs
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/data/orcl/system01.dbf'

怎么用redolog恢复呢 我有点菜。

recover datafile 1;

然后选择 filename? 然后又6组redo日志我怎么用呢 ,劳烦指点下

页: [1]
查看完整版本: 掉电后控制文件版本号不一致如何解决