- OS and platform must be the same as primary db's
- Install soft and database with identical home directories
- Enable forced logging on your primary database:
- Create password file on primary database if there is no already one. And copy it to stb server.
- Enable Archiving on Primary.
If your primary
database is not already in Archive Log mode, enable the archive log
mode:
SQL>shutdown
immediate;
SQL>startup
mount;
SQL>alter
database archivelog;
SQL>alter
database open;
SQL>archive log
list;
|
- Set Primary Database Initialization Parameters
db_name="RKRUS"
instance_name="RKRUS"
log_archive_dest_1='LOCATION=/u05/oradata/RKRUS/arch'
log_archive_dest_2='SERVICE=rkrusstb
LGWR ASYNC VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RKRUSstb'
log_archive_format='log%t_%s_%r.arc'
|
- Prepare Stanby Initialization Parameters (copy from primary DB and edit the following parameters)
db_name="RKRUS"
db_unique_name="RKRUSstb"
instance_name="RKRUS"
log_archive_dest_1='LOCATION=/u01/arch
VALID_FOR=(ALL_LOGFILES,STANDBY_ROLE)'
standby_file_management='AUTO'
standby_archive_dest='/u01/arch'
fal_server='rkrus'
fal_client='rkrusstb'
local_listener='NURSTB_LISTENERS'
|
- Create standby controlfile on primary db
sqlplus / as sysdba
alter database create standby controlfile as
‘/tmp/ctl.stb’;
|
- Ensure that the standby database is down
- Copy and rename the control file to RKRUSstb to the directories defined in the init file on the standby database
- (RKRUSstb) Mount the database
- (RKRUSstb) Restore from backup
- Start the Media Recovery Process(MRP)