Reconstruction after physical DG slave database corruption

Source: Internet
Author: User

Reconstruction after physical DG slave database corruption

Because the data is rebuilt, the data files, log files, and dump files in the physical slave database that were rebuilt in the original DG Environment can be deleted. Remember that the original parameter files and corresponding directories must be saved.

Full backup of standby control files and databases in the master database

[Oracle @ localhost rman_recover] $ rman target/

Backup Control File

RMAN> backup current controlfile for standby format'/u01/rman_recover/ctlfile. bak ';

Back up the entire database

RMAN> backup database format'/u01/rman_recover/% full_backup _ % T _ % t. bak ';

Find the control file path on the slave database:

SQL> select name from v $ controlfile;

NAME

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

/U01/app/oracle/oradata/orcl_s/control01.ctl

/U01/app/oracle/oradata/orcl_s/control02.ctl

/U01/app/oracle/oradata/orcl_s/control03.ctl

 

SQL> shutdown abort

ORACLE instance shut down.

Copy the backup of the master database to the slave Database

[Oracle @ localhost ~] $ Scp 10.37.11.11:/u01/rman_recover/*. bak/u01/rman_recover/
 
Oracle@10.37.11.11's password:

0ull_backup_20140522_848228743. B 100% 7072KB 6.9 MB/s

7ull_backup_20140522_848228595. B 100% 1002 11.9 MB MB/s

Ctlfile. bak 100% 7040KB 6.9 MB/s

Verify different conditions of using ARCH/LGWR and standby log in the maximum DG Performance Mode

Copy the control file to the original configuration:

[Oracle @ localhost rman_recover] $ cp ctlfile. bak/u01/app/oracle/oradata/orcl_s/control01.ctl
 
[Oracle @ localhost rman_recover] $ cp ctlfile. bak/u01/app/oracle/ora

Data/orcl_s/control02.ctl

[Oracle @ localhost rman_recover] $ cp ctlfile. bak/u01/app/oracle/ora

Data/orcl_s/control03.ctl

 

Start the slave database instance:

SQL> startup nomount

ORACLE instance started.

 

Total System Global Area 167772160 bytes

Fixed Size 1218316 bytes

Variable Size 75499764 bytes

Database Buffers 88080384 bytes

Redo Buffers 2973696 bytes

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.