Enterprise Manager Diagnostics

OMS Log Locations

During startup and shutdown of OMS logging information is written to the following locations:

ComponentDirectoryFilename
emctl $EM_BASE/em/EMGC_OMSn/sysman/log emctl.log
OPMN $EM_BASE/WebTierIH1/diagnostics/logs/OPMN/opmn opmn.log
HTTP_SERVER $EM_BASE/WebTierIH1/diagnostics/logs/OHS/ohs1 access.log
    console~OHS~1.log
Node Manager $EM_BASE/NodeManager/emnodemanager nodemanager.log
Admin Server $EM_BASE/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs EMGC_ADMINSERVER.out
    EMGC_ADMINSERVER.log
    GCDomain.log
Managed Server (OMS) $EM_BASE/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs EMGC_OMS1.out
    EMGC_OMS1.log

OMS Console Logging and Trace

Tested in EM 12.1.0.4

The OMS Console application is emgc

OMS Console logging information is written to emoms.log

For example:

/u01/oracle/gc_inst/em/EMGC_OMS1/sysman/log/emoms.log

OMS Console trace information is written to emoms.trc

For example:

/u01/oracle/gc_inst/em/EMGC_OMS1/sysman/log/emons.trc

Trace SQL executed against Repository Database

Tested in EM 12.1.0.4

Om the OMS server login to emcli. For example:

$ emcli login -username=SYSMAN

Enable trace for a specific EM user using

$ emcli trace -enable=true -user=<username>

For example:

$ emcli trace -enable=true -user=MASK_USER

Trace enabled for user "testuser1". Activity will be traced at
"/u01/oracle/gc_inst/em/EMGC_OMS1/sysman/log/testuser1_1433955588270.trace".
Logs will be flused when trace is disabled via emcli. Enterprise Manager will 
automatically turn off the trace for this user after 30 minutes.
Execute emctl command to create a html report from the trace file

Disable trace for a specific EM user using

$ emcli trace -enable=false -user=<username>

For example:

$ emcli trace -enable=false -user=MASK_USER

UI trace disabled for user "testuser1". Log available at
"/u01/oracle/gc_inst/em/EMGC_OMS1/sysman/log/testuser1_1433955588270.trace".
Execute emctl command to create a html report from the trace file

Note that the log file is in binary format.

Generate an HTML version of the trace report using:

$ emctl genreport oms -file_name <filename>

For example:

$ emctl genreport oms -file_name testuser1_1433955588270.trace
...
Report for trace file at
/u01/oracle/gc_inst/em/EMGC_OMS1/sysman/log/testuser1_1433955588270.trace
generated at /tmp/results/report_testuser1_1433955588270.html

List Trace Sessions

To list currently configured OMS trace sessions use list_trace. For example:

$OMS_HOME/bin/emcli list_trace
UserName       Started At                    Trace File Name         Collection Threshold
 TESTUSER1      Mon Jun 15 18:16:40 BST 2015  testuser1_1433955588270.trace  0

    Property Name                        Property Value
 trace.backgroundthreads                       false
 trace.usertracetimeout                        30(mins)
 trace.collecton.threshold                     3000(ms)
 trace.rotateon.filesize                       5(MB)
 trace.allusers                                false
 trace.threads.interval                        250(ms)
 trace.threads.stackdepth                      20