0% found this document useful (0 votes)
115 views

Step by Step How To Create Dataguard Broker Configuration (ID 984622.1)

Step by Step How to Create Dataguard Broker Configuration
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Step by Step How To Create Dataguard Broker Configuration (ID 984622.1)

Step by Step How to Create Dataguard Broker Configuration
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Document Display https://support.oracle.com/epmos/faces/ui/km/SearchDo...

Step by Step How to Create Dataguard Broker Configuration [ID 984622.1]


Modified: Sep 21, 2012 Type: HOWTO Status: PUBLISHED Priority: 3

In this Document

Goal
Fix

Applies to:

Oracle Server - Enterprise Edition - Version 10.2.0.1 to 11.2.0.1 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 21-Sep-2012***

Goal

Step by Step How to Create Dataguard Broker Configuration

Fix

Steps to create broker configuration are:

1. Set the parameter dg_broker_config_file1 and dg_broker_config_file2 on all instances of primary and standby.

Default location of broker configuration file is $ORACLE_HOME/dbs or $ORACLE_HOME/database.

In case if you want broker configuration files in non default location, set these parameters.
In case of RAC database, set broker configuration file location to shared location and same value on all the instances.

ALTER SYSTEM SET dg_broker_config_file1 = '\U01\oradata\dr1mfg.dat' scope=both


sid='*';
ALTER SYSTEM SET dg_broker_config_file2 = '\U01\oradata\dr2mfg.dat' scope=both
sid='*';

OR in case of ASM file system use:

ALTER SYSTEM SET dg_broker_config_file1 = '+DATA/mfg/dr1mfg.dat' scope=both


sid='*';
ALTER SYSTEM SET dg_broker_config_file2 = '+DATA/mfg/dr2mfg.dat' scope=both
sid='*';

If you want the broker configuration files in default location, then you can ignore this step.

2. Enable broker on both primary and standby:

SQL>ALTER SYSTEM SET DG_BROKER_START=TRUE scope=both sid='*';

3. Connect to DGMGRL on primary: (from instance one in case of RAC)

$dgmgrl
DGMGRL for Linux: Version 10.2.0.3.0 - Production

Copyright (c) 2000, 2005, Oracle. All rights reserved.

1 of 3 10/03/2012 04:41 AM
Document Display https://support.oracle.com/epmos/faces/ui/km/SearchDo...

Welcome to DGMGRL, type "help" for information.

DGMGRL> CONNECT sys/<password>;


Connected.

4. Create configuration on primary:

DGMGRL> CREATE CONFIGURATION 'PRODCONF' AS PRIMARY DATABASE IS 'PROD10G' CONNECT


IDENTIFIER IS PROD10G;

Configuration "PRODCONF" created with primary database "PROD10G"

5. Add standby in the configuration:

DGMGRL> ADD DATABASE 'STDBY10G' AS CONNECT IDENTIFIER IS STDBY10G MAINTAINED AS


PHYSICAL;

Database "STDBY10G" added

6. Enable Configuration:

DGMGRL> ENABLE CONFIGURATION;


Enabled.

Use the SHOW command to verify that the configuration and its databases were successfully enabled and brought online:

DGMGRL> SHOW CONFIGURATION;

Configuration
Name: PRODCONF
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED

Databases:
PROD10G - Primary database
STDBY10G - Physical standby database

Current status for "PRODCONF"


SUCCESS

Note : In this note I have used PROD10G for primary and STDBY10G for standby. Please change these name as per
your configuration while running the commands. In case you notice any warnings or errors reported when running
show configuration or show database verbose 'db unique name here', you may have to check the drc logs located in
background_dump_dest (10g) or diagnostic_dest (11g)

For further prerequisites see also the Data Guard Broker - documentation:

2 of 3 10/03/2012 04:41 AM
Document Display https://support.oracle.com/epmos/faces/ui/km/SearchDo...

eg for 10g:
Oracle® Data Guard Broker 10g Release 2 (10.2)
7.1 Prerequisites for Getting Started

3 of 3 10/03/2012 04:41 AM

You might also like