Solved

setting up 11gR2 data guard

Posted on 2015-02-04
7
206 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
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
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
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 34

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

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.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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 video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

863 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

20 Experts available now in Live!

Get 1:1 Help Now