Assumptions
This document has been tested on OUL 5 with Oracle 11.2.0.2 and 11.2.0.3The Primary database PRIMARY_DB is in archivelog-mode and force-logging is enabled. This database is running on node1.
The Physical standby database is STANDBY_DB and runs on node2
Configuration
On Primary database
Set following parameters :
ALTER SYSTEM SET log_archive_config= 'DG_CONFIG=(PRIMARY_DB,STANDBY_DB)' ; ALTER SYSTEM SET log_archive_dest_1= 'LOCATION=+ORA_FRA_DG1 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY_DB' ; ALTER SYSTEM SET log_archive_dest_2= 'SERVICE=STANDBY_DB NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY_DB' SCOPE=MEMORY; ALTER SYSTEM SET log_archive_dest_state_1= 'ENABLE' ; ALTER SYSTEM SET fal_server= 'STANDBY_DB' ; ALTER SYSTEM SET fal_client= 'PRIMARY_DB' ; ALTER SYSTEM SET standby_file_management= 'AUTO' SCOPE=MEMORY; |
Make sure that all required entries are present in the tnsnames.ora file on BOTH servers :
PRIMARY_DB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = node1)(Port = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = PRIMARY_DB) ) ) STANDBY_DB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = node2)(Port = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = STANDBY_DB ) ) ) |
Check connectivity using tnsping. Also make sure that the the tnsnames in the GRID-home has all required entries.
Put following entries in the listener.ora and restart the listener. The listener.ora on standby_server should have following 2 blocks. The second block is required for the dgmrl :
(SID_DESC = (GLOBAL_DBNAME = STANDBY_DB ) (ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/db_1) (SID_NAME = FLEETTST_STBY) ) (SID_DESC = (GLOBAL_DBNAME = STANDBY_DB_DGMGRL) (ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/db_1) (SID_NAME = FLEETTST_STBY) ) |
Reload the listener on the standby server
Geen opmerkingen:
Een reactie posten