Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process,
and therefore has not been subject to an independent technical review.
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.0 to 10.2.0.4
Information in this document applies to any platform.
Goal
RMAN Duplicate Database From RAC ASM to RAC ASM
Solution
This duplication example assumes the following :
You are using recovery catalog database catdb
The target database trgt is on host1 and contains ASM datafiles and online logs in diskgroup
+DISK1
You want to duplicate the target to database dupdb on remote host host2.
host2 has diskgroup +DISK2
You want to store the datafiles for dupdb to +DISK2
You want to store two controlfiles in +DISK2
The backups and archivelogs created by host1 are accessible by host2
Procedure :
Create an initialization parameter for auxiliary instance by copying the target database
initialization parameter file. Change the parameters as follows:
Set DB_NAME to the new database name dupdb
Set CONTROL_FILES to store two copies of the control file in +DISK2
Set DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT to convert the datafile
and online log file names from +DISK1 to +DISK2
Set any other initialization parameters that end in _DEST, such as DB_CREATE_FILE_DEST
and DB_CREATE_ONLINE_DEST_n, to reference +DISK2
Comment all the RAC related parameters in the dupdb parameter file. This we will enable
once the duplicate is finished.
For example :
DB_NAME=dupdb
CONTROL_FILES=+DISK2,+DISK2
DB_FILE_NAME_CONVERT=+DISK1,+DISK2
LOG_FILE_NAME_CONVERT=+DISK1,DISK2
Create an SPFILE from the parameter file, and start the auxiliary instance:
SQL> CONNECT SYS/oracle@dupdb;
SQL> CREATE SPFILE FROM PFILE='location of auxiliary instance pfile';
SQL> STARTUP NOMOUNT;
Then run the following RMAN commands to duplicate the database:
RMAN> CONNECT TARGET /;
RMAN> CONNECT CATALOG rman/cat@catdb;
RMAN> CONNECT AUXILIARY SYS/oracle@dupdb;
RMAN> DUPLICATE TARGET DATABASE TO dupdb;
When the DUPLICATE command completes, the duplicate database is created, with datafiles,
online logs and control files in ASM disk group +DISK2.
Shutdown the database and add all the RAC related parameters and then start the
database.
Note:- The only difference between duplicate from RAC ASM and standalone ASM is not to
perform the last step i.e. adding of the RAC related parameters.
Keywords