0% found this document useful (0 votes)
152 views

Generating Trace File With TKPROF

1) This document outlines steps to generate and format a trace file using TKPROF for performance troubleshooting and to provide to Oracle support. 2) The trace file is generated when a form is run and is located in the UDUMP directory, which can be found using the user_dump_dest parameter. 3) TKPROF is used to format the trace file, with options to sort statements and print the top IO statements. This provides a formatted trace file for analysis.

Uploaded by

vishal_vishnu11
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views

Generating Trace File With TKPROF

1) This document outlines steps to generate and format a trace file using TKPROF for performance troubleshooting and to provide to Oracle support. 2) The trace file is generated when a form is run and is located in the UDUMP directory, which can be found using the user_dump_dest parameter. 3) TKPROF is used to format the trace file, with options to sort statements and print the top IO statements. This provides a formatted trace file for analysis.

Uploaded by

vishal_vishnu11
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Steps To use (or) perform TKPROF and Forms Run-time Diagnostics:

Goal: Need TKPROF Format of Trace file.


Requirement : 1) When we are facing a problem related to performance in any form or
concurrent
requests.
2)Some times when we raised an SR(Service Request) Oracle asks to
submit the
TKPROF formatted of the Trace file.
Steps: Open the form for which you want to trace. Then do the steps mentioned in the
below figure.

For any instance the trace will be generated in the UDUMP directory.
You can find this directory by running the following Query.
SELECT VALUE
FROM v$parameter
WHERE NAME LIKE 'user_dump_dest';
The Above Query returns the path where the file is Going to be stored. The file name
will have an Extension .trc

Formatting the Trace file with TKPROF


Navigate to the path where trace file has generated.
Run the below Commands for various formats.
1) tkprof <filename.trc> <output_filename> sys=no explain=apps/<password>
sort='(prsela,exeela,fchela)'
Here the output_filename can be anything (.txt , .lst)
The SORT value causes TKPROF to sort the SQL statements in order of the sum of the
CPU time spent executing and the CPU time spent fetching rows before writing them to
the output file. For greatest efficiency, SORT parameters must be always used.
the following statement prints the 10 statements in the trace file that have generated
the most physical I/O:
2) tkprof <filename.trc> <output_filename> sys=no explain=apps/<password>
sort='(prsela,exeela,fchela)' print=10

Usage of Forms Runtime Diagnostics:


Forms Runtime Diagnostics are used to check the Runtime performance of the foms.
Steps:
1) Goto
System Administrator--> Profile-->System

Find the value


https://bn-orclqaapp01.nuance.com:4001/dev60cgi/f60cgi (for QA1) at site level.
Append the above URL With the following details.
https://bn-orclqaapp01.nuance.com:4001/dev60cgi/f60cgi?
record=all&log=/tmp/AAOFFSHORE_frd.log
Logout the Application and login again to affect the changes. Perform the
actions for which you want
the Diagnostics.
The generated log file will stored in the Path ($FORMS_TRACE_PATH)
Generally it could be $ORACLE_HOME/forms60/log.
Find the file and use it.

You might also like