首页 > 数据库 > Oracle > oracle datagurad问题浅谈
oracle 11g,其实,standby 数据库down 后,可以启动数据库到mount,然后查看
select name from v$datafile,可以清楚的发现alert日志中报的那个数据文件。
最后,可以执行
alter database create datafile 'v$datafile_name' as 'expected_file_name';
但是此时直接打开的时候,可能会报如下错误:
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: 'D:APPHZ05817ORADATAYHYSYSTEM01.DBF'
此时是不能直接用recover database或者recover datafile做数据库恢复的。
如何让数据库能open 呢?
1.primary 数据库做alter system switch logfile;
2.alter database recover managed standby database using current logfile disconnect from session;
此时standby数据库应该能够open了。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/48620/viewspace-997566/ ,如需转载,请注明出处,否则将追究法律责任。