一、switchover_status概念:
A 如果switchover_status为TO_PRIMARY 说明标记恢复可以直接转换为primary库alter database commit to switchover to primary
B 如果switchover_status为SESSION ACTIVE 就应该断开活动会话alter database commit to switchover to primary with session shutdown;
C 如果switchover_status为NOT ALLOWED 说明切换标记还没收到,此时不能执行转换。
A 如果switchover_status为TO_PRIMARY 说明标记恢复可以直接转换为primary库alter database commit to switchover to primary
B 如果switchover_status为SESSION ACTIVE 就应该断开活动会话alter database commit to switchover to primary with session shutdown;
C 如果switchover_status为NOT ALLOWED 说明切换标记还没收到,此时不能执行转换。