Oracle Data Guard is one of the finest technology that is developed by Oracle. It is created in order to have high availability of database even when your production system crashes due to natural disaster or server crash.
Full article link is here: https://www.support.dbagenesis.com/post/oracle-data-guard-broker-configuration
2. Data Guard Broker
Benefits of Data Guard Broker
Configure Data Guard Broker
Coming UP
Edit listeners
Stop MRP on standby
Enable broker
Register primary with broker
Register standby with broker
Enable Data Guard broker
Manage Redo Apply via Broker
Start/stop log shipping via Broker
3. Data Guard Broker
Let us understand the literal meaning of Broker first
A mediator between two or more person (things)
In a data guard configuration, we know that there are minimum two servers that
take part: one is primary and another one is standby.
A data guard broker logically groups these primary and standby databases into a
Broker Configuration. This allows Data Guard broker to manage and monitor
(primary and standby) as one single unit.
4. One of the biggest benefits of Data Guard broker is that is centralizes the
configuration, management and monitoring of Oracle Data Guard configurations.
Benefits of Data
Guard Broker
Some of the operations that Data Guard broker simplifies are:
Create Data Guard configuration between primary and standby databases
Add additional standby databases to existing Data Guard configuration
Mange Data Guard protection modes
5. Start switchover / failover by just one single command
Automate failover in case of primary not reachable
Monitor redo apply, gaps and data guard performance
Perform all above operations locally or remotely !
6. Follow below steps to configure Data Guard broker.
Configure Data
Guard Broker
Note: at the time of writing article, below steps were performed on existing
Primary and Standby setup that was created manually.
7. If you look at the listener configuration file, there is a dedicated service we have to
create for DGMGRL. This is required in order enable Data Guard Broker. If this is
not set, add below entry (proddb_DGMGRL and it has to be exactly in the same
format <SID>_DGMGRL) and restart listener on both primary and standby:
Edit listeners
8.
9. Stop MRP on standby
We would like to manage our data guard configuration using Data Guard
Broker. Stop MRP and clear Log_Archive_dest_2 parameter:
10. We need to start the broker by enabling it on both primary
and standby:
Enable broker
11. On primary, connect to DGMGRL utility and register the
primary database with broker
Register primary
with broker
14. Manage Redo Apply
via Broker
Like how we start / stop MRP manually,
we can start / stop redo apply on
standby using broker
15. Start/stop log
shipping via Broker
How we can manually enable log
shipping from primary to standby, the
same way we can use broker to enable
log shipping