Solved

setting up 11gR2 data guard

Posted on 2015-02-04
7
202 Views
Last Modified: 2015-02-06
Dear all,

I read this:
http://oracle-base.com/articles/11g/data-guard-setup-11gr2.php

"For this example, the standby database will have the value "DB11G_STBY".

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(DB11G,DB11G_STBY)';

Set suitable remote archive log destinations. In this case I'm using the fast recovery area for the local location, but you could specify an location explicitly if you prefer. Notice the SERVICE and the DB_UNIQUE_NAME for the remote location reference the standby location.

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=db11g_stby NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DB11G_STBY';
ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;
"
it said "the standby database will have the value "DB11G_STBY", but why the command has the primary server here?

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(DB11G,DB11G_STBY)';

Open in new window



and here he siad "In this case I'm using the fast recovery area for the local location"

where is his/her fast recovery area ?

and also in here:

"Create the necessary directories on the standby server.

$ mkdir -p /u01/app/oracle/oradata/DB11G
$ mkdir -p /u01/app/oracle/fast_recovery_area/DB11G
$ mkdir -p /u01/app/oracle/admin/DB11G/adump
"

is the path must be the same as the primary server?

The apply process is the action to kick off the data guard replication, rihgt?

so this is the one execute on Primary, right?

# Foreground redo apply. Session never returns until cancel. 
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;

Open in new window


so this will replicate the archived redo log file to the standby server?
0
Comment
Question by:marrowyung
  • 4
  • 3
7 Comments
 
LVL 34

Expert Comment

by:johnsone
Comment Utility
The LOG_ARCHIVE_CONFIG will contain a list that has the primary in it.  All databases in the configuration should be in the list.

The paths on the standby do not have to be the same as the primary.  It makes life easier if they are the same.

The ALTER DATABASE RECOVER command is executed on the standby system.

For reference, I use the Oracle doc -> http://docs.oracle.com/cd/E11882_01/server.112/e41134/create_ps.htm#SBYDB4721    They aren't exactly step by step instructions, but it does outline all the changes you need to do.
0
 
LVL 1

Author Comment

by:marrowyung
Comment Utility
0
 
LVL 1

Author Comment

by:marrowyung
Comment Utility
"The LOG_ARCHIVE_CONFIG will contain a list that has the primary in it.  All databases in the configuration should be in the list.

you mean all servers in the data guard partnership ?

"The ALTER DATABASE RECOVER command is executed on the standby system."

tks.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
Comment Utility
Yes, according to the documentation, which I supplied in the link, it states:

The DG_CONFIG attribute of this parameter must be explicitly set on each database in a Data Guard configuration to enable full Data Guard functionality. Set DG_CONFIG to a text string that contains the DB_UNIQUE_NAME of each database in the configuration, with each name in this list separated by a comma.

The documentation is your friend.  Use it.
0
 
LVL 1

Author Comment

by:marrowyung
Comment Utility
it seems this:

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(DB11G,DB11G_STBY)';

only need to setup on primary database but not standby ?

or should be set this one on the standby server?

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(DB11G_STBY , DB11G)';

Open in new window

0
 
LVL 34

Expert Comment

by:johnsone
Comment Utility
I would do it on both.  The standby has the capability of being the primary, so all the settings should be correct for it to take over.
0
 
LVL 1

Author Comment

by:marrowyung
Comment Utility
tks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now