探索ORACLE之RMAN_07控制文件丢失恢复
作者:吴伟龙 Name:Prodence Woo
QQ:286507175 msn:hapy-wuweilong@hotmail.com 1、 控制文件(controlfile)丢失恢复
基于控制文件的复合多路径性,它的丢失分为两种,一种是其中某个控制文件的损坏或丢失,另外一种是所有控制文件均丢失。基于第一种情况,只需把好的控制文件复制一份在损坏或丢失的那个控制文件路径下即可。第二种情况下则需要通过备份信息来对控制文件进行恢复或手工重建控制文件。 丢失单一控制文件的判断及恢复。
数据库无法正常关闭,因为在关闭的时候必须向控制文件中更新scn号
SQL>shutdown immediate
ORA-00210:cannot open the specified control file
ORA-00202:control file: '/DBData/oradata/WWL/control02.ctl'
ORA-27041:unable to open file
LinuxError: 2: No such file or directory
Additionalinformation: 3
TotalSystem Global Area 285212672 bytes
FixedSize 1218968 bytes
VariableSize 104859240 bytes
DatabaseBuffers 171966464 bytes
RedoBuffers 7168000 bytes
ORA-00205:error in identifying control file, check alert log for more info
查看告警日志,报提示找不到controlfile2
Fri Jun 2211:54:26 2012
Errors infile /DBSoft/admin/WWL/udump/wwl_ora_4816.trc:
ORA-00210:cannot open the specified control file
ORA-00202:control file: '/DBData/oradata/WWL/control02.ctl'
ORA-27041:unable to open file
LinuxError: 2: No such file or directory
4.2所有控制文件全部丢失。 丢失单一控制文件的判断及恢复。
数据库无法正常关闭,因为在关闭的时候必须向控制文件中更新scn号
SQL>shutdown immediate
ORA-00210:cannot open the specified control file
ORA-00202:control file: ' /DBSoft/oradata/WWL/control01.ctl'
ORA-27041:unable to open file
LinuxError: 2: No such file or directory
Additionalinformation: 3
TotalSystem Global Area 285212672 bytes
FixedSize 1218968 bytes
VariableSize 104859240 bytes
DatabaseBuffers 171966464 bytes
RedoBuffers 7168000 bytes
ORA-00205:error in identifying control file, check alert log for more info
查看告警日志,报提示找不到controlfile1
Fri Jun 22 13:16:07 2012
Errors in file /DBSoft/admin/WWL/udump/wwl_ora_5104.trc:
ORA-00210: cannot open the specified control file
ORA-00202: control file: '/DBSoft/oradata/WWL/control01.ctl'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3