Duplicate an Oracle RAC RMAN database.
Before You Begin
-
If you run the RMAN script on a UNIX environment, use PARMS in the Allocate Channel Command.
-
To redirect data files, specify the DB_FILE_NAME_CONVERT init parameter in the PFILE.
Procedure
-
Set the number of automatic channels for a specific device type by using the CONFIGURE DEVICE TYPE ... PARALLELISM command.
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM number_of_automatic_channels BACKUP TYPE TO BACKUPSET;
-
On the RMAN command line, run the following sample script, substituting any required or optional Oracle SBT parameters.
If you duplicate the database to a computer that is not part of the Oracle RAC pseudo client, set the CVOraRacDBClientName parameter to a client that is part of the Oracle RAC pseudo-client.
For information on required and optional SBT parameters, see SBT Parameters.
rman target account/password@servicename auxiliary account/password@servicename << EOF run { allocate auxiliary channel ch1 type 'sbt_tape' PARMS="SBT_LIBRARY=/oracle/commvault/Base/libobk.so, BLKSIZE=262144, ENV=(CvClientName=client_name, CVOraRacDBClientName=rac_node, CVOraSID=oracle_SID,CVOraRacDBName=asmdb)" TRACE 2; duplicate target database to oracle_SID PFILE= pfile_location/pfile SKIP TABLESPACE 'table_name' nofilenamecheck; } EOF
Example
rman target sys/sys@asmdb1 auxiliary sys/sys@dupdb << EOF
run
{
allocate auxiliary channel ch1 type 'sbt_tape'
PARMS="SBT_LIBRARY=/oracle/commvault/Base/libobk.so, BLKSIZE=262144,
ENV=(CvClientName=dbserve5, CVOraRacDBClientName=dbserve10, CVOraSID=dupdb,CVOraRacDBName=asmdb)"
TRACE 2;
duplicate target database to dupdb
PFILE= /oracle/oracle10g/dbs/initdupdb.ora
SKIP TABLESPACE 'DBTEAM'
nofilenamecheck;
}
EOF