Remove Data Guard Broker Configuration Safely: Primary Database
Remove Data Guard Broker Configuration Safely: Primary Database
Before removing the configuration here is the broker configuration and the archive log destination in primary dat
Primary database:
Configuration - db.ipx.com
Databases:
Configuration Status:
SUCCESS
SQL> select dest_id,destination,status
from v$archive_dest
where target='STANDBY'
DESTINATION ST
DE AT
ST US
_I
D
2 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=stagedb1.xyz.com) VA
(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=db2_dg.ipx.com) LI
(SERVER=DEDICATED))) D
1. Remove broker configuration from DGMGRL command line using sys user from primary database
Primary Database:
[oracle@stagedb1 dbs]$ dgmgrl
Connected.
Removed configuration
Error:
Primary Database:
SQL> alter system set dg_broker_start=false scope=both;
System altered.
3. Check the archive log destination in primary database. After removing the configuration it will clear automatica
Primary Database:
SQL> select dest_id,destination,status
from v$archive_dest
where target='STANDBY'
DESTINATION STATUS
DEST_ID
2 INACTIVE
If it is not clear then make the destination defer
System altered.
Secondary Database:
SQL> alter system set dg_broker_start=false scope=both;
System altered.
Primary Database:
SQL> select name , value from v$parameter where name like '%dg_broker%';
VALUE
Name
dg_broker_start FALSE
dg_broker_config_file1 /holding/db1/standbylog/dr1db1_dg.dat
dg_broker_config_file2 /holding/db1/standbylog/dr2db1_dg.dat
[oracle@stagedb1]$
Secondary Database:
SQL> select name , value from v$parameter where name like '%dg_broker%';
VALUE
Name
dg_broker_start FALSE
dg_broker_config_file1 /holding/db2/standbylog/dr1db2_dg.dat
dg_broker_config_file2 /holding/db2/standbylog/dr2db2_dg.dat
[oracle@stagedb1]$
System altered.
3) On the primary disable any archive destinations that are archiving to the standby:
oracle@hasunclu1:/u03/oracle/9.2.0/dbs> rm /mnt/data/oradata/PROD/dr1PROD.dat
oracle@hasunclu1:/u03/oracle/9.2.0/dbs> rm /mnt/data/oradata/PROD/dr2PROD.dat
Standby> startup;
ORACLE instance started.
Total System Global Area 9152860160 bytes
Fixed Size 2234056 bytes
Variable Size 6610225464 bytes
Database Buffers 2516582400 bytes
Redo Buffers 23818240 bytes
Database mounted.
ORA-10456: cannot open standby database; media recovery session may be in progress