TEST
Powered by Blogger.
Responsive Ad
Responsive Ad

Author Profile

About Me

Start Sharing

Start Sharing

Drive Traffic on Social Platforms

Blog Archive

Blog Journey

Blog Journey

Learn how to start a perfect Blog

Work Smart, Not Hard - Let's See

Make your Blogging experience faster and easiest …
Work Smart, Not Hard - Let's See
Design by - Blogger Templates | Distributed by Free Blogger Templates

Made with Love by

Material UI Template is Designed Theme for Giving Enhanced look Various Features are available Whic…

Random Posts

Ads Section

HOME > > Configure Data Guard in 10gR2

Configure Data Guard in 10gR2

Anup - Wednesday, 20 January 2010
Configure Data Guard



Step 1 Check parameter DG_BROKER_START on primary and standby side. If value show FALSE then set to TRUE.



Step 2 Define a service for the listener:

At Standby instance:



SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = \oracle\product\10.2.0\db_1)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = prod_DGMGRL)

(ORACLE_HOME = \oracle\product\10.2.0\db_1)

(SID_NAME = standby)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = oprsms)(PORT = 1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

)

)

At Primery Instance:

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = \oracle\product\10.2.0\db_1)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = prod_DGMGRL)

(ORACLE_HOME = \oracle\product\10.2.0\db_1)

(SID_NAME = prod)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = primery hostname)(PORT = 1521))

)

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

)

)

Note: GLOBAL_DBNAME should be set to <<db_unique_name>>_DGMGRL in listener.ora on all instances of both primary and standby. This is important otherwise you'll have TNS-12154 error during switchover operation.

Step 3 Now to create the data guard broker configurations:



$ dgmgrl

DGMGRL> connect /

Connected.

DGMGRL> create configuration 'TEST'

> as primary database is 'prod'

> connect identifier is prod;

Configuration "TEST" created with primary database "prod"

DGMGRL>



DGMGRL> show configuration



Configuration

Name: TEST

Enabled: NO

Protection Mode: MaxPerformance

Fast-Start Failover: DISABLED

Databases:

prod- Primary database



Current status for "TEST":

DISABLED

Step 4 Now add standby DB to the data broker configuration:



DGMGRL> add database 'standby' as

> connect identifier is standby

> maintained as physical;

Database "standby" added

DGMGRL>

DGMGRL> show configuration



Configuration

Name: TEST

Enabled: NO

Protection Mode: MaxPerformance

Fast-Start Failover: DISABLED

Databases:



prod- Primary database

standby - Physical standby database



Current status for "TEST":

DISABLED

Step 5 Now enable the configurations:

DGMGRL> enable configuration

Enabled.

DGMGRL> show configuration



Configuration

Name: TEST

Enabled: YES

Protection Mode: MaxPerformance

Fast-Start Failover: DISABLED

Databases:

prod- Primary database

standby- Physical standby database



Current status for "TEST":



DGMGRL> show database verbose standby

Now your data guard has been configured successfully.

Contact me

Get in Touch

Need to get touch with me? Please fill out the form with your enquiry.

Name
Anup Srivastav
Address
Lucknow - Utter Pradesh
Email
myindiandba@gmail.com
Message me