Oracle dataguard switchover切换
程序员文章站
2022-04-29 19:53:48
...
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;