您的当前位置:首页正文

Oracledataguardswitchover切换

2020-11-09 来源:步旅网

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;

linux

显示全文