Methods of manually processing log v$archive_gap in ORACLE dataguard _oracle

Source: Internet
Author: User

Since 9i, Oracle Dataguard generally do not need to manually process the lost log, FAL will automatically help us deal with, the following case by hand to handle the Lost log method:

1. What logs are missing from the standby query and not applied to the repository

 Sql> select * from V$archive_gap;
  thread# low_sequence# high_sequence#
-------------------------------------
     1     9873    9876

We can see 9873 to 9876 of these four archived logs lost,

2. We locate the four archive logs in the main library and send them to the Repository archive directory;

3. Reserve Library Registration

ALTER DATABASE register logfile '/ORACLE/APP/ORACLE/ARCHIVE/1_9873_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/1_9875_629923600.ARC ';
System alerted
ALTER DATABASE register logfile '/ORACLE/APP/ORACLE/ARCHIVE/1_9876_629923600.ARC ';
System alerted

4. Check the database log to see if the application

Thu APR 8 15:55:17
Media Recovery log/oracle/app/oracle/archive/1_9873_629923600.arc
media Recovery Log/ Oracle/app/oracle/archive/1_9874_629923600.arc
Media Recovery log/oracle/app/oracle/archive/1_9875_ 629923600.arc
Media Recovery Log/oracle/app/oracle/archive/1_9876_629923600.arc

or query view

Applied field for V$archived_log

5, check whether there is still log gap

Sql> select * from V$archive_gap;

There is no row selection, which means there is no problem with the archive log loss.

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.