文档解释
ORA-16138: end of log stream not received from primary
Cause: The standby system has not received notification that the primary system log stream has been terminated. A graceful switchover is not possible.
Action: Verify that the primary log stream has been terminated. Ensure that the standby has applied all necessary redo from the primary system and, if appropriate, reissue the graceful switchover command.
ORA-16138:从主库没有收到日志流的结束
官方解释
Oracle Database 报告ORA-16138是在数据库从库上接收更新日志流不完整时报告这个错误,意思是结束符没有收到。此时从库不会恢复正常,需要解决问题才能恢复。
常见案例
– 如果在主库切换旧日志时关闭备库,会发生ORA-16138错误
– 如果主库提交操作,但在备库失败,也会导致ORA-16138错误
一般处理方法及步骤
根据错误场景确定错误原因:
– 如果主库的日志流未正常发送到备库,请检查网络连接,查看主库是否宕机,等待连接恢复后重新启动备库使其恢复正常
– 如果主库异步提交失败,请检查主库的故障的原因,确认解决问题后,在主库上确认日志流发布正常,重新启动备库使其恢复正常