重庆思庄Oracle、Redhat认证学习论坛
标题: ORACLE DG 主备库开启与关闭顺序 [打印本页]
作者: 王亮 时间: 2019-12-22 16:08
标题: ORACLE DG 主备库开启与关闭顺序
oracleDG 启动和关闭顺序
启动顺序:先启动备库,后启动主库
关闭顺序:先关闭主库,后关闭备库
1、正确打开备库和主库备库:
SQL> STARTUPMOUNT;
SQL>ALTERDATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
主库:
SQL> STARTUPMOUNT;
SQL> ALTERDATABASE ARCHIVELOG;
SQL> ALTER DATABASEOPEN;
2、正确关闭顺序主库
SQL>SHUTDOWN IMMEDIATE;
备库:
SQL> ALTER DATABASE RECOVER MANAGED STANDBYDATABASE CANCEL;
SQL>SHUTDOWN IMMEDIATE;
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) |
Powered by Discuz! X3.2 |