|
|
|
|
|
|
|
Re: how to create auxiliary instance [message #584028 is a reply to message #583856] |
Wed, 08 May 2013 01:36 |
|
forkausar
Messages: 4 Registered: May 2013
|
Junior Member |
|
|
STEP1 Install oracle database software auxiliary host.
STEP2 Create an Oracle Password File for the Auxiliary Instance
Orapwd file=C:\oracle\product\10.2.0\db_1\DATABASE\PWDLHDUP.ora password=DUP
STEP3 Create an Initialization Parameter File for the Auxiliary Instance
Use following list of commands to create parameters file using existing/target DB. This file will be used in creation of new auxiliary
instance.
Login to Target DB
-------------------
SQL>SYS/****@LHR AS SYSDB
SQL>Create pfile='C:\initLHDUP.ora' from spfile;
The file will be created on existing/target host copy or move newly created file to Auxiliary host
C:\oracle\product\10.2.0\db_1\DATABASE\initLHDUP.ora
Modify parameters. All path parameter should be accessible on Auxiliary host.
db_name='LHDUP'
db_file_name_convert=
('d:\oracle_data_files\oradata\LHDB',
'c:\oracle_data_files\LHDUP\oradata')
log_file_name_convert=
('d:\oracle_data_files\oradata\LHDB',
'c:\oracle_data_files\LHDUP\oradata')
control_files=
'C:\oracle_data_files\LHDUP\oradata\control01.ctl',
'C:\oracle_data_files\LHDUP\oradata\control02.ctl',
'C:\oracle_data_files\LHDUP\oradata\control03.ctl'
compatible='10.2.0.1.0'
db_block_size=8192 #The block size for the auxiliary database must match that of the target DB
db_cache_size=50331648
java_pool_size=25165824
large_pool_size=4194304
shared_pool_size=33554432
streams_pool_size=0
pga_aggregate_target=16777216
sga_max_size=113246208
sga_target=167772160
audit_file_dest='C:\oracle_data_files\LHDUP\admin\adump'
background_dump_dest='C:\oracle_data_files\LHDUP\admin\bdump'
core_dump_dest='C:\oracle_data_files\LHDUP\admin\cdump'
user_dump_dest='C:\oracle_data_files\LHDUP\admin\udump'
STEP4 Create directory structure on duplicate host
C:\flash_recovery_area\LHDB\BACKUPSET
C:\oracle_data_files\LHDUP\oradata
C:\oracle_data_files\LHDUP\admin
C:\oracle_data_files\LHDUP\flash_recovery_area\ARCHIVELOG
C:\oracle_data_files\LHDUP\admin\adump
C:\oracle_data_files\LHDUP\admin\bdump
C:\oracle_data_files\LHDUP\admin\cdump
C:\oracle_data_files\LHDUP\admin\udump
C:\oracle_data_files\LHDUP\admin\dpdump
C:\oracle_data_files\LHDUP\admin\pfile
C:\oracle_data_files\LHDUP\admin\scripts
STEP-4 Create Auxiliary Instance
ORADIM -NEW -SID LHDUP -intpwd change_on_install -startmode auto
-pfile 'c:\oracle\product\10.2.0\db_1\database\initLHDUP.ora'
ORADIM -NEW -SID LHDUP -startmode auto -pfile
'c:\oracle\product\10.2.0\db_1\database\initLHDUP.ora'
ORADIM -DELETE -SID LHDUP # to delete existing instance
SET ORACLE_SID=LHDUP
http://www.learnoracledatabase.com/rman/duplicating-database-using-rman-duplicate-command
[Updated on: Wed, 08 May 2013 02:05] Report message to a moderator
|
|
|