Solved

setting up 11gR2 data guard

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
database upgrade 8 117
Component is listed with a Protocol more than once 3 42
Oracle Insert not working 10 32
Error querying database link from Oracle 10g to Postgresql 7 69
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

830 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