How to remove Data Guard Broker Configuration? What are the steps to remove Data Guard Broker Configuration?
Ezana Answered question 24/04/2023
Below are the steps to be followed (including those for the Data Guard Broker) to remove Data Guard Configuration from the Primary Database when the Standby Database has been deactivated or converted into a new or separate Primary.
- Put Primary Database in Maximum Performance Mode:
1
SQL>
ALTER
DATABASE
SET
STANDBY
DATABASE
TO
MAXIMIZE PERFORMANCE;
OR using the Data Guard Broker :
1DGMGRL> EDIT CONFIGURATION
SET
PROTECTION MODE
AS
MAXPERFORMANCE;
- Remove Data Guard Broker Configuration:
1
DGMGRL> REMOVE CONFIGURATION;
- Remove Data Guard-specific Initialization Parameters from Spfile and pfile of the primary database.
- Drop Standby Redologs from the Primary Database:
123
Example:
SQL>
SELECT
GROUP
#
FROM
V$STANDBY_LOG;
SQL>
ALTER
DATABASE
DROP
STANDBY LOGFILE
GROUP
<GROUP_NUMBER>;
- Drop the Data Guard Broker Configuration Files if used:
12345678
===
On
windows
$ORACLE_HOME/
database
/dr1<ORACLE_SID>.dat
and
$ORACLE_HOME/
database
/dr2<ORACLE_SID>.dat.
===
On
Linux
$ORACLE_HOME/dbs/dr1<ORACLE_SID>.dat
and
$ORACLE_HOME/dbs/dr2<ORACLE_SID>.dat
===
And
To
find the location
and
file names
of
Data Guard Broker Configuration Files use:
SQL> show parameter DG_BROKER_CONFIG;
Ezana Answered question 24/04/2023