Manually process the v $ archive_gap method under DG, dgarchive_gap

Source: Internet
Author: User

Manually process the v $ archive_gap method under DG, dgarchive_gap

After 9i, the oracle slave uard standby database generally does not need to manually process the lost logs. FAL will automatically help us with the loss. The following example shows how to manually process the lost logs:

1. What logs are lost in the standby database and are not applied to the standby database?

SQL> select * from V $ ARCHIVE_GAP;

THREAD # LOW_SEQUENCE # HIGH_SEQUENCE #
-------------------------------------
1 9873 9876

We can see that the four archive logs from 9873 to 9876 are lost,

2. We found the four archive logs in the master database and sent them to the archive directory of the slave database;

3. register the slave Database

Alter database register logfile '/oracle/app/oracle/archive/4249873_629923600.arc ';

System alerted

Alter database register logfile '/oracle/app/oracle/archive/1_9874_629923600.arc ';

System alerted

Alter database register logfile '/oracle/app/oracle/archive/4109875_629923600.arc ';

System alerted

Alter database register logfile '/oracle/app/oracle/archive/1_9876_629923600.arc ';

System alerted

4. Check the database logs to see if the logs are applied.

Thu Apr 8 15:55:17 2010
Media Recovery Log/oracle/app/oracle/archive/4249873_629923600.arc
Media Recovery Log/oracle/app/oracle/archive/4109874_629923600.arc
Media Recovery Log/oracle/app/oracle/archive/4249875_629923600.arc
Media Recovery Log/oracle/app/oracle/archive/4249876_629923600.arc

Or query the view.

V $ archived_log applied field

5. Check whether the standby database has a log GAP.

SQL> select * from V $ ARCHIVE_GAP;

If no row is selected, the archive log is not lost.

 

-- This 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.