(一)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
sql>alter database recover managed standby database cancel; --中止同步 sql>shutdown immediate;