Running Diagnostics

Diagnostics in Oracle E-Business Suite

Oracle E-Business Suite delivers various diagnostic tools, including, for example:

In addition, diagnostic features are available from the Help menu in Forms-based applications in Oracle E-Business Suite.

Oracle Diagnostics Framework

Oracle Diagnostics Framework provides the infrastructure to execute diagnostic tests either for troubleshooting or for simply sanity-checking the Oracle E-Business Suite instance periodically or after applying any patch. Oracle E-Business Suite Diagnostics provides application specific troubleshooting tools that can help shorten problem-resolution time.

For more information, see Introduction to Oracle E-Business Suite Diagnostics, Oracle Diagnostics Framework User's Guide.

Controlling Access to the Oracle Forms-based Applications Diagnostics Menu

The Diagnostics menu is one of several menus available in Oracle Forms-based applications in Oracle E-Business Suite. These menus allow the user to invoke standard Oracle Forms functions, such as "Clear Record" as well as Oracle E-Business Suite-specific functions. For more information on the Oracle E-Business Suite pulldown menus for Forms-based applications, see: Pulldown Menus and the Toolbar, Oracle E-Business Suite Developer's Guide.

The Diagnostics menu can be found under the Help menu > Diagnostics.

In previous releases, access to the Diagnostics menu and submenu items was controlled by two profile options, Hide Diagnostics Menu Entry and Utilities: Diagnostics:

Access to the above Diagnostics submenu items can be controlled by the profile Utilities:Diagnostics or by security functions using Role-Based Access Control (RBAC). Whether or not a submenu item is available is checked on an as-needed basis by the system when the user selects the submenu item. If the menu item is not available to the user, the message "Function not available to this responsibility. Change responsibilities or contact your System Administrator."

The following flowchart illustrates how the menu items are secured:

Flowchart for Access Control to Diagnostic Menu Entries

the picture is described in the document text

Seeded Security Functions and Permission Sets

The following table lists the seeded securing functions and their corresponding Diagnostic menu items.

Note that there are read-only functions for some menu items.

Seeded Securing Functions and Corresponding Menu Names
Securing Function Name Securing Function User-Friendly Name Internal Menu Name Runtime Menu Name
FND_DIAGNOSTICS_EXAMINE FND Diagnostics Menu Examine DIAGNOSTICS
  • EXAMINE

Diagnostics
  • Examine

FND_DIAGNOSTICS_EXAMINE_RO FND Diagnostics Menu Examine DIAGNOSTICS
  • EXAMINE

Diagnostics
  • Examine

FND_DIAGNOSTICS_TRACE FND Diagnostics Trace TRACE
  • NO_TRACE

  • REGULAR

  • BINDS

  • WAITS

  • BINDS_AND_WAITS

  • PLSQL_PROFILING

Diagnostics
  • No Trace

  • Regular Trace

  • Trace with Binds

  • Trace with Waits

  • Trace with Binds and Waits

  • PL/SQL Profiling

FND_DIAGNOSTICS_VALUES FND Diagnostics Values PROPERTIES_MENU
  • ITEM

  • FOLDER

Diagnostics - Properties
  • Item

  • Folder

FND_DIAGNOSTICS_VALUES_RO FND Diagnostics Values Read Only PROPERTIES_MENU
  • ITEM

  • FOLDER

Diagnostics - Properties
  • Item

  • Folder

FND_DIAGNOSTICS_CUSTOM FND Diagnostics Custom CUSTOM_CODE_MENU
  • NORMAL

  • OFF

  • CORE

  • SHOW_EVENTS

Diagnostics - Custom Code
  • Normal

  • Off

  • Core Code Only

  • Show Custom Events

FND_DIAGNOSTICS_PERSONALIZE FND Diagnostics Personalize CUSTOM_CODE_MENU
  • CUSTOMIZE

Diagnostics - Custom Code
  • Personalize

FND_DIAGNOSTICS_PERSONALIZE_RO FND Diagnostics Personalize Read Only CUSTOM_CODE_MENU
  • CUSTOMIZE

Diagnostics - Custom Code
  • Personalize

The following table lists seeded permission sets.

Seeded Permission Sets
Permission Set Name Permission Set Code Permissions Assigned
FND Diagnostics Examine Menu FND_DIAGNOSTICS_EXAMINE_PS FND Diagnostics Menu Examine
FND Diagnostics Examine Read Only FND_DIAGNOSTICS_EXAMINE_RO_PS FND Diagnostics Menu Examine Read Only
FND Diagnostics Custom Menu FND_DIAGNOSTICS_CUSTOM_PS FND Diagnostics Custom
FND Diagnostics Personalizations Menu FND_DIAGNOSTICS_FORMS_PERS_PS FND Diagnostics Personalize
FND Diagnostics Personalizations Menu Read Only FND_DIAGNOSTICS_FRM_PERS_RO_PS FND Diagnostics Personalize Read Only
FND Diagnostics Properties Menu FND_DIAGNOSTICS_PROPERTIES_PS FND Diagnostics Values
FND Diagnostics Properties Menu Read Only FND_DIAGNOSTICS_PROP_RO_PS FND Diagnostics Values Read Only
FND Diagnostics Trace Menu FND_DIAGNOSTICS_TRACE_PS FND Diagnostics Trace
FND Diagnostics Menu Developer FND_DIAGNOSTICS_DEVELOPER_PS
  • FND Diagnostics Examine

  • FND Diagnostics Personalize

  • FND Diagnostics Trace

  • FND Diagnostics Values

  • FND Diagnostics Custom

FND Diagnostics Menu Support FND_DIAGNOSTICS_SUPPORT_PS
  • FND Diagnostics Examine Read Only

  • FND Diagnostics Personalize Read Only

  • FND Diagnostics Trace

  • FND Diagnostics Values Read Only

  • FND Diagnostics Custom

To give a user access to a secured menu item using RBAC, grant a permission set containing a permission for that item to a role. Then assign that role to the user.

Example - Granting access to the Examine menu item only

For example, say you want to give a certain user full access to the "Examine..." menu item only. You want to make the other menu items that are controlled by the profile Utilities:Diagnostics inaccessible to that user.

  1. Ensure that the profile option Hide Menu Entry is set to No, because that profile controls whether the Diagnostics menu is visible at all.

  2. Ensure that the Utilities: Diagnostics profile is set to No, so that the other menu items will be unavailable.

  3. Grant the seeded permission set FND Diagnostics Examine Menu to a role.

  4. Assign the role to the user.

The user should then be able to access the "Examine..." menu item, but not the other items controlled by the Utilites:Diagnostics profile.

Related Topics

Overview of Access Control with Oracle User Management, Oracle E-Business Suite Security Guide

Using Java Mission Control and Java Flight Recorder

Overview

Oracle E-Business Suite Release 12.2 supports Java Mission Control (JMC) and Java Flight Recorder (JFR) for monitoring and diagnosing Java application performance.

The configuration and availability of JFR differ between the Next Generation Technology Stack and the Classic Technology Stack.

Java Flight Recorder with EBS Release 12.2 on the Next Generation Technology Stack (JDK 17)

Oracle E-Business Suite Release 12.2 with the Next Generation Technology Stack uses JDK 17 as part of the Oracle Fusion Middleware 14c-based technology stack.

Java Flight Recorder is included with JDK 17 and is available without requiring the legacy Classic Tech Stack JVM startup parameters. Therefore, the Next Generation Technology Stack customers do not need to enable Java Flight Recorder through AutoConfig. JFR recordings can be started, checked, dumped, and stopped dynamically using the jcmd utility included with JDK 17.

Unlike the Classic Technology Stack, a restart of the Java process is not required solely to make JFR available. Although JFR is available by default, this does not mean that a recording is automatically running. A recording must be started when diagnostic information is required.

Java Mission Control is available as a separate tool for analyzing JFR recordings and is not bundled with the standard JDK 17 installation.

Using JFR Recordings on the Next Generation Technology Stack

Java Flight Recorder recordings can be managed using the jcmd utility.

As described earlier, JFR is already available with JDK 17 and does not require the enablement procedure. The jcmd utility can be used to start, check, dump, and stop JFR recordings in the environment updated with the Next Generation Technology Stack.

Location of the jcmd Utility

Use the jcmd executable from the JDK 17 installation directory under $COMMON_TOP/util/<JDK_17_DIRECTORY>/bin/jcmd.

The JDK 17 installation directory includes the JDK update version and may change when a newer JDK 17 update is installed. For example, if JDK 17.0.20 is installed, the command is located at: $COMMON_TOP/util/jdk-17.0.20/bin/jcmd

Replace <JDK_17_DIRECTORY> with the actual JDK 17 installation directory in your Next Gen Tech Stack environment.

Note: When applying future JDK 17 updates, use the jcmd utility from the currently installed JDK 17 directory. The directory name may differ depending on the JDK 17 update level.

For information on how to use the jcmd utility to start, check, dump, and stop JFR recordings, see Managing JFR Recordings.

Java Mission Control and Java Flight Recorder with EBS Release 12.2 on the Classic Technology Stack

A new feature in Oracle E-Business Suite Release 12.2.6 allows you to enable Java Mission Control (JMC) and Java Flight Recorder (JFR). When Release 12.2.6 is installed, or the AD.C and TXK.C Delta 8 patches are applied, the feature to enable or disable JFR can be managed via AutoConfig.

By default, the feature is off (disabled). When the feature is enabled via AutoConfig, the startup script will have the following parameters added for the specified managed server or Java process:

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder

The specified managed server or Java process will need to be restarted for the change to take effect. When the feature is disabled via AutoConfig, these parameters are removed and the feature becomes unavailable after the next restart of the managed server or Java process.

To Enable or Disable JMC and JFR for Oracle E-Business Suite Managed Servers

To enable or disable JFR, follow these steps:

  1. Log in to the Oracle E-Business Suite application tier.

  2. Source the Oracle E-Business Suite environment.

  3. To enable JFR for the Oracle WebLogic Server managed servers, run the following command:

    $ perl $FND_TOP/bin/txkrun.pl -script=FlightRecorder -enable=oacore_server1,forms_server1 -contextfile=$CONTEXT_FILE 
  4. To disable JFR for the Oracle WebLogic Server managed servers, run the following command::

    $ perl $FND_TOP/bin/txkrun.pl -script=FlightRecorder -disable=oacore_server1,forms_server1 -contextfile=$CONTEXT_FILE
  5. After running the enable or disable command, restart the managed servers to put the change into effect.

To Enable or Disable JMC and JFR for Oracle E-Business Suite CP, GSM, and AD

To enable or disable JFR, follow these steps:

  1. To enable JFR, run the following command:

    $ perl $FND_TOP/bin/txkrun.pl -script=FlightRecorder -enable=CP,GSM,AD -contextfile=$CONTEXT_FILE
  2. To disable JFR, run the following command:

    $ perl $FND_TOP/bin/txkrun.pl -script=FlightRecorder -disable=CP,GSM,AD -contextfile=$CONTEXT_FILE
  3. Source the environment file before restarting the CP, GSM, and AD services.

Using JFR Recordings on the Classic Technology Stack

Java Flight Recorder recordings can be managed using the jcmd utility for the environment with the Classic Technology Stack.

For the Classic Technology Stack, the JFR feature must be explicitly enabled using the AutoConfig-based procedure described earlier.

Location of the jcmd Utility

The location of the jcmd utility for the Oracle E-Business Suite with the Classic Technology Stack is under $COMMON_TOP/util/jdk64/bin/jcmd.

For information on how to use the jcmd utility to start, check, dump, and stop JFR recordings, see Managing JFR Recordings.

Managing JFR Recordings

Java Flight Recorder recordings can be managed using the jcmd utility in an environment with either the Next Generation Technology Stack or the Classic Technolgoy Stack.

The general command syntax is:

jcmd <PID>.<action> [options]

Run the appropriate jcmd executable for your technology stack.

The following examples use a process ID (PID) of 7000.

Note: Ensure that the recording directory exists, has sufficient free disk space, and is writable by the operating system account running the target Java process.

The jcmd utility must be run on the same host as the target Java process, using an operating system account with the appropriate permissions.

Optionally, the Java Mission Control console can be used to start the recording. For more information, see the JMS and JFR documentation at https://docs.oracle. com/javacomponents/index.html.

Using Java Mission Control

Java Mission Control (JMC) provides graphical tools for analyzing Java Flight Recorder recordings.

For more information, refer to the Oracle JDK Mission Control documentation.