Performing duplicate database with ASM/OMF/RMAN (Doc ID 340848.1)
In this Document
Purpose |
Scope |
Details |
Applies to:
Oracle Server - Enterprise Edition - Version 10.1.0.2 and laterInformation in this document applies to any platform.
**Checked for relevance on 26-Mar-2012***
Purpose
This article will illustrate how to duplicate ASM/OMF-based databases using RMAN.
Scope
The procedures for 10.1.0.4 and earlier, as well as 10.1.0.5 slightly vary, thus both are shown.
Details
For details on the 10.1.0.4 RMAN duplicate command see the Refer to Backup and Recovery Reference manual.
Procedure for 10.1.0.4.0 and earlier databases
================================
1) Copy primary database init.ora to auxiliary instance init.ora
2) Modify auxiliary instance init.ora accordingly:
a) If not using OMF for control files, set the CONTROL_FILES parameter to the appropriate location.
Otherwise, do not set this parameter.
b) Do not set the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT in the auxiliary init.ora
c) Set the DB_CREATE_FILE_DEST initialization parameter to the desired OMF storage location, e.g.
*.DB_CREATE_FILE_DEST = '+DATA'
d) For a duplicate database that is not a standby database, change the value of the DB_NAME initialization
parameter.
e) For a standby database, keep DB_NAME the same, but change the DB_UNIQUE_NAME initialization
parameter. Additionally, set
STANDBY_FILE_MANAGEMENT=AUTO
3) Start auxiliary instance in nomount mode. The auxiliary instance
should have access to the backups and archivelogs created by target
database in order for duplicate to succeed.
4) Duplicate the database using the following RMAN command set:
RMAN> connect auxiliary sys/passwd@auxiliary;
RMAN> duplicate target database to "
pfile="
At this point all the datafiles/logfiles will be in the specified ASM diskgroups, using OMF names, and the controlfile(s) will
reflect the new path names. In the case of the "duplicate for standby", the standby controlfile will also reflect the standby
database path names (and not the production).
Procedure for 10.2 or 10.1.0.5.0 databases
There are two options.
Option 1-
Follow steps outlined for the 10.1.0.4 procedure. This is the simplest option, if all the auxiliary files are in identical
subdirectories as the primary, and do not need to be re-distributed across disk groups.
Option 2-
Set the traditional DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters. This option allows
more flexibility in assigning where datafiles and log files should reside at the auxiliary database.
1) Copy primary database init.ora to auxiliary instance init.ora
2) Modify auxiliary instance init.ora accordingly:
a) If not using OMF for control files, set the CONTROL_FILES parameter to the appropriate location.
Otherwise, do not set this parameter.
b) Set db_file_name_convert and log_file_name_convert to convert the diskgroup, e.g.
DB_FILE_NAME_CONVERT = ('+DATA', '+STDBY_DATA')
LOG_FILE_NAME_CONVERT = ('+DATA', '+STDBY_DATA')
c) For a duplicate database that is not a standby database, change the value of the DB_NAME initialization
parameter.
d) For a standby database, keep DB_NAME the same, but change the DB_UNIQUE_NAME initialization
parameter. Additionally, set STANDBY_FILE_MANAGEMENT=AUTO
3) Start auxiliary instance in nomount mode. The auxiliary instance
should have access to the backups and archivelogs created by target
database in order to duplicate to succeed.
4) Duplicate the database using RMAN command
RMAN> connect auxiliary sys/passwd@auxiliary;
RMAN> duplicate target database to "
pfile="
Keep in mind that, if the source filenames are in ASM OMF format, e.g., +DATA/
then RMAN, during restore, will generate new OMF names.
This is because ASM OMF filenames are unique and cannot be specified by the user or using DB_FILE_NAME_CONVERT;
i.e., it is generated by ASM code itself. Therefore, restored filenames will be different from the source filename, and only the
diskgroup name is honored in the filename conversion.
For example, suppose original filename is +DATA/proddb/datafile/users01.289.558716263 and
DB_FILE_NAME_CONVERT=('+DATA', '+STDBY_DATA')
After restore, the filename would not be
+STDBY_DATA/proddb/datafile/users01.289.558716263, but will be a newly created and OMF
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1063130/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]DatabaseASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- RMAN duplicate databaseDatabase
- How to Duplicate a Database in NOARCHIVELOG mode (Doc ID 275480.1)DatabaseHive
- Duplicate database from non ASM to ASM to a different host [ID 382669.1]DatabaseASM
- 通過rman duplicate database!Database
- RMAN 'Duplicate Database' Feature in 11G [ID 452868.1]Database
- Oracle10G RMAN Database Duplication (Doc ID 259694.1)OracleDatabase
- RMAN duplicate database到新主機Database
- Can Tapes Be Used For RMAN Convert Database (Doc ID 563816.1)Database
- RMAN10g: backup copy of database (Doc ID 266980.1)Database
- Oracle 11g Rman Active database duplicateOracleDatabase
- Step By Step Guide On Creating Physical Standby Using RMAN Duplicate In ASM Filesystem For ASM PrimaGUIIDEASM
- Oracle11g RMAN Duplicate from Active DatabaseOracleDatabase
- Duplicating Database using RMAN duplicate commandDatabase
- oracle實驗記錄Rman duplicate database(1)OracleDatabase
- oracle實驗記錄Rman duplicate database 2OracleDatabase
- DUPLICATE (Backup based) DATABASE from non ASM to ASM to different host_382669.1DatabaseASM
- 11g rman新特性 duplicate target database for standby from active databaseDatabase
- RMAN duplicate from active database 複製資料庫Database資料庫
- Duplicate database from non ASM to ASM (vise versa) to a different host-382669.1DatabaseASM
- Hide RMAN Passwords when Connecting to a Target Database (Doc ID 183377.1)IDEDatabase
- duplicate databaseDatabase
- To use Rman to duplicate database be careful of db_file_name_convertDatabase
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid不同UXDatabaseOracle
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid相同UXDatabaseOracle
- Creating a Data Guard Database with RMAN using Duplicate Command [ID 183570.1]Database
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- rman duplicate target database RMAN-03002 RMAN-03015 RMAN-06136Database
- Creating a Physical Standby using RMAN DUPLICATE FROM ACTIVE DATABASEDatabase
- Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE WithoutGUIIDEDatabase
- Create Physical stdby Using RMAN Duplicate In ASM File... For ASM Prim-837102.1ASM
- Performing a Switchover to a Physical Standby Database and failoverORMDatabaseAI
- * Master Note: Database Performance Overview (Doc ID 402983.1)ASTDatabaseORMView
- Troubleshooting Database Hang Issues (Doc ID 1378583.1)Database
- 使用RMAN DUPLICATE...FROM ACTIVE DATABASE命令來建立DataGuard物理備庫Database
- 11g RMAN新特性active database duplicate 資料庫異構Database資料庫