Beruflich Dokumente
Kultur Dokumente
IamanOracleDBA:DataGuardbrokerconfig
More NextBlog
CreateBlog SignIn
IamanOracleDBA
Sukant
AboutMe
sukantdba
View my complete
profile
ORACLE
ADMINISTRATION
creationofdatabasemanually
SQL*PLUS Commands
creatingexcelreport
creatingcontrolfile
alloraclecommands
auditing
BashProfile
DataGuardbrokerconfig
REFERENCE:
DATGUARD CREATION:
http://www.oracledba.org/10g/dr/10gR2_dataguard_on_Linux.html
DATAGUARD BROKER CREATION
http://www.orafaq.com/wiki/Data_Guard_implementation_for_Oracle_1
0gR2
http://www.oracle.com/technology/pub/articles/smileyfsfo.html
http://www.oraclecommunity.net/profiles/blogs/configurationof10g
data
http://www.ritzyblogs.com/OraTalk/EntryId/122/HowtosetupDGMGRL
brokerwithexample
MONITORING
****************************************************************************************
****************************************
monitoringscript
scripttomonitorcurrentuser
activity
PREREQUESTS:
BACKUP
exportimport
backupstrategyinoracle
rmanquickref
learningrman
restorepointcreation
STANDBY
Now on the PRIMARY site check the status of Standby Archiving destination.
standbydatabasecreation
standbyrebuilduntilscn
standbyadmin
Data guard broker config
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
1/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
UPGRADE
upgradationfrom101to102
cloningprecautionscript
patchapply102020102040
renamingdatabasemanually
changingdbnamethroughNID
Windows to Linux Migration
TUNING
performancetuningbasics
performancetuningTips
LINUX
Diskpartionlvmrhel4
lvmproblems
linuxcompression
decompression
Followers
Jointhissite
withGoogleFriendConnect
Therearenomembersyet.
Bethefirst!
Alreadyamember?Signin
****************************************************************************************
****************************************
1. Set up init parameters on primary to enable broker
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
2/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
dg_broker_config_file2='/n01/dg_broker_config_files/dr2PRIMARY.dat'
sid='*';
System altered.
SQL> alter system set dg_broker_start=true sid='*';
System altered.
Example:
$ ps ef|grep dmon|grep v grep
oracle 16190 1 0 08:53 ? 00:00:00 ora_dmon_PRIMARY
$ ps ef|grep dmon|grep v grep
oracle 29723 1 0 08:53 ? 00:00:00 ora_dmon_PRIMARYR2
3/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
(SID_NAME = STANDBY)
(GLOBAL_DBNAME = STANDBY_DGMGRL)
(ORACLE_HOME = /apps/oracle/product/10g/db)
)
)
5. DGMGRL Configuration
5.1Connect
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
4/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
Now we are ready to switch over the PRIMARY database Role to STANDBY
database Role.
DGMGRL> switchover to 'Standby';
..
..
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
5/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
****************************************************************************************
****************************************
AUTOMATIC FAILOVER(FSFO)
Observer is a utility that is available with the dataguard. Its basic purpose
is to keep the database available to the
clients all the time. It is started on a separate location other than Primary
and Standby locations. After starting the observer,
it starts watching continuously both the sites. Whenever the PRIMARY
database fails due to any reason and the connection between
the PRIMARY site and the observer breaks, the observer waits for a certain
time which is set up during setting the broker configuration.
When this time passes, the observer automatically starts the failover
process. As a result, the Physical Standby database is converted
to PRIMARY database. After this failover, the users again connect to the
database. This connection redirects them automatically to the
new PRIMARY database.
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
6/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
OBSERVER CONFIGURATION:
There are some important configuration settings that are needed to be set
before starting the Dataguard (DG) Observer.
Main thing is to set the STANDBY database to Maximum Availability
protection mode. DG broker configuration
must also be set to "MaxAvailability" protection mode. After this we need
to enable "fast_start failover" parameter of the broker configuration.
Without setting these options, broker will not allow to proceed for
observer to work for remote failover. Following are the steps to enable the
observer.
OBSERVER SITE: (Information)
Step 1:
Create TNS services on the observer machine for PRIMARY site and
STANDBY site through which the observer machine
will be connected to the primary and standby databases.
TNS service name for PRIMARY site is 'primary'. TNS service name for
STANDBY site is 'to_standby'.
Step 2:
7/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
8/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
9/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
10/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
6. Troubleshooting
REF :
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10822/
cli.htm
Let us see some sample issues and their fix Issue
DGMGRL> CONNECT sys/sys
ORA16525: the Data Guard broker is not yet available
Fix
Set dg_broker_start=true
Issue
After enabling the configuration, on issuing SHOW CONFIGURATION, this
error comes
Warning: ORA16608: one or more sites have warnings
Fix
To know details of the error, you may check log which will be generated at
bdump with naming as drc{DB_NAME}.log or there are various monitorable
properties that can be used to query the database status and assist in
further troubleshooting.
Few Monitorable properties to troubleshoot
DGMGRL> SHOW DATABASE 'PRIMARY' 'StatusReport';
DGMGRL> SHOW DATABASE 'PRIMARY' 'LogXptStatus';
DGMGRL> SHOW DATABASE 'PRIMARY' 'InconsistentProperties';
DGMGRL> SHOW DATABASE 'PRIMARY' 'InconsistentLogXptProps';
DGMGRL> SHOW DATABASE 'STANDBY' 'StatusReport';
DGMGRL> SHOW DATABASE 'STANDBY' 'LogXptStatus';
DGMGRL> SHOW DATABASE 'STANDBY' 'InconsistentProperties';
DGMGRL> SHOW DATABASE 'STANDBY' 'InconsistentLogXptProps';
Issue
DGMGRL> SHOW DATABASE 'PRIMARY' 'StatusReport';
STATUS REPORT
INSTANCE_NAME SEVERITY ERROR_TEXT
PRIMARYR2 WARNING ORA16714: The value of property ArchiveLagTarget
is inconsistent with the database setting.
PRIMARYR2 WARNING ORA16714: The value of property
LogArchiveMaxProcesses is inconsistent with the database setting.
Issue
DGMGRL> SHOW DATABASE 'PRIMARY' 'InconsistentProperties';
INCONSISTENT PROPERTIES
INSTANCE_NAME PROPERTY_NAME MEMORY_VALUE SPFILE_VALUE
BROKER_VALUE
PRIMARYR2 ArchiveLagTarget 0 0
PRIMARYR2 LogArchiveMaxProcesses 4 2 4
Example
DGMGRL> SHOW DATABASE 'PRIMARY' 'LogArchiveMaxProcesses';
LogArchiveMaxProcesses = '4'
Fix
DGMGRL> EDIT DATABASE 'PRIMARY' SET PROPERTY
'LogArchiveMaxProcesses'=2;
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
11/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
or
SQL> alter system set log_archive_max_processes=4 scope=spfile sid='*';
System altered.
DGMGRL> SHOW DATABASE 'PRIMARY' 'LogArchiveMaxProcesses';
LogArchiveMaxProcesses = '4'
More commands
DGMGRL> SHOW DATABASE VERBOSE 'dbname';
This will show all property values in detail
DGMGRL> HELP;
List of all broker commands with usage help
Equivalent Broker Commands to 'ALTER SYSTEM'
SQL> alter database recover managed standby database cancel;
DGMGRL> edit database 'stby_dbname' set state='LOGAPPLYOFF';
SQL> alter database recover managed standby database disconnect;
DGMGRL> edit database 'stby_dbname' set state='ONLINE';
SQL> alter system set log_archive_max_processes=4;
DGMGRL> edit database 'dbname' set property 'LogArchiveMaxProcesses'=4;
SQL> alter system set log_archive_dest_state_2='enable' scope=both;
DGMGRL> edit database 'stby_dbname' set property 'LogShipping'='ON';
SQL> alter system set log_archive_dest_state_2='defer' scope=both;
DGMGRL> edit database 'stby_dbname' set property 'LogShipping'='OFF';
DGMGRL> edit database 'pri_dbname' set state='LOGTRANSPORTOFF';
This will defer all standby databases
That's it my friends. You are all set to use broker now for managing your
dataguard configuration.
Posted by sukantdba at 7:37 AM
1 comment:
Bismi Resto April 9, 2010 at 10:46 PM
good document
Reply
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
12/13
5/31/2016
IamanOracleDBA:DataGuardbrokerconfig
Enteryourcomment...
Commentas:
Publish
Newer Post
Unknown(Google)
Signout
Notifyme
Preview
Home
Older Post
http://sukantdba.blogspot.in/2010/04/dataguardbrokerconfig.html
13/13