A form trace is used whenever the poor performance is happening on-line.
For example, one might use a form trace to trace an inquiry that is taking a long time to complete
(i.e.. An ATP inquiry, or an item inquiry). Before turning trace on at the form level, close the
application and then re-enter it. This causes any open cursors from your previous session to close.
Do not turn trace on until just before you are ready to duplicate the problem.
PROCESS
========
Navigate to the point in the application right before you are experiencing the problem.
Turn trace on by: Help > Diagnostics > Trace > Trace with Binds (May require password)
A pop-up message with trace file location and name will be displayed. Note the filename and path.
Duplicate the error and then stop immediately afterwards.
Help > Diagnostics > Trace > No Trace
Retrieve trace file from the user_dump_dest, which can be located as follows:
select value from V$PARAMETER where name like 'user%';
Run the trace file through tkprof as follows:
tkprof <filename>.trc <filename>.out explain=<found username/password>
example: tkprof file1234.trc file1234.out explain=<apps/apps>