Step By Step How to Recreate Dataguard Broker Configuration (Doc ID 808783.1) | 编辑To Bottom | |
In this Document
APPLIES TO:Oracle Database Cloud Schema Service - Version N/A and laterGen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later Oracle Database Exadata Express Cloud Service - Version N/A and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Oracle Database Backup Service - Version N/A and later Information in this document applies to any platform. *** Reviewed for Relevance 16-Jul-2015 *** GOALStep By Step How to Recreate Dataguard Broker Configuration on Windows and Unix. Parameters used dg_broker_start dg_broker_config_file1 dg_broker_config_file2 SOLUTIONStep 1. Stop broker in both of primary and standby databases (in all instances in case of RAC): SQL>ALTER SYSTEM SET DG_BROKER_START=FALSE; Step 2. Drop old broker configuration files from both primary and standby: SQL> show parameter dg_broker_config_file Drop the files using ASMCMD if files are on ASM: ASMCMD> cd /<PATH>/ Drop the files using : $cd $ORACLE_HOME/dbs
c:\>cd $ORACLE_HOME/database Step 3. Start broker in both of primary and standby (in all instances in case of RAC): SQL>ALTER SYSTEM SET DG_BROKER_START=TRUE; Step 4. Connect to DGMGRL on primary: (from instance one in case of RAC) $dgmgrl Step 5. Create configuration on primary: DGMGRL> CREATE CONFIGURATION '<CONFIGURATION_NAME>' AS PRIMARY DATABASE IS '<PRIMARY_DATABASE_NAME>' CONNECT IDENTIFIER IS <CONNECT_IDENTIFIER>; Step 6. Add standby in the configuration: DGMGRL> ADD DATABASE '<STANDBY_DATABASE_NAME>' AS CONNECT IDENTIFIER IS <CONNECT_IDENTIFIER> MAINTAINED AS PHYSICAL; Step 7. Enable Configuration: DGMGRL> ENABLE CONFIGURATION; Use the SHOW command to verify that the configuration and its databases were successfully enabled and brought online: DGMGRL> SHOW CONFIGURATION; Else will get the below error while Adding the DB in Broker Error: ORA-16698: LOG_ARCHIVE_DEST_n parameter set for object to be added" Refer the below Doc for the steps to resolve ORA-16698 |