DG切换角色时发生ORA-16416: 切换目标与主目标不同步
解决方法:
1、startup mount主库,创建备库控制文件,拷贝到备库机器;
2、shutdown备库,替换控制文件,startup mount;
3、open主库,重新切换角色即可;
最后验证一下主备库角色是否正确:
SQL> select switchover_status,database_role from v$database;
SWITCHOVER_STATUS DATABASE_ROLE
-------------------- ----------------
SESSIONS ACTIVE PRIMARY
SQL> select switchover_status,database_role from v$database;
SWITCHOVER_STATUS DATABASE_ROLE
-------------------- ----------------
TO PRIMARY PHYSICAL STANDBY
阅读(2051) | 评论(0) | 转发(0) |