Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

setting up 11gR2 data guard

Posted on 2015-02-04
7
Medium Priority
?
257 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 35

Expert Comment

by:johnsone
ID: 40588385
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
ID: 40588683
0
 
LVL 1

Author Comment

by:marrowyung
ID: 40588722
"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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 35

Accepted Solution

by:
johnsone earned 2000 total points
ID: 40588728
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
ID: 40593054
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 35

Expert Comment

by:johnsone
ID: 40593360
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
ID: 40593702
tks.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

916 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