Restart uard method and restart uard Method

Source: Internet
Author: User

Restart uard method and restart uard Method
-- DG restart procedure


-- 1. Shut down the master database
Shutdown immediate;


-- 2. Disable the standby Database
Alter database recover managed standby database cancel;
Shutdown immediate;


-- No listener. If the listener is disabled,
After the slave database is started, the slave Database Listener must be started and the master database must be started.
-- 3. Start the slave Database
Startup


-- 4. Start the master database
Startup


-- 5. The slave database starts the application.
Alter database recover managed standby database disconnect from session;


-- 6. Check the synchronization of archive logs in the slave database (the applied status is yes)
SQL> SELECT NAME, applied FROM v $ archived_log;


-- 7. check archive log
Master database:
SQL> archive log list;
Slave database:
SQL> archive log list;
Check whether the Current log sequence is the same, indicating that the synchronization is consistent. Restart.





Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.