ORACLE Physical Standby DG 之switch over
DG架构图如下: 计划,切换之后的架构图: DG切换: 主备切换: 这里所有的数据库数据文件、日志文件的路径是一致的 【旧主库】主库primarydb切换为备库standby3 主库检查switchover_status列的状态,是否支持switchover操作:如果该列值为"TO STANDBY"则表示primary 数据库支持转换为standby 角色 prod> select switchover_status from v$database; SWITCHOVER_STATUS -------------------- TO STANDBY SQL> alter database commit to switchover to physical standby ; SQL> select instance_name,status from v$instance; SQL> shutdown immediate 【新建备库】新建备库standby3切换为主库 检查v$database视图的switchover_status列的状态,是否支持switchover操作: SQL> select switchover_status from v$database; SWITCHOVER_STATUS -------------------- TO PRIMARY SQL>