您的位置:首页 > 其它

error:control file or data file 1 is from before the last RESETLOGS

2012-12-02 19:48 597 查看
error:control file or data file 1 is from before the last RESETLOGS

起因:做rman备份恢复实验,通过resetlogs恢复了redo.log后,没有做rman备份,

          又将控制文件、数据文件和日志文件都删除了,再用rman恢复时,提示上述错误。

  

解决办法:1.恢复控制文件,restore controlfile from autobackup;

                   2.还原数据文件  restore database;

                   3.恢复数据文件  recover database using backup controlfile until cancel;

                   4.设置隐含参数:alter system set “_allow_resetlogs_corruption”=true scope=spfile;

                   5.然后关闭数据库,用下面命令重启:startup mount;

                   6.重建日志文件  alter database open resetlogs;

       使用隐含参数_allow_resetlogs_corruption强制启动数据库,设置此参数之后,在数据库Open过程中,Oracle会跳过某些一致性检查,从而使数据库可能跳过不一致状态,Open打开

       使用该参数强制可能会导致数据库遗留问题,建议使用exp/imp来重建数据库。

教训:rman恢复完记得做备份。

 

                   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐