Solved

setting up 11gR2 data guard

Posted on 2015-02-04
7
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Accepted Solution

by:
johnsone earned 500 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
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.
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 shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

734 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