Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Application
This FAQ explains, offers recommended usages, and provides references to help
understand the features and tools accessible from the Troubleshooting Options
menu item in Fusion Applications (shown below).
There are essentially three features here, two related to database processing
and one for application logging. These can be made accessible to end users
and intended as switches to be set on before reproducing problems so more
information can be collected.
Equivalent features (and a lot more) exist in Enterprise Manager and other
back-end administrator tools, however here we are specifically discussing the
basic tools available inside of Fusion Applications pages.
How are the Features Secured?
a) Troubleshooting Options
Top 10 code lines executed during that time window, including numbers of
iterations and maximum, minimum and total time taken
Breakdown of specific library execution showing code lines and time taken
details
The Profiler should not be confused with utilities like TKPROF or SQLTXPLAIN
both of which focus on understanding more about the execution of SQL
Statements. The focus of the Profiler is purely PL/SQL code execution and
not related queries, DDL, or DML statements.
As such it can be particularly useful when a problematic process is known to
be related to PL/SQL program execution. For Fusion Applications this tends
to be found in the data crunching processes, especially those related to ESS
jobs. As such the Profiler can be enabled before job launch (immediate not
scheduled) and then turned off once complete.
What is Database Trace?
Database Tracing allows all the activities that occur on the database that are
associated with one users specific work to be recorded. This means when
specific features perform slowly, or encounter problems related to data from
the database, a helpful trace of activities can be obtained for more details
analysis.
This results in a trace file, and can be looked at as-is, or more commonly
used as a data-source for analysis tools like TKPROF mentioned above.
Database traces include lots of different pieces of information including but
not limited to:
What system impact that statement had on things like CPU and disk
What the execution plan was that the database performed in running
that statement (useful for looking for indexing / full table scans)
For Database Trace, when should I include Bind Variables and Wait Events?
Bind Variables are the parameters that are passed into a SQL Statement at
runtime, such as a specific order number, customer id, or other search
criteria value. By default these are not included in trace files and are an
optional extra. They are normally useful to have since they can ensure that
specific problems really do related to the trace files being analyzed, for
example a problem with one order that doesn't occur for other orders.
Wait Events are activities inside the database that can cause a slow down in
SQL Statement execution time. These might be issues related to network
(SQL*Net) communication between database components, and file reading
and locking mechanisms related to accessing data for a specific statement.
Since features in Fusion Applications generally uses a standard database
configuration these may be less immediately obvious as causes, however
remain an option to consider checking.
When might I use Database Trace?
This option controls the output of debug log lines to files for investigating
problems. Much more detail can be found in the Fusion Applications
Administrator's Guide, Chapters 13 and 17, and also in Note 1310286.1 How To Get The Most From Fusion Applications Logging
When should I Enable All or just choose some?
Enabling everything might seem like an easy option, however can eat up
resources, impact performance, and also general overwhelming volume of
information to then have to sift through. It is generally best to consult the
Applications Administrator for advice and look carefully at both the problem
and the feature and work out which troubleshooting feature is most likely to
provide helpful information. As a very general rule, logging catches errors
and tracing catches performance issues, however as a database-based
application both operate together to provide user features.