Tracing Concurrent Programs
Steps to enable trace for Concurrent Requests: Request Level
- Log in to the environment from which you want to trace.
- Set the value for the profile option Concurrent: Allow Debugging to "Yes" at user level.
- Choose the appropriate responsibility and concurrent program to be executed.
- Click on the "Debug Options" button.
- Enable tracing by selecting the "SQL Trace" Check box, and choose the trace level from the DropDown list. Confirm your selection by clicking the "OK" button.
- Submit the concurrent program.
- [Perform Steps 1-6 for each individual concurrent request that needs to be traced.]
- Write down the request_id of your concurrent program job.
- Once the concurrent request completes, retrieve the raw trace file using the request_id (from Step 7) or the tracefile_identifier (set by default to the userid).
- Format the raw trace with TKPROF
The Debug Options button used for tracing individual requests is not available for request sets. You must set the Initialization SQL Statement Custom profile option method (described below) in order to trace request sets. With this method, a trace file will be produced for each program within the request set.
Steps to enable trace for Concurrent Requests - Program Level
- Log in to the environment from which you want to trace.
- Choose an appropriate responsibility and select the Concurrent > Program > Define screen.
- Press [F11] to enter query mode and search for the concurrent program. Press [CTRL][F11] to execute the search.
- Check the 'Enable Trace' box to turn on tracing for the concurrent program. Note that once checked, anyone who runs this concurrent program will produce a level 8 (wait events) trace.
- Submit and run the concurrent program.
- Write down the request_id of your concurrent program job.
- Go back to the Concurrent > Program > Define screen and uncheck the enable trace box for this concurrent program.
- Retrieve the raw trace file using the request_id (from Step 6) or the tracefile_identifier (set by default to the userid).
- Format the raw trace file with TKPROF.
Profile-Based Tracing
An alternative method to enable trace from any location at the application user level is to set the profile option "Initialization SQL Statement - Custom" at user level, as described next.
- Log in to Forms for the desired application.
- If you are activating trace for your own account, navigate to the Profile > Personal menu option, press F11 to query, enter "Initialization%" in the Profile Name column, then press Ctrl-F11 to search for this profile option. If you are enabling trace for another user, select +Profile >> System ('Find System Profile Values' screen will pop up).
- Check 'User' and Type in the Username (in which the account for that user will be traced).
- Enter 'Initialization%' in the Profile box and press 'Find'.
- In the User box for "Initialization SQL Statement - Custom", enter the following statement and then press 'Save':