0% found this document useful (0 votes)
1K views5 pages

Standby Creation

STEP BY STEP APPROACH FOR PHYSICAL STANDBY CREATION USING RMAN WITHOUT SHUTTING DOWN THE PRIMARY DATABASE

Uploaded by

doyenblog
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views5 pages

Standby Creation

STEP BY STEP APPROACH FOR PHYSICAL STANDBY CREATION USING RMAN WITHOUT SHUTTING DOWN THE PRIMARY DATABASE

Uploaded by

doyenblog
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

STEP BY STEP APPROACH FOR PHYSICAL STANDBY CREATION USING RMAN WITHOUT SHUTTING DOWN THE PRIMARY DATABASE

Environment Details: Database Name Primary DB_UNIQUE_NAME Primary hostname gpmprd gpmprd gpmdbprod03.local

Standby DB_UNIQUE_NAME Standy hostname

gpmstby gpmdbdev02.local

Step 1: Ensure that Primary DB is in Archivelog mode.

Step 2 : Enable force logging in Primary DB

Step 3: Create standby logfiles alter database add standby logfile group 4 '+GPMDATA01' size 50m; alter database add standby logfile group 5 '+GPMDATA01' size 50m; alter database add standby logfile group 6 '+GPMDATA01' size 50m; alter database add standby logfile group 7 '+GPMDATA01' size 50m;

Step 4: Modify the below initialization parameter for dataguard on primary database. alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(gpmprd,gpmstby)'; alter system set LOG_ARCHIVE_DEST_1='LOCATION=+GPMDATA01 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=gpmprd'; alter system set LOG_ARCHIVE_DEST_STATE_1=ENABLE; alter system set LOG_ARCHIVE_DEST_2='SERVICE=gpmstby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=gpmstby'; alter system set LOG_ARCHIVE_DEST_STATE_2=DEFER; alter system set FAL_SERVER=gpmstby; alter system set FAL_CLIENT=gpmprd; alter system set DB_FILE_NAME_CONVERT='+GPMSTBY01','+GPMDATA01' scope=spfile; alter system set LOG_FILE_NAME_CONVERT='+GPMSTBY01','+GPMDATA01' scope=spfile;

Step 5 : Ensure that the sql*net connectivity is working fine in primay and standby database.

Step 6 : Create the password file. Copy the password file from the primary $ORACLE_HOME/dbs location and rename it to the standby database name. a) Copy the password file to share location. Sql> cp $ORACLE_HOME/dbs/orapwgpmprd /orashare1/dg/ b) Rename password file to standy database name. Sql> mv orapwgpmprd orapwgpmstby c) Move the password file to standy $ORACLE_HOME/dbs location. Sql> cp orapwgmpstby $ORACLE_HOME/dbs/.

Step 7: Create the necessary directories in the standby location. mkdir -p /oracle/app/oracle/diag/rdbms/gpmstby/gpmstby/dpdump

mkdir -p /oracle/app/oracle/admin/gpmstby/adump Step 8: Create a initialization parameter to nomount standby database. DB_NAME=gpmstby remote_login_passwordfile=EXCLUSIVE Step 9: RMAN -Connecting to Primary and Auxiliary instances. On the primary system invoke the RMAN executable and connect to the primary and the auxiliary database

Step 10: RMAN Duplicating Primary DB onto Standby. run { allocate channel prmy1 type disk; allocate channel prmy2 type disk; allocate channel prmy3 type disk; allocate channel prmy4 type disk; allocate auxiliary channel stby type disk; duplicate target database for standby from active database spfile parameter_value_convert 'gpmprd','gpmstby' set db_unique_name='gpmstby' set db_file_name_convert='+GPMDATA01','+GPMSTBY01' set log_file_name_convert='+GPMDATA01/gpmprd','+GPMSTBY01/gpmstby' set control_files='+GPMSTBY01/gpmstby/control01.ctl' set log_archive_max_processes='5' set fal_client='gpmstby' set fal_server='gpmprd' set standby_file_management='AUTO' set log_archive_config='dg_config=(gpmstby,gpmprd)' set log_archive_dest_1='service=gpmprd ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=gpmprd' ; }

Step 11: Starting Managed Recovery on Standby.

Step 12: Compare the primary last sequence and MRP (Managed Recovery Process)applying sequence. 1. Primary database:

2. Standy database:

You might also like