oracledataguradORA-16416错误-创新互联

oracle dg 是我自己的测试环境,由于ip被占用,所以导致我自己需要更换ip,变更完ip之后遇见了以下的问题,现在记录一下。

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:申请域名、虚拟空间、营销软件、网站建设、上虞网站维护、网站推广。

更改完ip以后,我还是做正常的主备切换,由于自己粗心大意,切换之前没有查询主备记得switchover_status,直接进行切换,发现报如下错误:

在主机上进行switchover

oracle data gurad  ORA-16416错误

随机查询了一下一下主备的switchover状态发现:

主:

oracle data gurad  ORA-16416错误

备:

oracle data gurad  ORA-16416错误

中间以为是主库出问题,就将主库重启,后来发现,主备库的监听状态都是未运行的状态:

oracle data gurad  ORA-16416错误

发现host地址是更改前的地址,然后更改host地址,重启监听,重新配置tns文件,重启主库再次查询:

oracle data gurad  ORA-16416错误

显示not allow ed 状态,查看官网文档显示:

NOT ALLOWED - Either this is a standby database and the primary database has not been switched first, or this is a primary database and there are no standby databases. 

    SESSIONS ACTIVE - Indicates that there are active SQL sessions attached to the primary or standby database that need to be disconnected before the switchover operation is permitted.

这个原因可能是我在重启主库的时候导致 数据库备库有些日志没有得到应用。在备库执行recover managed

oracle data gurad  ORA-16416错误

再次在主库查询:

oracle data gurad  ORA-16416错误

已经变成 to standby状态了,接下来就可以正常的主备切换了


分享题目:oracledataguradORA-16416错误-创新互联
标题路径:http://myzitong.com/article/csicsj.html