Вы находитесь на странице: 1из 2

23/11/2017 Oracle DBA -Tutorials: DGMGRL

.Set DG_BROKER_START initialization parameter

SQL> connect sys@primarydb as sysdba


SQL> SHOW PARAMETER DB_BROKER_START;
SQL> ALTER SYSTEM SET DB_BROKER_START=TRUE;

2. Configure data broker service

Define a listener service for data guard broker.


Edit listener $ORACLE_HOME/network/admin/listener.ora file should contain entries as:

ISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=IPC)(KEY = EXTPROC1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.231)(PORT = 1521)(IP=FIRST))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DNAME = logicaldb)
(ORACLE_HOME = /oradisk/oracle/product/11.1.0/db)
(SID_NAME = orcl))
(SID_DESC =
(GLOBAL_DNAME = logicaldb_DGMGRL)
(ORACLE_HOME = /oradisk/oracle/product/11.1.0/db)
(SID_NAME = ORCL))
)

NOTE: The value for the GLOBAL_DBNAME should be a concatenation of the initialization
parameters_DGMGRL.in listener.ora on all instances of both primary and standby databases. After making necessary changes in listener on all nodes reload
listener.

$> lsnrctl reload;

3. Configure/update TNS services on primary and standby databases


Edit listener $ORACLE_HOME/network/admin/ tnsnames.ora file should contain entries as:

PRIMARYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL=TCP)(HOST=primarydb)(PORT=1521)))
(CONNECT_DATA =(SERVICE_NAME=orcl))
)

http://naeemsheeraz.blogspot.com/search/label/DGMGRL 1/2
23/11/2017 Oracle DBA -Tutorials: DGMGRL

LISTENER_PHYSICALDB =(ADDRESS=(PROTOCOL=TCP)(HOST=physicaldb)(PORT=1521))
PHYSICALDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=physicaldb)(PORT=1521)))
(CONNECT_DATA =(SID=orcl))
)

LISTENER_LOGICALDB=(ADDRESS=(PROTOCOL=TCP)(HOST=logicaldb)(PORT=1521))
LOGICALDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST=logicaldb)(PORT=1521)))
(CONNECT_DATA =(SID=orcl))
)
Note: update tnsnames.ora file carefully, and update it on all standby nodes include in configuration. Also check user can connect to all nodes/databases. If
communication problems first solve then proceed.

[oracle@primarydb ]$ sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 4 12:48:25 2010

Copyright (c) 1982, 2007, Oracle. All rights reserved.

SQL> connect sys/password@primarydb as sysdba


Connected.
SQL> connect sys/password@physicaldb as sysdba
Connected.
SQL> connect sys/password@logicaldb as sysdba
Connected.

4. Data Guard Broker configuration

Now here we create data guard broker configuration and add standby databases, verification and enable configuration.

1.Invoke DGMGRL and connect to your primary database

[oracle@primarydb ~]$ dgmgrl

http://naeemsheeraz.blogspot.com/search/label/DGMGRL 2/2

Вам также может понравиться