Data Guard Gap Recovery

Source: Internet
Author: User

Through select * from V$archive_gap, or alarm log check to see if there are any cracks in the archive log

For example:

Media Recovery waiting for thread 1 sequence 1638

Fetching gap sequence in thread 1, Gap sequence 1638-1737

Completed:alter database RECOVER MANAGED STANDBY database USING current LOGFILE disconnect from session

Wed Jul 13 17:36:44 2016

Fal[client]: Failed to request gap sequence

Gap-thread 1 Sequence 1638-1737

DBID 1415359633 Branch 887578899

Fal[client]: All defined FAL servers has been attempted.

------------------------------------------------------------

Check that the Control_file_record_keep_time initialization

parameter is defined to a value of that ' s sufficiently large

Enough to maintain adequate log switch information to resolve

Archivelog gaps.

------------------------------------------------------------

Wait 1638 of the archive log when recovering;

If the archive log exists, you can pass:

ALTER DATABASE register logfile '/db/archivelog/1_1868_887578899.dbf ';

method to register and will automatically recover after registration

Several commands:

The current main library is in the normal OPEN state, and the standby is in log shipping state.

Stop log shipping in the standby library

sql> Recover managed standby database cancel;

ALTER database RECOVER managed standby database Cancel

Standby Library read-only Mode Open

Sql> ALTER DATABASE open read only;

Standby library back to log shipping mode

sql> Recover managed Standby database disconnect from session;

ALTER database RECOVER managed standby database disconnect from session;

Manual Repository Application Archive log

sql> ALTER database RECOVER MANAGED STANDBY database USING current LOGFILE DISCONNECT from SESSION;

The repository ALTER DATABASE open read only; there are two ways of

Recover managed standby database disconnect from session;

This method can not be used to prepare the current log file, and then the main library log switching will apply the log;

Another type of:

ALTER database RECOVER MANAGED STANDBY database USING current LOGFILE DISCONNECT from SESSION;

Real-time application of log files, both sides of the data to ensure synchronization;

Data Guard Gap Recovery

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.