Oracle DataGuard啓動與關閉順序

 

(一)Active DataGuard啓動順序
(1)啓動監聽,先啓從庫再起主庫
sql

lsnrctl start

(2)啓動數據庫,先啓動備庫在啓主庫數據庫

--先啓備庫
sql>startup nomount
sql>alter database mount standby database;
sql>alter database open;
sql>alter database recover managed standby database using current logfile disconnect from session;
        
--再啓主庫
sql>startup

 

(二)DataGuard關閉順序
(1)先關主庫數據庫:
session

sql>shutdown immediate

(2)再關備用庫:
sql>alter database recover managed standby database cancel;  --中止同步
sql>shutdown immediate;
相關文章
相關標籤/搜索