Site icon Database Tutorials

What is Data Guard Broker

This article contains information about Data Guard Broker architecture, components, commands, configuration file, etc.

What is Data Guard Broker?

Broker is a distributed management framework that centralizes, simplifies and automates the creation, management and monitoring of Data Guard configurations.

Data guard broker has two components;

  1. Client Side
    • DGMGRL command interface
    • Enterprise Manager Cloud Control
  2. Server Side

The working architecture of Data Guard Broker is as follows;

In summary; All commands run via DGMGRL or Cloud Control are written to the Configuration files in each instance as a result of the communication of all DMON processes in the environment with each other. Thus, the entire Data Guard Environment can be managed from a single center. It can be installed in a completely separate instance or via Primary Database.

What is Data Guard Broker DMON Process?

DMON is a background process of Oracle that allocates approximately 50 Kb of space in SGA when Data Guard Broker is started.

This process manages Data Guard by running on all instances including FAR SYNC instances in Data Guard configuration.

When a transaction is made with Enterprise Manager Cloud Control or DGMGRL, the DMON process running locally communicates with DMON processes running on instances on the remote side and performs the operations.

The DMON process is also responsible for monitoring whether the broker configuration is working properly and whether there are a consistent number of copies of the configuration file in all instances.

Configuration files are created in default as 2 files under ORACLE_HOME/dbs. These file’s names are dr1 <db_unique_name>.dat and dr2 <db_unique_name>.dat.

The DMON process uses only one of these files. The other is for backup. In RAC systems, these files should be located in a shared area (ASM).

In case of a problem, it creates trace and core files under ADR_HOME / trace in each instance.

Comparison of managing Data Guard in the presence and absence of the broker can be seen in the figure below.

Broker Startup Parameters

The database startup parameters controlled by the broker are below;

As soon as it is decided to continue the management of Data Guard using the Broker, even a single SQL command should not be run on databases in the environment.

Broker automatically uses the following Redo-Apply commands that are valid in Physical and Logical Standby.

DGMRL Commands

The commands that can be run from DGMGRL are as follows;

Data Guard Broker Requirements

Add an Instance to Data Guard Broker Environment

To add any instance in the Data Guard Broker Environment, the DG_BROKER_START start parameter must be set to TRUE.

Databases in the Broker Environment must be in MOUNT or OPEN mode.

In RAC systems, the DG_BROKER_CONFIG_FILEn parameter should be configured to point to a shared area. In default the configuration files are under $ORACLE_HOME/dbs. The files are in binary format. With the ALTER SYSTEM command, the default directory and name used are changed.

Before starting the Data Guard Broker configuration, all LOG_ARCHIVE_DEST_n parameter that has the SERVICE attribute used in all instances in the environment is deleted.

Another indispensable feature for Data Guard Broker is that all databases in the environment must be opened from SPFILE.

The work done by the DMON process is in the same location as ALERT LOG, and for each instance it is named drc <$ ORACLE_SID> .log.

Exit mobile version