Introduction
Oracle Fusion Applications is a suite that provides business functionality in User Interface (UI) screens. When there is a need to review the innards of these business functions, the first places to look are the various system logs made readily available for the administrator. This article introduces the key logs and their locations.
Main Article
While Fusion Applications displays a mosaic of features in web based screens, under the hood this is achieved with a combination of multiple Oracle products and technologies. The products can be visualized in multi-layer stack according to their functionality and role in transaction processing. This is shown in the figure below. Since Layer0 and Layer5 are outside the scope of Fusion Application suite, we will limit this article to Layers 1 to 4.
Given the variety of the products and their stacking, the best way to view information for monitoring and diagnostics is by using the Oracle Enterprise Manager Cloud Control (EM 12C). EM 12c can not only manage and monitor Fusion Applications layer but the entire stack including OS, VM, and DB layers. It can also manage multiple environments. If Cloud Control is not installed or configured in your environmnet, the good news is that Fusion Applications comes with Oracle Enterprise Manager which provides similar functionality. The built-in EM Control works within each FA domain and so will need to be accessed individually and needs EM Administrator access. One great feature of EM Cloud Control is to track transactions as a whole thread instead of peering at individual log file lines.
Despite EM, there is a need to review logs directly at the filesystem level. Quite often, review of logs to diagnose and make configuration changes is needed when the FA system (and so the EM) is down. Also, some savvy administrators may prefer the traditional simple tools like vi and grep for this work.
Thus, knowing what logs to seek and where they are is a must for system administrators. Since Fusion Applications involves a very broad set of products it is often difficult for administrators to know them all in-depth.
The table below summarizes the key log locations across the stack in order for administrators to review them quickly. The table shows the various layers of products in the Fusion Applications stack as shown by the simple picture above.
Product(s) | Log Location and How to find Logs in Non-Default Installs |
Databases
(Layer 1)
|
Hosts : All DB hosts
Log dir : <ORACLE_DB_BASE>/diag/rdbms/<DB_NAME>/<DB_NAME>/trace/
OVM default examples :
/u01/app/oracle/diag/rdbms/fusiondb/fusiondb/trace/
/u01/app/oracle/diag/rdbms/oidb/oiddb/trace
/u01/app/oracle/diag/rdbms/oimdb/oimdb/trace
To find DB_NAME values use : ps -ef | grep pmon
As admin user in sqlplus use the query : show parameter dump_dest to see the trace dir.
The file alert_<DB_NAME>.log is the key file to review for DB errors.
Additional files like *.trc will be useful for further diagnostics.
|
Listener,SQLNet
(Layer 2)
|
Hosts : All DB hosts
Log dir : <ORACLE_DB_BASE>/diag/tnslsnr/<DB_NAME>/<DB_NAME>/trace/
OVM default example :
/u01/app/oracle/diag/tnslsnr/<FUSIONDB_HOSTNAME>/listener/trace/
To get trace dir, as dba in db box : lsnrctl status <optioal_listenername> | grep Log
The file listener.log is the key file to review for sqlnet errors.
|
Node
Manager
(Layer 3)
|
Hosts : All WLS hosts
<CONFIG_BASE>/nodemanager/<hostname>/
OVM default examples :
/u01/IDMTOP/config/nodemanager/oimfa.us.oracle.com/
/u01/APPLTOP/instance/nodemanager/admin-apps.oracleoutsourcing.com/
/u01/APPLTOP/instance/nodemanager/primary.oracleoutsourcing.com/
/u01/APPLTOP/instance/nodemanager/secondary.oracleoutsourcing.com/
/u01/APPLTOP/instance/nodemanager/bi.oracleoutsourcing.com/
/u01/APPLTOP/instance/nodemanager/primary-ha1.oracleoutsourcing.com/
Using "ps -ef | grep weblogic.NodeManager" the parameter -DNodeManagerHome
shows the nodemanager home dir and in this dir, using
"grep LogFile nodemanager.properties" shows the log dir location.
NodeManager helps to start weblogic servers and is crucial to monitoring
the health of weblogic servers and its logs explain issues seen during
startup or stability of weblogic servers.
|
OID
(IdM)
(Layer 3)
|
Hosts : All OID hosts
Log dir: <OID_CONFIG_DIR>/instances/<OID_InstanceName>/diagnostics/logs/OID/<OID_InstanceName>/
OVM default example :
/u01/IDMTOP/config/instances/oid1/diagnostics/logs/OID/oid1
If OID is running, "ps -ef | grep ldapd" shows the process id (PID) of one of the procs,
and "cat /proc/<PID>/environ |tr "\0" "\n" |grep COMPONENT_LOG_PATH" shows the log dir.
If OID is down, the config dir location is in the original install oraInventory/logs dir
and the location of the oraInventory will be in the OID_HOME/oraInst.loc file.
All security requests go through ldap server and so the logs are useful.
However, if no errors and call trace is needed, log levels need to be increased accordingly.
|
OVD
(IdM)
(Layer 3)
|
Hosts : All OVD hosts
Log dir: <OID_CONFIG_DIR>/instances/<OID_InstanceName>/diagnostics/logs/OVD/<OVD_InstanceName>/
OVM default example :
/u01/IDMTOP/config/instances/oid1/diagnostics/logs/OVD/ovd/
If OVD is running, "ps -ef | grep oracle.component.type=OVD" shows the parameter
-Doracle.component.logpath which is the log dir.
OVD is an aggregator of multiple authenticators and so, FA is often installed with OVD in front
of ldap servers and OVD logs provide crucial information on ldap errors in addition to oid logs.
|
OPMN
(IdM)
(Layer 3)
|
Hosts : All OID / OVD hosts
Log dir: <OID_CONFIG_DIR>/instances/<OID_InstanceName>/diagnostics/logs/OPMN/<OPMN_InstanceName>/
OVM default example :
/u01/IDMTOP/config/instances/oid1/diagnostics/logs/OPMN/opmn/
OPMN log dir will be located under same tree as oid log dir (see above).
OPMN is a monitoring agent for oid and ovd and its logs are reviewed if oid or ovd
have any issues with starting or stability.
|
Weblogic
(IdM)
(AdminServer,
OIM, OAM
SOA, ODS,
OIF )
(Layer 3)
|
Hosts : All IdM Weblogic Hosts
Log dir: <IDM_SERVER_CONFIG_DIR>/logs
OVM default example :
/u01/IDMTOP/config/domains/IDMDomain/servers/AdminServer/logs/
If a weblogic server is running, use "ps -ef |grep <servername>"
(where servername is wls_oim, wls_oam etc) to see the parameter oracle.server.config.dir
that is the value of IDM_SERVER_CONFIG_DIR above.
If a server is not running, the file <IDM_BASE_DIR>/domain-registry.xml
(in OVM default example, the file is /u01/IDMTOP/products/app/domain-registry.xml ) shows
IDM_DOMAIN_DIR and <IDM_SERVER_CONFIG_DIR> = <IDM_DOMAIN_DIR>/servers/<servername>
The log files named access*.log show the request/response to the servers.
The files named *.out give the health of the server itself - especially issues with starting.
The files named *.log give details on the various FA deployments running on the server.
The files named *diagnostic.log provide detailed diagnostics and stack dumps.
|
Weblogic
(FA)
(AdminServer,
Managed
Servers
including
BI, SOA,
and ESS
in various
domains)
(Layer 3)
|
Hosts : All FA Weblogic hosts
Log dir: <FA_SERVER_CONFIG_DIR/logs
OVM default example :
/u01/APPLTOP/instance/domains/bi.oracleoutsourcing.com/BIDomain/config/servers/AdminServer/logs
If server is running, use "ps -ef |grep <servername>" to see the wls server process
and the parameter -Doracle.server.config.dir shows the FA_SERVER_CONFIG_DIR above
If a server is not running, the file <FA_BASE_DIR>/domain-registry.xml
(in OVM default example, the file is /u01/APPLTOP/fusionapps/app/domain-registry.xml )
shows the value for FA_DOMAIN_DIR for different domains
and and the <FA_SERVER_CONFIG_DIR> = <FA_DOMAIN_DIR>/servers/<servername
The log files named access*.log show the request/response to the servers.
The files named *.out give the health of the server itself - especially issues with starting.
The files named *.log give details on the various FA deployments running on the server.
The files named *diagnostic.log provide detailed diagnostics and stack dumps.
|
BI
(non-WLS)
(Cluster
Controller,
Essbase,
Java Host,
Presentation,
Scheduler,
BIServer,
and OPMN)
(Layer 3)
|
Host : BI Hosts
Log dir: <FA_CONFIG_DIR>/BIInstance/diagnostics/logs/<servername>
OVM default examples :
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OPMN/opmn/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/Essbase/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OracleBISchedulerComponent/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OracleBIServerComponent/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OracleBIJavaHostComponent/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OracleBIPresentationServicesComponent/
/u01/APPLTOP/instance/BIInstance/diagnostics/logs/OracleBIClusterControllerComponent/
The various logs within each component provide detailed information on the requests,
queries and connections made including parameters and values.
These help diagnose issues in these components.
The opmn logs shows issues with component start or stability.
|
FA
(non-WLS)
(GOP
and
OPMN)
(Layer 3)
|
Hosts : Host running SCM Advanced Procurement if it is configured.
Log dir: FA_CONFIG_DIR>/<GOP_INSTANCE_NAME>/diagnostics/logs/
OVM default example :
/u01/APPLTOP/instance/gop_1/diagnostics/logs/
This is a rare case of opmn based FA server used with SCM ie. outside of weblogic.
|
Webtier,
Wegbgate
and OPMN
(Layer 4)
|
Hosts : All OHS hosts
Log dirs :
OHS, Webgate logs : <OHS_CONFIG_HOME>/diagnostics/logs/OHS/<instance_name>/
OPMN logs : <OHS_CONFIG_HOME>/diagnostics/logs/OPMN/<instance_name>/
OVM default examples :
IdM OHS : /u01/IDMTOP/config/instances/ohs1/diagnostics/logs/OHS/ohs1/
IdM OPMN : /u01/IDMTOP/config/instances/ohs1/diagnostics/logs/OPMN/opmn/
FA OHS : /u02/instance/CommonDomain_webtier_local/diagnostics/logs/OHS/ohs1/
FA OPMN : /u02/instance/CommonDomain_webtier_local/diagnostics/logs/OPMN/opmn/
If OHS is runing, use "ps -ef | grep httpd" to get the ID of any thread and then
"cat /proc/<PID>/environ | tr "\0" "\n" | grep COMPONENT_LOG_PATH" to get log dir.
If OHS is down, config dir can be seen in original install log if it exists.
"grep INSTANCE _HOME <WEBTIER_HOME>/cfgtools/oui/ *.log" will show the instance dir
and the logs will be under that dir similar to above.
All http requests go through the OHS web servers and so the access_log files
are useful to trace the first incoming call and then track it down to
further calls in inner layers using the same ID seen in that request log line.
The oblog_log files are useful to track the requests of the webgate plugin.
The log level needs to be set right to get the right diagnostic information.
OPMN logs are used to review OHS starting or stability issues.
|
The size of the log file is curtailed by periodic roll-overs and so old logs can accumulate and it is crucial to sort log files by time to review them right.
Apart from the above, there are a few other critical tasks involved in creation and maintaining of Fusion Applications and the logs files related them are listed below.
Phase | Log Location |
Initial Install |
Tools : Fusion Applications Provisioning Utility Log dir: <FA_BASE>/logs/provisioning/<hostname> These are created during the initial provisioning of the system and are not used after that. The logs here are useful during the installation. Later upgrades and patching use different locations. Sometimes keeping these logs may help if there are any questions later on the provisioning process. |
Install / Upgrade |
Tools : Orcle Universal Installer (OUI) Log dir: <INVENTORY_DIR>/logs/ At initial install and later updates, product files are updated by the Oracle Universal Installer (OUI). This uses the traditional location known as the OraInventory dir to save information on the install as well as the installer logs. Normally this directory is preserved in case there is any need to review the install process later. The location of INVENTORY_DIR is in each product home dir in a file named oraInst.loc. In some rare cases of manual installs, due to the flexibility offered by the installer, users may have chosen different oraInventory directories for different products - so it helps to check the oraInst.loc files for each product home. For a FA system upgraded from one release to another, there is a requirement to consolidate all FA inventory location files. |
Patching |
Tools : Oracle Patch Utility (OPatch) Log dir: <ORACLE_HOME>/cfgtools/opatch/ OVM default examples : /u01/IDMTOP/products/dir/oid/cfgtoollogs/opatch /u01/IDMTOP/products/ohs/ohs/cfgtoollogs/opatch /u01/APPLTOP/fusionapps/applications/cfgtoollogs/opatch/ /u01/APPLTOP/webtier_mwhome/webtier/cfgtoollogs/opatch/ Patching of Fusion Applications involves patches applied to : |
Tools : Oracle Fusion Applications Patch Manager Log dir: <FA_ORACLE_HOME>/admin/FUSION/log*/ OVM default example : /u01/APPLTOP/fusionapps/applications/admin/FUSION/log*/ The Fusion Applications Patch Manager saves its logs in the directories |
|
Upgrade |
Tools : Oracle Fusion Applications Upgrade Utility Log dir: <APPLICATIONS_CONFIG>/lcm/logs/ OVM default example : /u01/APPLTOP/instance/lcm/logs/ Fusion Applications Upgrade Utility does several tasks to upgrade and patch and often in |
Conclusion
For FA Administrators, knowing all the log locations handy is useful anytime, but crucial when there is any urgent need to troubleshoot or monitor the system especially when EM Cloud control is not readily available or not geared for a specific task.
All content listed on this page is the property of Oracle Corp. Redistribution not allowed without written permission