Processing Oracle DG replication gap with incremental backup recovery

Source: Internet
Author: User

1. Determine the range of SCN and get gap log sequence via alert log
Gap-thread 1 Sequence 109631-117170


2, according to the sequence to obtain the starting point SCN
Tip The minimum gap sequence is 109631, push forward a sequence, and then obtain the SCN number

Select thread#,sequence#,first_change#,next_change# from V$archived_log where sequence#=109630;
thread# sequence# first_change# next_change#
---------- ---------- ------------- ------------
1 109630 1606624354 1606624958


3, in primary to do based on the SCN incremental backup and generate a new repository control file
# #增量备份数据库
Export Oracle_sid=xxx
CONFIGURE CHANNEL DEVICE TYPE DISK maxpiecesize-M;
Backup incremental from SCN 1606624354 database format '/oradata/dgbackup/xxx/xxx_1606624354%u.bak ';
--Create standby controlfile in primary
ALTER DATABASE create standby Controlfile as '/oradata/dgbackup/xxx/xxx01.ctl ';


4, standby database closed, replace the control file
--Close the repository and back up the current repository control file
Shutdown immediate
Mv/oradata/xxx/control01.ctl/oradata/xxx/control01.ctl.bak
Replace the current repository control file
Cp/oradata/dgbackup/xxx/xxx01.ctl/oradata/xxx/control01.ctl


5. Start the standby repository for incremental recovery
-----Start the database to Nomount
Startup Nomount;
----Start the database to mount
ALTER DATABASE mount standby database;
# #rman增量恢复
Catalog start with '/oradata/dgbackup/inscndbkf ';
Recover database Noredo;


6. Start the standby copy application
-----Start Recovery
Sqlplus/as SYSDBA
ALTER database RECOVER MANAGED STANDBY database USING current LOGFILE DISCONNECT from SESSION;

Processing Oracle DG replication gap with incremental backup 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.