Oracle 11g Backup-based Rman duplicate

Source: Internet
Author: User

The backup-based Rman Duplicate command to create the standby database
Prerequisites: To ensure that the original database backup, archiving for the standby end is fully visible,
This assumes that the original library and the target data file, log files and so on all the file storage structure is identical;
Configure the main library, standby static monitoring, the main library in archive mode, and force logging


1. Make the necessary changes to the master database.
A. Enable force logging.
B. If there is no password file, create a password file.
C. Create an alternate redo log.
D. Modify the parameter file to make it suitable for Dataguard.


2. Make sure the sql*net connection is normal.


3. Use the backup file.
A. Creating a password file
B. Creating an initialization parameter file for a standby database (secondary database)
C. Creating a required mount point or folder for a database file
D. Connect to the primary database as its target database to run to create an alternate on STANDBY.



DUPLICATE TARGET DATABASE
For STANDBY
Dorecover
SPFILE
#SET Db_file_name_convert ', '----if the data file path is different using this parameter to convert
#SET Log_file_name_convert ', '----if the log file path is different using this parameter to convert
#SET sga_max_size 200M----Set the SGA size
#SET Sga_target 125M
SET "Db_unique_name" = "Foou" COMMENT "is a duplicate"
SET log_archive_dest_2= "Service=inst3 ASYNC REGISTER
Valid_for= (Online_logfile,primary_role) "
SET fal_server= "Inst1" COMMENT "is primary"
Nofilenamecheck;


Keyword Explanation:
Dorecover: Automatic recover operation after restore is complete
Nofilenamecheck: Because all file names are the same for both the master and the standby environments


How to understand the appeal script content:
Rman will automatically copy SPFile from the main library to the repository, and use this parameter file to launch an instance of the standby library.
Restore the necessary data files and archive log files to the repository host, and then perform recover operations, but does does place it in manual or managed recovery mode;

Oracle 11g Backup-based Rman duplicate

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.