Turn on active Data Guard

Source: Internet
Author: User

Before you configure active data guard, the phycial standby must be in one of the following two states:

(1) Standby is in Mount state, and redo apply is running

(2) Standby is cleanly closed, redo apply is stopped

1. Configure Active Data Guard

Prerequisites : Standby is in Mount state, and redo apply is running

Using the SQL command line:

sql> Recover managed standby database cancel; #停止redo applysql> ALTER DATABASE open read only; sql> Recover managed Standby database disconnect using current logfile; #重启redo apply

Use Broker:

dgmgrl> Edit Database ' standby_name ' set state= ' Apply=off '; # stop redo applysql> ALTER DATABASE open read only; #使用sqlpl The US command executes dgmgrl> edit database ' standby_name ' set state= ' Apply=on ';

2. Configure Active Data Guard
Prerequisites : Standby is cleanly closed, redo apply is stopped

Using the SQL command line:

Sql> startupsql> Recover managed standby database disconnect using current logfile;

Use Broker:

dgmgrl> startupsgmgrl> Edit Database ' standby_name ' set state= ' Apply=on ';

Turn on active Data Guard

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.