Dataguard 重啟方法,dataguard重啟方法

來源:互聯網
上載者:User

Dataguard 重啟方法,dataguard重啟方法
--DG重啟步驟


--1、關閉主庫
SHUTDOWN IMMEDIATE;


--2、關閉備庫
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
SHUTDOWN IMMEDIATE;


--沒有關監聽,如果關掉了監聽,
這裡啟動備庫之後還要啟動備庫監聽,再啟主庫
--3、啟動備庫
startup


--4、啟動主庫
startup


--5、備庫啟動應用
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE disconnect from session;


--6、檢查備庫歸檔日誌同步情況(applied狀態均為yes)
SQL> SELECT NAME,applied FROM v$archived_log;


--7、check archive log
主庫:
SQL> archive log list; 
備庫:
SQL> archive log list;
看Current log sequence是否相同了,表明同步一致了。重啟就OK了





著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關關鍵詞:
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.