Tracing Oracle Data Guard
Data Guard Broker (DGMGRL) can connect to database using following options: -echo -silent -xml -debug -logfile So if I need to run dgmgrl command in debug mode I would execute following : dgmgrl -debug / or -bash-3.2$ dgmgrl -debug sys/secret@test DGMGRL for Linux: Version 11.2.0.1.0 - 64bit Production Copyright (c) 2000, 2009, Oracle. All rights reserved. Welcome to DGMGRL, type "help" for information. [W000 01/05 12:27:03.81] Connecting to database using test. [W000 01/05 12:27:03.85] Executing query [select dbms_drs.dg_broker_info('VERSION') from dual]. [W000 01/05 12:27:03.86] Query result is '11.2.0.1.0' Connected.
or dgmgrl -debug / shutdown command will shutdown instance ,generate trace file and then exit.
If Data Guard Broker is used then tracing can be enabled using DGMGRL command
and setting property LogArchiveTrace to value other than 0.
/** Tracing primary site **/
DGMGRL> edit database ‘primary_db_name’ set property LogArchiveTrace=’1′;
/** Tracing standby site **/
DGMGRL> edit database ‘standby_db_name’ set property LogArchiveTrace=’1′;
Also this parameter can be set by issueing a SQL statement :
SQL> ALTER SYSTEM SET LOG_ARCHIVE_TRACE=1;
Values are described in table bellow:
Comments
2 Responses to “Tracing Oracle Data Guard”Trackbacks
Check out what others are saying...-
[...] 5-How to trace/debug oracle data guard? Miladin Modrakovic-Tracing Oracle Data Guard [...]
Good one…always looking for this type of information.