时间:2021-07-01 10:21:17 帮助过:25人阅读
switchover 操作 在priamry上操作: 1. select switchover_status from v$database;switchover_status的值入股是To standby,可
switchover 操作
在priamry上操作:
1. select switchover_status from v$database;
switchover_status的值入股是To standby,可以直接switchover,
如果是sessions active,则需要在switchover的命令后面加上with session shutdown
2. alter database commit to switchover to physical standby;
3. shutdowm immediate;
4. startup mount;
在standby上操作:
1. select switchover_status from v$database
说明:switchover_status的值入股是To primary,可以直接switchover,如果是sessions active,
则需要在switchover的命令后面加上with session shutdown;)
2. alter database commit to switchover to primary;
3. shutdown immediate;
4. startup;