Oracle Enterprise Manager Configuration Guide Release 9.2.0.2 Part Number A96673-02 |
|
|
View PDF |
Each tier of the Enterprise Manager framework such as the Console, Management Server, and Intelligent Agents supports its own tracing and logging capabilities.
Both tracing and logging will provide the same detailed information on what actions the component is performing; however, tracing would be used to write data to a display for real-time viewing while logging would be used to redirect trace information to a file to view at a later time.
This appendix will describe how to enable both tracing and logging of the various Enterprise Manager components. The sections include:
There are two ways to enable logging and tracing. One method will give you quick results without you having to set environment variables or variables in the ClientConfig.properties
file. The other method is more deliberate and will require more time than the quick method because you will have to add properties and values to the ClientConfig.properties
file.
You can obtain information about client applications without setting environment variables or variables in the ClientConfig.properties
file.
To obtain information for debugging a specific client application, at the command prompt, type
$ oemapp debug [app]
or
$ oemapp trace [app]
The command enables tracing at level 2 for the client application you specified, and the output is directed to the Console.
For example:
$ oemapp debug console $ oemapp trace console
clientConfig.properties
files.
The clientConfig.properties
file is located in the $ORACLE_HOME/sysman/config
directory.
When you add logging and tracing parameters in the clientConfig.properties
, all client applications will use these settings.
The following variables can be specified in the clientConfig.properties
file:
Note: In order to fully trace the client applications, both the LOGGING.ENABLED and TRACING.ENABLED parameters must be set to TRUE. |
clientConfig.properties
file, set the special environment variable ORACLE_OEM_CLIENTTRACE
(name in uppercase) to make the logging and tracing active.If you need to perform additional JAVA debugging, you can modify the OEMAPP
script file and add debugging parameters. This level of JAVA detail is not necessary in most cases, and is only useful if specific JAVA errors about class mismatches or missing classes are reported.
Change
SET JRE=jre -nojit ...rest of commandline...
to
SET JRE=jre -nojit -verbose ...rest of commandline...
Change
JRE="jre ...options... -nojit ...more options...
to
JRE="jre ...options... -verbose -nojit ...more options...
Logging and tracing of the Management Server, the middle tier, is specified in the OMSCONFIG.PROPERTIES
file, located in the $ORACLE_HOME\SYSMAN\CONFIG
directory.
Parameters in the Management Server properties file are case sensitive; therefore, specify the parameters in the same case as specified in this section.
Note: LOGGING.MAX_SIZE and LOGGING.MAX_FILE_CNT control how much disk space is used for the Management Server log files. You can affect the size and disk usage of the log files with these parameters. |
The oms.nohup
file (the Management Server trace file) is automatically created (on both Windows NT and UNIX). The oms.nohup
file has entries corresponding to when the Management Server is started and stopped and if the Management Server restarts itself for any reason. Any critical error messages (for example, running out of sessions, SQL exceptions, and others) are also logged to this file. Any other detailed tracing is directed to the oms.log
files (if tracing is turned on)
The Event Handler is part of the Oracle Management Server. In order to trace the Event Handler, perform the steps to trace the Management Server. Trace information about the Event Handler will be included in the Management Server's trace/log file.
Refer to "Logging and Tracing Management Server", for more information about the properties and values to add to the OMSCONFIG.PROPERTIES
file in order to enable tracing.
Use this section only if you are using the Oracle HTTP server installed with the Management Server.
Change or modify the following settings:
$ORACLE_HOME/Apache/Apache/conf/httpd.conf
Oracle HTTP server logging and tracing should be enabled
# LogLevel: Control the number of messages logged to the error_log. # Possible values: debug,info,notice,warn,error,crit,alert,emerg Loglevel warn
The following log files will be created:
access_log
The default directory is $ORACLE_HOME/Apache/Apache/logs u
nless overruled by a CustomLog
setting in httpd.conf
. This file contains a list of all HTML requests handled by the Oracle HTTP server.
error_log
The default directory is $ORACLE_HOME/Apache/Apache/logs
unless overruled by the ErrorLog
setting in httpd.conf
. This file contains a list of all failed HTML requests handled by the Oracle HTTP server.
Note: After every modification of the Oracle HTTP server configuration files, you must stop and restart the Oracle HTTP server. |
Use this section only if you are using the Oracle HTTP server installed with the Management Server.
Change or modify the following settings:
$ORACLE_HOME/Apache/Jserv/etc/jserv.properties
. Make sure the log switch is set to true. You can also specify the location of the jserv log file:
log=true log.timestamp=true log.file=<path to jserv log file>/jserv.log log.channel.servletException=true log.channel.jservException=true log.channel.warning=true log.channel.servletLog=true log.channel.critical=true
$ORACLE_HOME/Apache/Jserv/etc/jserv.properties
, and disable the JAVA JIT (Just In Time) compiler to obtain line numbers and more JAVA debug output in exceptions and JAVA tracing.
Near the top of the file, there is the list command line switches:
wrapper.bin.parameters=-Xms64m wrapper.bin.parameters=-Xmx128m
Add the line:
wrapper.bin.parameters=-Djava.compiler=NONE
The jserv.log
is created. The default directory is $ORACLE_HOME/Apache/Jserv/logs
unless the value is overruled by the log.file
setting in jserv.properties
. This file contains all actions the Jserv has performed.
Note: After every modification of the Jserv configuration files, you must stop and restart the Oracle HTTP server. |
Modify $ORACLE_HOME/sysman/config/reporting.properties
by adding the following lines:
TRACING.ENABLED=true LOGGING.ENABLED=true TRACING.LEVEL=2
Note: The name of the parameters have to be in UPPERCASE. The value of the parameters have to be in LOWERCASE. |
The reporting.log is created. The default directory is $ORACLE_HOME/sysman/log
. This file will contain all the actions the reporting servlets have performed.
Note: After every modification of the reporting configuration file, you must stop and restart the Management Server. |
Tracing and logging of the third tier Intelligent Agent enables tracking of all communication between the Intelligent Agent and Management Servers. For information on activating tracing and logging of the Intelligent Agent, refer to the Oracle Intelligent Agent User's Guide.
If you encounter problems bringing up Oracle Enterprise Manager in a browser, collect tracing information before reporting the problem to Oracle Support Services.
To set up tracing for your browser perform the following steps:
From the Windows Start menu, select Programs > JInitiator Control Panel. A Java Plug-in Properties window appears.
The Java Console window appears, showing the Java classes loaded by the plugin as well as any exceptions that may occur. If no exceptions are displayed, clear the window (by clicking Clear) every 3rd or 4th window-full of displayed information.
The Enterprise Manager Paging Server can be debugged and traced separately from the Management Server. Tracing for the paging server is disabled by default. If tracing is enabled, the server writes trace statements for all telephone line handling and any successes or failures to a log file by default. Since information is logged whenever a page is sent, the log file grows proportionally to the number of pages sent. To delete a log file, you must shut down the paging server and delete the file.
The installation of the Oracle Enterprise Manager Paging Server provides a template configuration file, paging.cfg.template
, located in the ORACLE_HOME\sysman\config
directory.
paging.cfg.template
file to the paging.cfg
file, which is also located in the ORACLE_HOME\sysman\config
directory.
Oracle recommends copying this file (not renaming it) to retain information. If you do not copy this file, all comments concerning enabling tracing of paging will be removed. In addition, when updates to Enterprise Manager software are made, any configuration will be lost and not retrievable.
paging.cfg.template
file, modify the paging.cfg
file according to your tracing needs and save it.To enable tracing of the Enterprise Manager Paging Server, add the following properties and appropriate values to the paging.cfg
file:
The SQL engine accepts, executes, and transmits the results of the SQL statements issued by the Enterprise Manager software.
Client applications include the Enterprise Manager Configuration Assistant and the database management portion of the Console. Depending on how the client application was started, the SQL Engine can be running on either the client or the Management Server:
Since the engine can be traced on both the client and the Management Server, these parameters can be specified in both the omsconfig.properties
and the ClientConfig.properties
files.
The possible VDB (SQL Engine) parameters are mutually exclusive. You should use the highest requested tracing.
Refer to Database Tuning with the Oracle Tuning Pack for information on tracing.