How to generate a trace file for a concurrent program
To start the tuning process it is
best to get a trace file from the program. The method of getting the trace file
for a concurrent program is detailed below.
Step 1: Enable trace on the concurrent
program
Responsibility: System
Administrator
Navigation: Concurrent >
Program > Define
Query for the concurrent program
Check the box labeled, Enable Trace
Save the form.
Step 2: Execute the concurrent
program
Go to the responsibility from
which you can execute the concurrent program. Click on View > Requests and
open the SRS form.
select
Run the concurrent program.
Note the
request ID. It is 8888888
Step 3: Locate the trace file
directory
Connect to the database and
execute the following SQL,
SELECT *
FROM
v$parameter
WHERE
NAME =
'user_dump_dest'
|
Now get the Oracle process ID for
this request. Execute the following script
SELECT oracle_process_id
FROM
fnd_concurrent_requests
WHERE request_id = 8888888
Step 4: Get the trace file
Login to Unix. We need to go the
trace file directory we found earlier. Execute the following command to change
the directory.
Now we shall search for the
trace file within this directory. The trace file will contain the Oracle
Process ID and the schema
Step 5: Use TKPROF
Run the below tkprof command at the command prompt.
TKPROF < Trace File_Name.trc> SORT=fchela
Now verify the file and start tuning it.
Comments
Post a Comment