日期:2014-05-16  浏览次数:41881 次

oracle 11gr2 Data G uard primary 和 standby被切换步骤


1. primary server
确认是主: primary
select database_role from v$database;

alter database commit to switchover to physical standby with session shutdown;
shutdown immediate;
startup nomount;
alter database mount standby database;


2.standby server
select database_role from v$database;
physical standby
alter database commit to switchover to primary with session shutdown;

alter recover database managed standby database disconnect from session;
shutdown immediate;
startup;


select database_role from v$database;
select switchover_status from v$database;