Professional Documents
Culture Documents
Alejandro Vargas
February 4, 2007.
Practice Description:
Duplicate Instance from Node 2 of a RAC on ASM as a new Database in Node 1
Steps:
Task Action
On the target Oracle Home, create password file:
1. Create an
Oracle Password orapwd file=orapwrmdupl password=oracle entries=10
File for the
Auxiliary
Instance
Use the db_create_file_dest init.ora parameter to setup all new database file names using
2. Create a new Oracle Managed Files, this simplify cloning because all names are automatically changed to
init.ora for the match database name and assigned location:
database Used an existing spfile to create the new pfile and then edited it:
strings spfilewhiteowl.ora >initrmdupl.ora
rmdupl.__db_cache_size=92274688
rmdupl.__java_pool_size=4194304
rmdupl.__large_pool_size=4194304
rmdupl.__shared_pool_size=62914560
rmdupl.__streams_pool_size=0
*.compatible='10.2.0.1.0'
*.audit_file_dest ='/oradisk/app01/oracle/admin/rmdupl/adump'
*.background_dump_dest ='/oradisk/app01/oracle/admin/rmdupl/bdump'
*.user_dump_dest ='/oradisk/app01/oracle/admin/rmdupl/udump'
*.core_dump_dest ='/oradisk/app01/oracle/admin/rmdupl/cdump'
*.log_archive_dest ='/vmasmtest/od01/rmdupl/archives'
*.db_create_file_dest ='/vmasmtest/od01/rmdupl'
*.control_files ='/vmasmtest/od01/rmdupl/controlfile/rmdupl_01.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='rmdupl'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=rmduplXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
SID_LIST_LISTENER.VMRACTEST1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = rmdupl)
(ORACLE_HOME = /oradisk/app01/oracle/product/10gDB)
(SID_NAME = rmdupl)
)
)
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
STATUS
------------
OPEN
Add all archived logs from the existing database to backup destination using rman:
7. Check that a
backup of all backup as copy archivelog all format '/vmasmtest/BACKUP/rman_backups/%d_AL_%T_%u_s%s_p%p' ;
required
datafiles and
archived logs
exist on the
target server
Set the environment on the source node to the source database:
8. Start Rman and
allocate ORACLE_BASE=/oradisk/app01/oracle
ORACLE_HOME=/oradisk/app01/oracle/product/10gDB
auxiliary ORACLE_SID=racdbtst2
channels to the
new database Invoke rman on the source database and target auxiliary instance:
database dismounted
Oracle instance shut down
database opened
Finished Duplicate Db at 04/02/2007 17:12:21
RMAN>exit
Set the environment variables to point to the new database and performa a general checkup:
10. Check the new
database ORACLE_BASE=/oradisk/app01/oracle
ORACLE_HOME=/oradisk/app01/oracle/product/10gDB
ORACLE_SID=rmdupl
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
FILE_NAME
--------------------------------------------------------------------------------
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_system_2wcxm819_.dbf
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_undotbs1_2wcxoq56_.dbf
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_sysaux_2wcxq00y_.dbf
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_undotbs2_2wcxv3ck_.dbf
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_users_2wcxvwt9_.dbf
/vmasmtest/od01/rmdupl/RMDUPL/datafile/o1_mf_recop1_2wcxwdmv_.dbf
6 rows selected.
How Recovery Manager Duplicates a Database
References Prepare the Rman Duplicate Auxiliary Instance