Beruflich Dokumente
Kultur Dokumente
Data Guard Broker - Configure Fast Start Failover, Data Protection Levels and the Data Guard
Observer (Doc ID 1508729.1)
In this Document
Goal
Solution
The Current Broker Configuration
The Primary Site Broker Configuration
The Standby Site Broker Configuration
Configuring Failover Thresholds
The Observer OracleNET configuration
The Observer site TNSNAMES.ORA entries
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.1 [Release 10.2 to 12.1]
Information in this document applies to any platform.
GOAL
Once a broker configuration has been established addressing the Business' requirements for protecting the environment
from data loss need to be considered and potentially addressed through further configuration of the Data Guard
environment.
This document examines in detail the process for enabling the MaxAvailability and MaxProtection protection modes, Fast
Start Failover and the Data Guard Observer.
SOLUTION
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 1/16
4/10/2017 Document Display
There are 3 nodes involved here grid1vm1 (the Primary Site), grid1vm2 (the Standby Site) and grid2vm1 (the Observer
site)
Properties:
FastStartFailoverThreshold = '30'
OperationTimeout = '30'
FastStartFailoverLagLimit = '30'
CommunicationTimeout = '180'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
Configuration Status:
SUCCESS
Database - rs1
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
rs1
Properties:
DGConnectIdentifier = 'rs1_prm'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'MANUAL'
ArchiveLagTarget = '0' LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)
(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=rs1_DGMGRL.au.oracle.com)(INSTANCE_NAME=rs1)
(SERVER=DEDICATED)))'
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 2/16
4/10/2017 Document Display
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
Database - rs1_stb
Properties:
DGConnectIdentifier = 'rs1_stb'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'rs1, rs1_stb'
LogFileNameConvert = 'rs1, rs1_stb'
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=grid1vm2.au.oracle.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=rs1_stb_DGMGRL.au.oracle.com)
(INSTANCE_NAME=rs1)(SERVER=DEDICATED)))'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 3/16
4/10/2017 Document Display
Should you to alter the default Thresholds that determine when and why a failover may occur edit the following
configuration settings
To alter the amount of time the observer attempts to reconnect to the Primary after it has detected problem and the
number of seconds it waits on failed connect attempts before initiating a failover edit the configuration property
FastStartFailoverThreshold.
Display the configuration to confirm the settings have been successfully altered.
Configuration - rs1_dg
Databases:
Properties:
FastStartFailoverThreshold = '45'
OperationTimeout = '30'
FastStartFailoverLagLimit = '45'
CommunicationTimeout = '180'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
Configuration Status:
SUCCESS
To alter the maximum amount of redo lag time in seconds that is allowed to exist between the sites when a failover is
attempted alter FastStartFailoverLagLimit. If the lag time between the sites exceeds this limit then a failover will not be
allowed as there would be to much data lost should the standby site have been activated.
The Observer requires its own connections to each database in the configuration. ObserverConnectIdentifier is used to
add these TNS Alias entries into each databases configuration. When starting the observer one of these connections must
be used to establish the initial observer connection that is going to be used during the actual startup operation of the
observer. By default the ObserverConnectIdentifier setting is null and it is falling back to the DGConnectIdentifier value.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 4/16
4/10/2017 Document Display
The Observer machine has 11.2.0.3 installed. The version must match that of the sites in the configuration. The install
can be either a client install or a complete Enterprise Edition install. In the Observer site TNS Aliases must be created for
both the statically registered listener services and the ObserverConnectIdentifier entries. The Static Listener entries will be
used during any editing of the broker configuration from the Observer machine. The ObserverConnectIdentifier aliases will
be used to start and stop the observer.
The following is configured in the tnsnames.ora. Aliases must be configured for both the primary and standby sites and
these entries will be placed in the TNSNAMES.ORA at all sites including the Primary, Standby and Observer sites.
This ObserverConnectIdentifier alias must be dynamically registered in each sites listener and in RAC enabled for failover
between RAC instances.
RS1_STB_OBSRV =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = grid1vm2.au.oracle.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rs1_stb.au.oracle.com)
)
)
RS1_PRM_OBSRV_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = grid1vm1.au.oracle.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rs1_prm_dgmgrl.au.oracle.com)
)
)
RS1_STB_OBSRV_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = grid1vm2.au.oracle.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rs1_stb_dgmgrl.au.oracle.com)
)
)
Test ALL the TNS aliases used by the observer using BOTH tnsping and sqlplus SYSDBA remote connections. These must
succeed from the observer site and each database site that is a part of the configuration. The test will need to be
repeated from each site that is a member of the Data Guard Broker configuration plus the Observer site.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 5/16
4/10/2017 Document Display
TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 28-NOV-2012 10:13:36
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
These same tests will need to be performed against the TNS Aliases that resolve to the statically registered listener
services.
The tests will need to be repeated against all aliases used by the observers from all sites.
The alias used when connecting into the observer MUST be the same as the alias set in the broker configuration for the
property ObserverConnectIdentifier
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 6/16
4/10/2017 Document Display
Now that the connections and thresholds are in place attempt to enable fast start failover.
Ensure the configuration can be viewed successfully using the Observer site
Configuration - rs1_dg
Configuration Status:
SUCCESS
Failed.
Currently there is the configuration does not allow fast start failover to be enabled.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 7/16
4/10/2017 Document Display
Looking at the error there are a number of potential causes for this error that include the mix of protection mode and Log
shipping modes that the sites are currently configured with. These will need to altered.
As this Data Guard configuration is to run in MaxProtection mode the following is performed to establish this mode prior to
enabling fast start failover.
Configuration - rs1_dg
Properties:
FastStartFailoverThreshold = '45'
OperationTimeout = '30'
FastStartFailoverLagLimit = '45'
CommunicationTimeout = '180'
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 8/16
4/10/2017 Document Display
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
Configuration Status:
SUCCESS
Log Shipping is being performed using LGWR ASYNC as seen via the LogXPTMode property, Standby file management
is set to Manual (StandbyFileManagement property) and no Fast Start Failover target (FastStartFailover property in the
primary site) has been set. These will need to be altered.
Database - rs1
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
rs1
Properties:
DGConnectIdentifier = 'rs1_prm'
ObserverConnectIdentifier = 'rs1_stb_obsrv'
LogXptMode = 'async'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'MANUAL'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = 'rs1_prm_dgmgrl'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 9/16
4/10/2017 Document Display
Database Status:
SUCCESS
Database - rs1_stb
Properties:
DGConnectIdentifier = 'rs1_stb'
ObserverConnectIdentifier = 'rs1_stb'
LogXptMode = 'async'
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'rs1, rs1_stb'
LogFileNameConvert = 'rs1, rs1_stb'
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = 'rs1_stb_dgmgrl'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 10/16
4/10/2017 Document Display
Flashback must be enabled in ALL the database sites. It was turned on in the primary but had not yet been enabled in the
standby site.
OPEN_MODE FLASHBACK_ON
MOUNTED NO
Database altered.
Set Log shipping to LGWR SYNC by setting the property LogXPTMode to SYNC
The Log shipping mode needs to be set to SYNC in both the sites.
Failed.
Warning: You are no longer connected to ORACLE.
DGMGRL> exit
In this case the connection used to invoke dgmgrl was not one that specified the TNS alias that resolved to the statically
registered listener service.
It is for this reason that the Primary site could NOT be automatically restarted by the broker.
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 11/16
4/10/2017 Document Display
SQL> startup
ORACLE instance started.
The configuration has now been altered and Max Protection Mode enabled.
Configuration - rs1_dg
Configuration Status:
SUCCESS
Configuration - rs1_dg
Properties:
FastStartFailoverThreshold = '45'
OperationTimeout = '30'
FastStartFailoverLagLimit = '45'
CommunicationTimeout = '180'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 12/16
4/10/2017 Document Display
Configuration Status:
SUCCESS
At this point Standby file management is set to manual so this will be set to auto so that file addition at the primary will
not impact managed recovery.
Database - rs1
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
rs1
Properties:
DGConnectIdentifier = 'rs1_prm'
ObserverConnectIdentifier = 'rs1_prm_obsrv'
LogXptMode = 'SYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'MANUAL'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = 'rs1_stb'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = 'rs1_prm_dgmgrl'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 13/16
4/10/2017 Document Display
Standby site
Database - rs1_stb
Properties:
DGConnectIdentifier = 'rs1_stb'
ObserverConnectIdentifier = 'rs1_stb_obsrv'
LogXptMode = 'SYNC'
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = 'rs1, rs1_stb'
LogFileNameConvert = 'rs1, rs1_stb'
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = 'rs1_stb_dgmgrl'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
Primary Site
Database - rs1
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
rs1
Properties:
DGConnectIdentifier = 'rs1_prm'
ObserverConnectIdentifier = 'rs1_prm_obsrv'
LogXptMode = 'SYNC'
DelayMins = '0'
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 14/16
4/10/2017 Document Display
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = 'rs1_stb'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = 'rs1'
StaticConnectIdentifier = 'rs1_prm_dgmgrl'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
Now that the broker configuration is complete fast start failover can be enabled.
Now that fast start failover is enabled the broker can be started. Log into the observer machine and start the Faststart
Failover observer.
You can directly participate in the Discussion about this Note below. The Frame is the interactive live
Discussion - not a Screenshot
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 15/16
4/10/2017 Document Display
This thread has been created for posts directly related to the My Oracle Support Article
Levels and the Data Guard Observer (Doc ID 1508729.1)
Feel free to post suggestions, corrections or queries regarding the use of the note via t
a direct line of communication with the author.
(0 Clasificaciones)
Thanks for creating this Thread - looking forward to discuss this Matter with y
Thorsten
Acciones
Hi,
After enabling fast start failover,am getting the below warning from broker
DGMGRL> show configuration
Configuration - gim2s
REFERENCES
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=ooymh0edf_9 16/16