I used rman and a new feature duplicate target database from active database.
Prerequisites :
1. make a static listener entry for you standby
2. copy over the password file
3. create a minimal init.ora to be able startup nomount (DB_NAME,DB_BLOCKSIZE,DB_UNIQUE_NAME…)
Test to make sure you can connect to the primary ( in my case my logical standby ) and vice versa
you connect to the target database.
the manual recommends to use an spfile so that way you could do following
connect target sys@prdsitexconnect auxiliary sys@prdsiteyrun{allocate channel prmy1 type disk;allocate channel prmy2 type disk;allocate channel prmy3 type disk;allocate channel prmy4 type disk;allocate channel prmy5 type disk;allocate auxiliary channel stby type disk;duplicate target database for standby from active databasespfileset db_unique_name=’PRDSITEY’set fal_client=’PRDSITEY’set fal_server=’PRDSITEX’set log_archive_config=’dg_config=(PRDSITEX,PRDSITEY)’nofilenamecheck;}
This didn’t work out in my case : since I was still running in compatible 10.2.0.3.0 on the logical standby (my primary) i received following error ;
startup failed: ORA-32012: SPFILE format is inconsistent with value of COMPATIBLE parameter
db_unique_name=PRDSITEYcompatible=’10.2.0.3.0′db_name=PRDdb_block_size=8192service_names=PRDSITEY.eurid.euremote_login_passwordfile=EXCLUSIVECONTROL_FILES=’+DATADG1/prdsite/controlfile/current1.ctl’parameter_value_convert ‘PRDSITEX’,’PRDSITEY’fal_client=’PRDSITEY’fal_server=PRDSITEX’log_archive_config=’dg_config=(PRDSITEX,PRDSITEY)’remote_listener=’racsiteyprd-scan:1521′db_files=1024sga_max_size=32Gdb_cache_size=20Glarge_pool_size=1Gshared_pool_size=4Gpga_aggregate_target=16Grecovery_parallelism=16
run{allocate channel prmy1 type disk;allocate channel prmy2 type disk;allocate channel prmy3 type disk;allocate channel prmy4 type disk;allocate channel prmy5 type disk;allocate auxiliary channel stby type disk;duplicate target database for standby from active databasenofilenamecheck;}