ORA-16140: standby online logs have not been recovered ORACLE 报错 故障修复 远程处理

文档解释

ORA-16140: standby online logs have not been recovered

Cause: The standby database has online logs containing redo that has not been recovered. Activating the standby would lose redo contained in the online logs.

Action: To recover the standby online logs issue the following command: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH. Then reissue the ALTER DATABASE ACTIVATE STANDBY DATABASE command. To activate the standby without recovering the online logs, issue the following command: ALTER DATABASE ACTIVATE STANDBY DATABASE SKIP STANDBY LOGFILE.

ORA-16140: standby Online Logs have not been recovered错误提示,当尝试从备用数据库改变模式时发生了错误,原因是备份在线日志没有被恢复。

官方解释

ORA-16140发生在在尝试将备用数据库从一模式转换为另一模式时,提示该错误。具体来说,当系统尝试从补最佳状态转换为可读模式或从可读模式转换为可展望模式时,该错误出现。在这种情况下,原因是备份在线日志没有被恢复。

常见案例

ORA-16140通常发生在备用数据库上,尤其是在执行恢复至重做日志或日志应用之后。

一般处理方法及步骤

1、在目标备份拥有数据库上,完成数据库恢复和应用重做日志或线上日志

2、使用rman recover copies of the archive log位置

3、使用数据库实例将要恢复的在线日志记录在备用控制文件(因为重做日志被覆盖)

4、使用alter database recover standby database调整备用数据库模式,并将其调整为展望模式或只读模式。


数据运维技术 » ORA-16140: standby online logs have not been recovered ORACLE 报错 故障修复 远程处理