Dgmgrl
while we do a switchover using DGMGRL, the instances are shut down but do not come up automatically!!
DGMGRL> switchover to 'ORCL';
Performing switchover NOW, please wait...
Operation requires shutdown of instance "orcl" on database "ORCLSB"
Shutting down instance "orcl"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "orcl" on database "ORCL"
Shutting down instance "orcl"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "orcl" on database "ORCLSB"
Starting instance "orcl"...
ORA-01031: insufficient privileges
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "orcl"
You must start instance "orcl" manually
Operation requires startup of instance "orcl" on database "ORCL"
You must start instance "orcl" manually
Switchover succeeded, new primary is "ORCL"
how can i have the DGMGRL automatically start the instances???
Yes dgmgrl is a tool the Oracle Dataguard Broker, this tool offer the possibility of make more easy the switchover and failover operations, you must see the next link for more information.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14230/toc.htm
Luck.
Have a good day.
Similar Messages
-
Error when create DGMGRL configuration.
When I add database standby in my configuration I receive this error message :
DGMGRL> add database pij10g2 as
connect identifier is pij10g2
maintained as physical;Error: ORA-16796: one or more properties could not be imported from the database
Failed.
DGMGRL> show configuration;
Configuration
Name: orapij10_standby
Enabled: NO
Protection Mode: MaxAvailability
Fast-Start Failover: DISABLED
Databases:
pij10g - Primary database
Current status for "orapij10_standby":
DISABLED
I start my standby like this, It's ok ? :
SQL> STARTUP NOMOUNT;
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
I test tns by tnsping from my primary database :
primary> tnsping pij10g2
TNS Ping Utility for Solaris: Version 10.2.0.1.0 - Production on 01-NOV-2007 07:49:59
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.11)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PIJ10G2_DGMGRL)))
OK (10 msec)
Can you help me ?
Regards,Check that listener for your standby database has proper handler for PIJ10G2_DGMGRL service name. Use static registration for this.
Then, Protection Mode: MaxAvailability implies SYNC log transport mode. Check this option too in your log_archive_dest_NN settings.
Best Regards,
Alex -
Manual\DGMGRL Switchover Standby ora-01033 error
I have created a standby server for my SAP application as a part of test Disaster Recovery scenario. I can see the redo logs getting applied from primary to standby. However when I manually switchover the roles i encounters ORA -01033 error at NEW PRIMARY server and logs are also not getting applied in this scenario.
When i again changes the roles it works fine. I am not sure what is cause of ORA -01033 error. Here are the detailed tnsnames.ora of both sites.
Primary Server
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_STANDBY.WORLD)
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_PRIMARY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
Standby Site
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_PRIMARY.WORLD)
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_STANDBY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
Now , when i enable the DGMGRL configuration and add standby database at primary the " log_archive_dest_2=''" goes empty . Here is the pfile of primary after enable of the DGMGRL.
pfile of Primary
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.archive_lag_target=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\cntrlP11.dbf','D:\oracle\P11\origlogB\cntrl\cntrlP11.dbf','D:\oracle\P11\sapdata1\cntrl\cntrlP11.dbf'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=260938137
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_primary'
*.dg_broker_start=TRUE
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_primary'
*.FAL_Server='to_standby'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_archive_config='nodg_config'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_primary'
p11.log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)'
*.log_archive_dest_2=''
*.log_archive_dest_state_1='enable'
p11.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
p11.log_archive_format='ARC%S_%R.%T'
*.log_archive_max_processes=10
*.log_archive_min_succeed_dest=1
p11.log_archive_trace=0
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=347917516
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=521876275
*.shared_pool_reserved_size=26093813
*.shared_pool_size=300938137
*.sort_area_retained_size=0
*.sort_area_size=2097152
p11.standby_archive_dest=''
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
pfile of standy DB
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\control01.ctl','D:\oracle\P11\origlogB\cntrl\control02.ctl','D:\oracle\P11\sapdata1\cntrl\control03.ctl'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=155870822
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_disaster'
*.dg_broker_start=TRUE
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_standby'
*.FAL_Server='to_primary'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_archive_config='DG_CONFIG= (P11_primary, P11_disaster)'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_disaster'
*.log_archive_dest_2='SERVICE=to_primary LGWR ASYNC DELAY=5 VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=P11_primary'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_max_processes=10
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=207827763
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=311741644
*.shared_pool_reserved_size=15587082
*.shared_pool_size=300870822
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
Here are the alert logs of primary DB.
LTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_trace=0 SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_format='ARC%S_%R.%T' SCOPE=SPFILE SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET standby_archive_dest='' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_dest_state_1='ENABLE' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_max_processes=10 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:27 2011
Beginning log switch checkpoint up to RBA [0x3b7.2.10], SCN: 7939485
Thread 1 advanced to log sequence 951
Current log# 4 seq# 951 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
Current log# 4 seq# 951 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G14M2.DBF
Sat Jul 02 16:29:28 2011
ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Sat Jul 02 16:29:28 2011
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Beginning log switch checkpoint up to RBA [0x3b8.2.10], SCN: 7939487
Thread 1 advanced to log sequence 952
Current log# 2 seq# 952 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 952 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G12M2.DBF
Sat Jul 02 16:29:29 2011
Error 12541 received logging on to the standby
Check whether the listener is up and running.
Sat Jul 02 16:29:29 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc1_2396.trc:
ORA-12541: TNS:no listener
FAL[server, ARC1]: Error 12541 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=
Here is the Alert log of standby
RFS[2]: Identified database type as 'physical standby'
Sat Jul 02 16:21:00 2011
RFS[3]: Assigned to RFS process 1620
RFS[3]: Identified database type as 'physical standby'
Sat Jul 02 16:21:00 2011
RFS[2]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001'
Sat Jul 02 16:21:00 2011
RFS[3]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001'
Sat Jul 02 16:21:00 2011
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001
Identified End-Of-Redo for thread 1 sequence 947
Sat Jul 02 16:21:01 2011
Media Recovery End-Of-Redo indicator encountered
Sat Jul 02 16:21:01 2011
Media Recovery Applied until change 7934481
Media Recovery archivelogs detected beyond End-Of-REDO
Resetting standby activation ID 1369083708 (0x519a8f3c)
Completed: Alter Database Recover Managed Standby Database
Sat Jul 02 16:21:29 2011
Alter Database Recover Managed Standby Database Disconnect
MRP0 started with pid=28, OS id=996
Managed Standby Recovery not using Real Time Apply
parallel recovery started with 2 processes
Clearing online redo logfile 1 D:\ORACLE\P11\ORIGLOGA\LOG_G11M1.DBF
Clearing online log 1 of thread 1 sequence number 949
Sat Jul 02 16:21:36 2011
Completed: Alter Database Recover Managed Standby Database Disconnect
Sat Jul 02 16:21:37 2011
Clearing online redo logfile 1 complete
Clearing online redo logfile 2 D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
Clearing online log 2 of thread 1 sequence number 946
Clearing online redo logfile 2 complete
Clearing online redo logfile 3 D:\ORACLE\P11\ORIGLOGA\LOG_G13M1.DBF
Clearing online log 3 of thread 1 sequence number 944
Clearing online redo logfile 3 complete
Clearing online redo logfile 4 D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
Clearing online log 4 of thread 1 sequence number 945
Clearing online redo logfile 4 complete
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001
Media Recovery Waiting for thread 1 sequence 949
Sat Jul 02 16:22:37 2011
RFS[1]: No standby redo logfiles created
RFS[1]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001'
Sat Jul 02 16:22:37 2011
RFS[1]: Archive log thread 1 sequence 949 available in 5 minute(s)
Sat Jul 02 16:22:37 2011
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[4]: Assigned to RFS process 2200
RFS[4]: Identified database type as 'physical standby'
Primary database is in MAXIMUM PERFORMANCE mode
Primary database is in MAXIMUM PERFORMANCE mode
RFS[4]: No standby redo logfiles created
Sat Jul 02 16:22:38 2011
Media Recovery Delayed for 5 minute(s) (thread 1 sequence 949)
Sat Jul 02 16:27:38 2011
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001
Media Recovery Waiting for thread 1 sequence 950 (in transit)
Sat Jul 02 16:29:42 2011
RFS[4]: Possible network disconnect with primary database
Aborting archivelog file creation: C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00950_0755040789.001
If this a network disconnect, then this archivelog will be fetched again
by GAP resolution mechanism.
Please advice as i am not sure of i have created something in listener file for DGMGRL configuration..
RegardsDGMGRL> show configuration
Configuration
Name: my_dg
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
P11_primary - Primary database
P11_disaster - Physical standby database
Current status for "my_dg":
Warning: ORA-16607: one or more databases have failed
DGMGRL> SHOW DATABASE 'P11_primary' 'StatusReport';
STATUS REPORT
INSTANCE_NAME SEVERITY ERROR_TEXT
p11 ERROR ORA-16737: the redo transport service for standby database "P11_disaster" has an error
p11 WARNING ORA-16715: redo transport-related property LogXptMode of standby database "P11_disaster" is inconsistent
DGMGRL> SHOW DATABASE 'P11_primary' 'LogXptStatus';
LOG TRANSPORT STATUS
PRIMARY_INSTANCE_NAME STANDBY_DATABASE_NAME STATUS
p11 P11_disaster ORA-12541: TNS:no listener
After this when i check the status of listener at P11_disaster site it was up . I restarted the listener and found following message in listener log at standby ( p11_primary) . These are the last lines of listener log.
03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2244)) * establish * P11 * 0
03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2245)) * establish * P11 * 0
03-JUL-2011 13:45:25 * ping * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
Listener completed notification to CRS on stop
03-JUL-2011 13:45:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * stop * 0
TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Production on 03-JUL-2011 13:45:42
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is D:\oracle\P11\102\network\admin\listener.ora
Log messages written to D:\oracle\P11\102\network\log\listener.log
Trace information written to D:\oracle\P11\102\network\trace\listener.trc
Trace level is currently 0
Started with pid=624
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
03-JUL-2011 13:45:46 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * status * 0
I am sure this is some configuration issue , however does not have clue :( -
Dgmgrl:show configuration not stable---sometimes good, sometimes error
we have a test environment has some issues, but I not sure which issues are they.
OS: linux redhat 5
db: 11gr2
2 RAC nodes primary with 2 rac nodes standby
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
dwstst - (*) Physical standby database
Fast-Start Failover: ENABLED
Configuration Status:
SUCCESS
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
Warning: ORA-16829: fast-start failover configuration is lagging
dwstst - (*) Physical standby database
Warning: ORA-16829: fast-start failover configuration is lagging
Fast-Start Failover: ENABLED
Configuration Status:
WARNING
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
Warning: ORA-16829: fast-start failover configuration is lagging
dwstst - (*) Physical standby database
Warning: ORA-16829: fast-start failover configuration is lagging
Fast-Start Failover: ENABLED
Configuration Status:
WARNING
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
Warning: ORA-16829: fast-start failover configuration is lagging
dwstst - (*) Physical standby database
Warning: ORA-16829: fast-start failover configuration is lagging
Fast-Start Failover: ENABLED
Configuration Status:
WARNING
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
dwstst - (*) Physical standby database
Fast-Start Failover: ENABLED
Configuration Status:
SUCCESS
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
dwstst - (*) Physical standby database
Error: ORA-16810: multiple errors or warnings detected for the database
Fast-Start Failover: ENABLED
Configuration Status:
ERROR
DGMGRL> show configuration
Configuration - dwtst_dg
Protection Mode: MaxPerformance
Databases:
dwtst - Primary database
dwstst - (*) Physical standby database
Fast-Start Failover: ENABLED
Configuration Status:
SUCCESS
I got those by query database:
Error 16198
WARN: ARC3: Terminating pid 23729 hung on an I/O operation
15-AUG-2012 00:52:02
Error 16198
ARC3: Error 16198 due to hung I/O operation to LOG_ARCHIVE_DEST_2
SEVERITY ERROR_CODE
MESSAGE
TO_CHAR(TIMESTAMP,'DD-MON-
15-AUG-2012 00:52:04
Error 16198
WARN: ARC1: Terminating pid 29931 hung on an I/O operation
15-AUG-2012 05:45:22
Error 16198
SEVERITY ERROR_CODE
MESSAGE
TO_CHAR(TIMESTAMP,'DD-MON-
ARC1: Error 16198 due to hung I/O operation to LOG_ARCHIVE_DEST_2
15-AUG-2012 05:45:25
69 rows selected.
I think something is really wrong with the database. However seems standby is in sync with primary.
Any help here? Thanks.DGMGRL> show database verbose dwtst
Database - dwtst
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
dwtst1
dwtst2
Properties:
DGConnectIdentifier = 'dwtst'
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 = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '+dw_DAT, +dw_DAT'
LogFileNameConvert = '+dw_FRA, +dw_FRA'
FastStartFailoverTarget = 'dwstst'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName(*)
StaticConnectIdentifier(*)
StandbyArchiveLocation(*)
AlternateLocation(*)
LogArchiveTrace(*)
LogArchiveFormat(*)
TopWaitEvents(*)
(*) - Please check specific instance for the property value
Database Status:
SUCCESS
DGMGRL> show database verbose dwstst
Database - dwstst
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: (unknown)
Apply Lag: 1 second
Real Time Query: OFF
Instance(s):
dwstst1 (apply instance)
dwstst2
Properties:
DGConnectIdentifier = 'dwstst'
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 = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '+dw_DAT, +dw_DAT'
LogFileNameConvert = '+dw_FRA, +dw_FRA'
FastStartFailoverTarget = 'dwtst'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName(*)
StaticConnectIdentifier(*)
StandbyArchiveLocation(*)
AlternateLocation(*)
LogArchiveTrace(*)
LogArchiveFormat(*)
TopWaitEvents(*)
(*) - Please check specific instance for the property value
Database Status:
DGM-17016: failed to retrieve status for database "dwstst"
ORA-16706: Data Guard broker worker process not available
DGMGRL>
I have to go to bed soon, will check update later. The query on standby server runs extremely slow. -
oracle 10.2.0.4 on OEL 5.4
My lab is Two machines running under VMworkstation on my laptop
Primary database 'houston' is on server vmlnx01
physical standby 'smyrna' is on server vmlnx02.
Everything seems to be working - albiet a bit slow - but when I tested the switchover . . . this log is from the primary - houston on vmlnx01
DGMGRL> connect sys/halftrack
Connected.
DGMGRL> switchover to smyrna;
Performing switchover NOW, please wait...
Operation requires shutdown of instance "houston" on database "houston"
Shutting down instance "houston"...
ORA-01109: database not openOdd ... why would it report database not open .. it most certainly is, and I was watching the alert log (tail -f alert*) in another putty session
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "smyrna" on database "smyrna"
Shutting down instance "smyrna"...
ORA-01109: database not openthat one makes sense, that is the standby that was in MOUNT, not OPEN
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "houston" on database "houston"
Starting instance "houston"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptorhuh??? I'm not depending on dynamic registration. A quick check of the listener status on this box shows
Service "houston" has 2 instance(s).
Instance "houston", status UNKNOWN, has 1 handler(s) for this service...
Instance "houston", status READY, has 1 handler(s) for this service...and continuing with the console log (not the alert log)
Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "houston"
You must start instance "houston" manually
Operation requires startup of instance "smyrna" on database "smyrna"
You must start instance "smyrna" manually
Switchover succeeded, new primary is "smyrna"
DGMGRL> exit
[oracle@vmlnx01 ~]$ sqlpulus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 5 11:16:19 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1267068 bytes
Variable Size 100665988 bytes
Database Buffers 180355072 bytes
Redo Buffers 2924544 bytes
Database mounted.
SQL> exitNothing in B14239-05 as far as I can see.
OK, this is a mission, will setup another test on my last 10G server.
mseberg
Have Database is 10.2.0.4.0 running on Linux (Red Hat AS 4) 64 bit OS and Database.
Primary = SMYRNA
Standby = HOUSTON
Data Guard working, will setup Broker soon.
Edited by: mseberg on May 10, 2011 11:42 AM
Summary
Broker barked at me hard but "Make sure that the /etc/hosts files have entries of all other servers, with name and IP address." seemed to fix that
Database is 10.2.0.4.0 running on Linux (Red Hat AS 4) 64 bit OS and Database.
Primary = SMYRNA
INIT file after creation of Database is :
SMYRNA.__db_cache_size=889192448
SMYRNA.__java_pool_size=16777216
SMYRNA.__large_pool_size=16777216
SMYRNA.__shared_pool_size=285212672
SMYRNA.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/SMYRNA/adump'
*.background_dump_dest='/u01/app/oracle/admin/SMYRNA/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/app/oracle/oradata/SMYRNA/control01.ctl','/u01/app/oracle/oradata/SMYRNA/control02.ctl','/u01/app/oracle/oradata/SMYRNA/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/SMYRNA/cdump'
*.db_block_size=8192
*.db_domain='MYDOMAIN'
*.db_file_multiblock_read_count=16
*.db_name='SMYRNA'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=SMYRNAXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=406847488
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1221591040
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/SMYRNA/udump'
Flashback and Archivelog are on. Logging is forced.
3 standby redo logs were created :
ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 '/u01/app/oracle/oradata/SMYRNA/redo04.log' SIZE 50M;
ALTER DATABASE ADD STANDBY LOGFILE GROUP 5 '/u01/app/oracle/oradata/SMYRNA/redo05.log' SIZE 50M;
ALTER DATABASE ADD STANDBY LOGFILE GROUP 6 '/u01/app/oracle/oradata/SMYRNA/redo06.log' SIZE 50M;
The following is added to the INIT file :
*.FAL_SERVER=HOUSTON
*.FAL_CLIENT=SMYRNA
*.STANDBY_FILE_MANAGEMENT=AUTO
*.DB_UNIQUE_NAME=SMYRNA
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=SMYRNA'
*.log_archive_dest_2='SERVICE=HOUSTON LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)'
*.LOG_ARCHIVE_DEST_STATE_1=ENABLE
*.LOG_ARCHIVE_DEST_STATE_2=ENABLE
*.LOG_ARCHIVE_MAX_PROCESSES=30
Shutdown the database
startup nomount pfile='/u01/app/oracle/admin/SMYRNA/pfile/initSMYRNA.ora';
create spfile from pfile='/u01/app/oracle/admin/SMYRNA/pfile/initSMYRNA.ora';
shutdown immediate
scp the database file to the same directory on the standby server.
Standby INIT is as follows :
SMYRNA.__db_cache_size=889192448
SMYRNA.__java_pool_size=16777216
SMYRNA.__large_pool_size=16777216
SMYRNA.__shared_pool_size=285212672
SMYRNA.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/SMYRNA/adump'
*.background_dump_dest='/u01/app/oracle/admin/SMYRNA/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/app/oracle/oradata/SMYRNA/control01.ctl','/u01/app/oracle/oradata/SMYRNA/control02.ctl','/u01/app/oracle/oradata/SMYRNA/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/SMYRNA/cdump'
*.db_block_size=8192
*.db_domain='MYDOMAIN'
*.db_file_multiblock_read_count=16
*.db_name='SMYRNA'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=HOUSTONXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=406847488
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1221591040
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/SMYRNA/udump'
*.FAL_SERVER=SMYRNA
*.FAL_CLIENT=HOUSTON
*.STANDBY_FILE_MANAGEMENT=AUTO
*.DB_UNIQUE_NAME=HOUSTON
*.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=HOUSTON'
*.log_archive_dest_2='SERVICE=SMYRNA LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)'
*.LOG_ARCHIVE_DEST_STATE_1=ENABLE
*.LOG_ARCHIVE_DEST_STATE_2=DEFER
*.LOG_ARCHIVE_MAX_PROCESSES=30
On the Primary
startup mount;
alter database create standby controlfile as 'STANDBY.ctl';
Listener on Primary
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(PROGRAM = extproc)
(SID_DESC =
(global_dbname = SMYRNA_DGMGRL.mydomain)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(sid_name = SMYRNA)
Listener on Standby
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(PROGRAM = extproc)
SID_DESC =
(global_dbname = HOUSTON_DGMGRL.mydomain)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(sid_name = HOUSTON)
Oracle Net on Primary
SMYRNA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary.server)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SMYRNA.MYDOMAIN)
HOUSTON =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.server)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HOUSTON.MYDOMAIN)
Oracle Net on Standby
SMYRNA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary.server)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SMYRNA.MYDOMAIN)
HOUSTON =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.server)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HOUSTON.MYDOMAIN)
TNSPING test successful.
Copy /u01/app/oracle/product/10.2.0/dbs/orapwSMYRNA to Standby server and rename to orapwHOUSTON
Standby control file copied to HOUSTON server and renamed to replace control file(s).
cp /u01/app/oracle/oradata/SMYRNA/STANDBY.ctl /u01/app/oracle/oradata/SMYRNA/control01.ctl
cp /u01/app/oracle/oradata/SMYRNA/STANDBY.ctl /u01/app/oracle/oradata/SMYRNA/control02.ctl
cp /u01/app/oracle/oradata/SMYRNA/STANDBY.ctl /u01/app/oracle/oradata/SMYRNA/control03.ctl
Sid is changed
export ORACLE_SID=HOUSTON
startup nomount pfile='/u01/app/oracle/admin/SMYRNA/pfile/initSMYRNA.ora';
create spfile from pfile='/u01/app/oracle/admin/SMYRNA/pfile/initSMYRNA.ora';
Shutdown database
startup mount;
alter database recover managed standby database disconnect from session;
Open the primary database
Check and Data Guard is working.
-----BROKER CONFIGURATION-----
On both Primary and Standby sites, change the initialization parameter in the spfile to enable the Data guard broker.
Alter system set dg_broker_start=True scope=both;
DGMGRL> connect sys/password@SMYRNA
create configuration 'broker1' as
primary database is 'SMYRNA'
connect identifier is 'SMYRNA';
Configuration "?broker1?" created with SMYRNA database "SMYRNA"
DGMGRL>
DGMGRL> add database 'HOUSTON' as
connect identifier is 'HOUSTON'
maintained as physical;
Database "HOUSTON" added
DGMGRL>
Note: Create the HOUSTON in the SMYRNA DGMGRL
DGMGRL> SHOW CONFIGURATION;
Warning: ORA-16610: command 'Broker automatic health check' in progress
Make sure that the /etc/hosts files have entries of all other servers, with name and IP address.
Warning: ORA-16610: command 'EDIT DATABASE HOUSTON SET PROPERTY' in progress
But if you wait...
DGMGRL> SHOW CONFIGURATION;
Configuration
Name: broker1
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
SMYRNA - Primary database
HOUSTON - Physical standby database
Current status for "broker1":
SUCCESS
DGMGRL> SWITCHOVER TO "HOUSTON"
Performing switchover NOW, please wait...
Operation requires shutdown of instance "SMYRNA" on database "SMYRNA"
Shutting down instance "SMYRNA"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "HOUSTON" on database "HOUSTON"
Shutting down instance "HOUSTON"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "SMYRNA" on database "SMYRNA"
Starting instance "SMYRNA"...
ORACLE instance started.
Database mounted.
Operation requires startup of instance "HOUSTON" on database "HOUSTON"
Starting instance "HOUSTON"...
ORACLE instance started.
Database mounted.
Switchover succeeded, new primary is "HOUSTON"
DGMGRL>
Hope this helps
mseberg
Edited by: mseberg on May 10, 2011 3:34 PM
If you have to remove broker this note is worth a look :
How to Safely Remove a Data Guard Broker Configuration [ID 261336.1]
Edited by: mseberg on May 10, 2011 4:00 PM -
Hi All
If I fire the following switchover command I get the error and after this if I manually start the instances the roles are switched over. Also there is no error in switching over manually. Can anyone please tell me how to rectify this error so that I don't have to start the databases manually after firing the following command?
NOTE - On both nodes there is the entry for each database in respective tnsnames.ora and tnsping is working and on each node. There is the entry in listener.ora for the database the node is hosting and the listener is listening to it.
Thanks in Advace
DGMGRL> switchover to 'duptest5';
Performing switchover NOW. Please wait...
Operation requires shutdown of instance "test5" on database "test5".
Shutting down instance "test5"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "duptest5" on database "duptest5".
Shutting down instance "duptest5"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "test5" on database "test5".
Starting instance "test5"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "test5".
You must start instance "test5" manually.
Operation requires startup of instance "duptest5" on database "duptest5".
You must start instance "duptest5" manually.
Switchover succeeded. New primary is "duptest5"
DGMGRL>So I resolved it by using:
The following format in listener.ora for each database on each node respectively and reloading listener.
(SID_DESC =
(GLOBAL_DBNAME = DG1_DGMGRL.world)
(SID_NAME = DG1)
(ORACLE_HOME = /oracle/ora1010)
(SERVICE_NAME = DG1.world)
Now the output is:
DGMGRL> switchover to "test5";
Performing switchover NOW. Please wait...
Operation requires shutdown of instance "duptest5" on database "duptest5".
Shutting down instance "duptest5"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "test5" on database "test5".
Shutting down instance "test5"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "duptest5" on database "duptest5".
Starting instance "duptest5"...
ORACLE instance started.
Database mounted.
Operation requires startup of instance "test5" on database "test5".
Starting instance "test5"...
ORACLE instance started.
Database mounted.
Switchover succeeded. New primary is "test5"
DGMGRL>
Regards -
Switchover using dgmgrl throwing ORA-12514: TNS:listener does not
Hi,
oracle version : 11.1.0.7
os : sun soalris
i am able to switchover the roles of primary and standby but i am getting this error
DGMGRL> switchover to qecgpoca;
Performing switchover NOW, please wait...
New primary database "qecgpoca" is opening...
Operation requires shutdown of instance "qecgpoce" on database "qecgpoce"
Shutting down instance "qecgpoce"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "qecgpoce" on database "qecgpoce"
Starting instance "qecgpoce"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "qecgpoce"
You must start instance "qecgpoce" manually
Switchover succeeded, new primary is "qecgpoca"i have set db_unique_name_DGMGRL for listener still i am getting
appreciated any inputs..
Thanks
PrakashReview the basics:
1. ORACLE_HOME
2. ORACLE_SID
3. ping
4. tnsping
5. the docs -
Why I cannot change a property using dgmgrl?
I put log_archive_trace=8191 for tracing purpose while ago. Now I try to change it back , but with error:
DGMGRL> edit database 'remeprd' set property 'LogArchiveTrace'='0';
Error: ORA-16587: ambiguous object specified to Data Guard broker
Failed.
How to get that work?
Thanks.However I kept getting this error:
DGMGRL> show database 'remeprd' 'LogArchiveTrace';
Error: ORA-16606: unable to find property "LogArchiveTrace"
DGMGRL> show database verbose remeprd
Properties:
DGConnectIdentifier = 'remeprd'
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 = '10'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '+REME_DAT, +REME_DAT'
LogFileNameConvert = '+REME_DAT, +REME_DAT'
FastStartFailoverTarget = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName(*)
StaticConnectIdentifier(*)
StandbyArchiveLocation(*)
AlternateLocation(*)
LogArchiveTrace(*)
LogArchiveFormat(*)
TopWaitEvents(*)
(*) - Please check specific instance for the property value
Database Status:
SUCCESS -
DGMGRL 11gr2 switchover issues
Hi all,
im new to 11gr2 datagaurd setup using DGMGRL and currently troubleshooting an issue with switchover which was setup by teammate and he is on annual leave.
Details: 11gr2 linux 64-bit RHEL5
both Prod and DR is configured with same DBNAME,INSTANCE,SERVICE and both share the same file system structure.
below are my configuration:
DGMGRL> connect sys@POZW1COL_PRD
Password:
Connected.
DGMGRL> show configuration
Configuration - COLDGCONFIG
Protection Mode: MaxPerformance
Databases:
PCOLPRIM - Primary database
PCOLSTBY - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL> show database 'PCOLPRIM'
Database - PCOLPRIM
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
POZW1COL
Database Status:
SUCCESS
DGMGRL> show database 'PCOLSTBY'
Database - PCOLSTBY
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 0 seconds
Real Time Query: OFF
Instance(s):
POZW1COL
Database Status:
SUCCESS
scenario: SWICTHOVER to standby
DGMGRL> SWITCHOVER TO 'PCOLSTBY'
Performing switchover NOW, please wait...
New primary database "PCOLSTBY" is opening...
Operation requires shutdown of instance "POZW1COL" on database "PCOLPRIM"
Shutting down instance "POZW1COL"...
ORACLE instance shut down.
Operation requires startup of instance "POZW1COL" on database "PCOLPRIM"
Starting instance "POZW1COL"...
ORACLE instance started.
Database mounted.
Switchover succeeded, new primary is "PCOLSTBY"
DGMGRL> show configuration
Configuration - COLDGCONFIG
Protection Mode: MaxPerformance
Databases:
PCOLSTBY - Primary database
PCOLPRIM - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL> show database 'PCOLPRIM'
Database - PCOLPRIM
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 0 seconds
Real Time Query: OFF
Instance(s):
POZW1COL
Database Status:
SUCCESS
DGMGRL> show database 'PCOLSTBY'
Database - PCOLSTBY
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
POZW1COL
Database Status:
SUCCESS
SWICTHOVER TO PRIMARY (OLD PRIMARY):
DGMGRL> SWITCHOVER TO 'PCOLPRIM'
Performing switchover NOW, please wait...
New primary database "PCOLPRIM" is opening...
Operation requires shutdown of instance "POZW1COL" on database "PCOLSTBY"
Shutting down instance "POZW1COL"...
ORACLE instance shut down.
Operation requires startup of instance "POZW1COL" on database "PCOLSTBY"
Starting instance "POZW1COL"...
Unable to connect to database
ORA-12545: Connect failed because target host or object does not exist
Failed.
Warning: You are no longer connected to ORACLE.
Please complete the following steps to finish switchover:
start up and mount instance "POZW1COL" of database "PCOLSTBY"
DGMGRL>
above you could see the issue can anyone highlight me where it was wrong.Hi mahir,
Now i tried to switch over from primary to standby.
it was sucessfull,
DGMGRL> SWITCHOVER TO 'PCOLSTBY'
Performing switchover NOW, please wait...
New primary database "PCOLSTBY" is opening...
Operation requires shutdown of instance "POZW1COL" on database "PCOLPRIM"
Shutting down instance "POZW1COL"...
ORACLE instance shut down.
Operation requires startup of instance "POZW1COL" on database "PCOLPRIM"
Starting instance "POZW1COL"...
ORACLE instance started.
Database mounted.
Switchover succeeded, new primary is "PCOLSTBY"
Also contents from Primary datagaurd broker log.
Command SWITCHOVER TO PCOLSTBY completed
09/03/2012 09:05:44
Starting Data Guard Broker bootstrap <<Broker Configuration File Locations:
dg_broker_config_file1 = "/u01/app/oracle/product/db/11gR2/dbs/dr1PCOLPRIM.dat"
dg_broker_config_file2 = "/u01/app/oracle/product/db/11gR2/dbs/dr2PCOLPRIM.dat"
09/03/2012 09:05:47
DMON Registering service PCOLPRIM_DGB with listener(s)
Broker Configuration: "COLDGCONFIG"
Protection Mode: Maximum Performance
Fast-Start Failover (FSFO): Disabled, flags=0x0, version=0
Primary Database: PCOLSTBY (0x02010000)
Standby Database: PCOLPRIM, Enabled Physical Standby (0x01010000)
09/03/2012 09:05:51
Creating process RSM0
09/03/2012 09:05:54
*SQL Execution error=604, sql=[alter system set log_archive_dest_1='']. See error stack below.*
ORA-00604: error occurred at recursive SQL level 1
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16028: new LOG_ARCHIVE_DEST_1 causes less destinations than LOG_ARCHIVE_MIN_SUCCEED_DEST requires09/03/2012 09:06:03
Notifying Oracle Clusterware to buildup standby database after SWITCHOVER
Data Guard notifying Oracle Clusterware to start services and other instances change
Command SWITCHOVER TO PCOLPRIM completed -
Data Guard Static Listener DGB vs DGMGRL
All
11gR2 here.
When setting up the static listener definition for a database, I see various bits of documentation saying you should have a <SID>_DGB entry and/or a <SID>_DGMGRL entry.
Can someone please explain the difference between _DGB and _DGMGRL and whether both are needed?Hi,
Thanks for your question - I remember had a similar issue while setting up the DG with Broker.
Name is important (I remember a prerequisite) specially when you are using Broker. Please read this note for clarification.
11.2 - DGMGRL>switchover to <standby> Fails with ORA-12514 (Doc ID 1582927.1)
12.1 - DGMGRL>switchover to <standby> Fails with ORA-12514 (Doc ID 1582927.1)
HTH,
Pradeep -
UPDATE STANDBY SITE NAME with DATAGUARD BROKE "DGMGRL"
I've a llitlle PB with my Dataguard
After shutdown both sites to increase SGA size in Primary site and update in secondary site too
I start the Primary site without Pb.
But the Secondary site don't want to start.
When I do a startup it fails.i check in Dataguard and i found
The Pb is the secondary site name is not ('DMWEBDG_srvsdmwebp02')
bu only "DMWEBDG"
And I can't find any way to update the site name in Dataguarg.
the Alter command doesn't explain very well.
Soes anyone knows how to do it?
Thxs
DGMGRL> show site verbose 'DMWEBDG_srvsdmwebp02'
Site
Name: 'DMWEBDG_srvsdmwebp02'
Hostname: 'srvsdmwebp02'
Instance name: 'DMWEBDG'
Service Name: '(DESCRIPTION=(ADDRESS_LIST = (ADDRESS=(PROTOCOL=tcp)(HOST=srvsdmwebp02.int.imd.ch)(PORT=1525)))(CONNECT_DATA=(SID=DMWEBDG)(SERVER=DEDICATED)))'
Standby Type: 'physical'
Number Built-in Processes: '2'
Number Generic Processes: '0'
Enabled: 'yes'
Required: 'yes'
Default state: 'STANDBY'
Intended state: 'STANDBY'
PFILE: ''
Number of resources: 1
Resources:
Name: DMWEBDG_srvsdmwebp02 (default) (verbose name='DMWEBDG_srvsdmwebp02')
Current status for "DMWEBDG_srvsdmwebp02":
Warning: ORA-01034: ORACLE not availableThxs
The PB was Solved. -
Hi all,
i have configured the Datagaurd max performance Mode in 11gr2 and everything is fine.
but the StaticConnectIdentifier value has the IP of the Primary database srever instead of HOSTNAME.
can anyone identify or hlep where i need to change this.
below
Connected.
DGMGRL> show configuration
Configuration - COLDGCONFIG
Protection Mode: MaxPerformance
Databases:
PCOLPRIM - Primary database
PCOLSTBY - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
SNAP of details for below command.
DGMGRL> show database verbose 'PCOLPRIM';
Database - PCOLPRIM
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
POZW1COL
Properties:
DGConnectIdentifier = 'POZW1COL_PRD'
ObserverConnectIdentifier = ''
below you could see the Host has the IP instead of hostname.
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(*HOST=10.10.200.200*)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PCOLPRIM_DGMGRL.dummy.com)(INSTANCE_NAME=POZW1COL)(SERVER=DEDICATED)))'Hi,
You can change with EDIT command
DGMGRL> edit database PCOLPRIM set property StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PCOLPRIM_DGMGRL.dummy.com)(INSTANCE_NAME=POZW1COL)(SERVER=DEDICATED)))'and I think you must add hostnames to HOSTS file
Regards
Mahir M. Quluzade
www.mahir-quluzade.com
Edited by: Mahir M. Quluzade on Sep 14, 2012 3:15 PM -
DGMGRL object "pc01sby3" was not found
Hi Guru's,
I created a logical standby database using Oracle EM 10g Grid control
My primary db_unique_name is P01PRMY
Logical standby db_unique_name is PC01SBY3
After creating logical standby database, i check with DGMGRL
DGMGRL> show configuration
Configuration
Naem: DGConfig1
Enabled: Yes
Protection Mode: MaxPerformance
Database:
PC01PRMY - Primary database
PC01SBY1 - Physical standby database
PC01SBY3 - Logical Standby database
Dast-Start Failover:DISABLED
Current status for "DGConfig1":
SUCCESS
But when i do
DGMGRL> show database verbose PC01SBY3
object "pc01sby3" was not found
Why this happensDGMGRL> show database verbose PC01SBY3
object "pc01sby3" was not found
Why this happens
At first look, can you check broker log files even from primary and also logical standby?
Does it same happened for Physical standby? -
Hi,
I have two question regarding dataguard.
1) If One archivelog is missing from Primary Database without Applying in Standby Database, then what will happen?
2) What is DGMGRL?
Thanks...
Asit
Edited by: asitkmohanty on 04-Oct-2012 05:491) If archivelog is missing from Primary Database without Applying in Standby Database, then what will happen?It is obvious that the standby database would go out of sync. If the archivelog is missing and you have the backup of it, then use this backup and restore and recover it on the standby, so that it would be in sync.
If you do not have the archive and you do not have the backup of the missed archive, they you'll have to use roll forward method to get your standby in sync. For this take a look at http://shivanandarao.wordpress.com/2012/03/26/roll-forward-physical-standby-database-using-rman-incremental-backup/
2) What is DGMGRL?DGMGRL is an utility that is used to monitor the standby databases. For this refer
http://docs.oracle.com/cd/B28359_01/server.111/b28295/dgmgrl.htm
http://docs.oracle.com/cd/B28359_01/server.111/b28295/concepts.htm -
Standby instance failiure ( using DGMGRL)
Hi all ;
PRIMARY ----> ORG
STANDBY -----> DUMMY
WHEN TRYING SWITCHOVER USING DGMGRL , I AM GETTING ERROR.
DGMGRL> switchover to
dummy;
Performing switchover NOW, please wait...
Operation requires shutdown of instance "org" on database "org"
Shutting down instance "org"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires shutdown of instance "dummy" on database "dummy"
Shutting down instance "dummy"...
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
Operation requires startup of instance "org" on database "org"
Starting instance "org"...
Unable to connect to database
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor Failed.
You are no longer connected to ORACLE
Please connect again.
Unable to start instance "org"
You must start instance "org" manually
Operation requires startup of instance "dummy" on database "dummy"
You must start instance "dummy" manually
Switchover succeeded, new primary is "dummy"
DGMGRL> !
Unrecognized command "!", try "help"
DGMGRL> exit
bash-3.2$ export ORACLE_SID=dummy
bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 7 14:39:38 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1048576000 bytes
Fixed Size 1223344 bytes
Variable Size 255853904 bytes
Database Buffers 784334848 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
SQL> select database_role from v$database;
DATABASE_ROLE
PRIMARY
When trying to connect standby database , i am getting error :
bash-3.2$ export ORACLE_SID=org
bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 7 14:40:15 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1048576000 bytes
Fixed Size 1223344 bytes
Variable Size 255853904 bytes
Database Buffers 784334848 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
SQL> select database_role from v$database;
select database_role from v$database
ERROR at line 1:
ORA-03135: connection lost contact
SQL> select database_role from v$database;
ERROR:
ORA-03114: not connected to ORACLE
FYI : both database ping well on same server.ORG probably went down. Check the alert.log for ORG.
Hemant K Chitale
Maybe you are looking for
-
I created a partition using resizeVolume, and now I would like to remove it. Is there any way to remove the partition with out reformatting the entire Volume, like you would do with disk utility? The manual for resizeVolume kinda leads me to believe
-
When I run some simple JSP a get: [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.] **** Unable to obtain password from principals.xml. Using default. D:\jdev1013EA1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
-
Can't print separations correctly
I have a b&w photo that I have added a spot of red to. I have done this in PS CS3. When I save the photo (as a psd) and import to Illustrator, and I try to print separations, the entire photo separates as cmyk. I only need the red to separate as cmyk
-
Difference between S_PROGRAM and S_DEVELOP!!
Hi All, Can anyone please tell me the difference between S_PROGRAM and S_DEVELOP..?? I think both are used to protect the access to the ABAP programs..Then how it's different from each other? Thanks in advance, Ram
-
Is there a way to recover iPhoto library after erasing drive and clean install of Mavericks?
Is there a way to recover the photos in my iphoto library after erasing my SSD drive and reinstalling mavericks? My time capsule backed everything up except iphoto, and I had 3 years worth of important photots in there. Is there any way to recover th