You are on page 1of 6

Why is that LOV in the screen not

returning me desired value?

http://oracle.anilpassi.com
Debugging LOV
In a EBS screen, the LOV in this form does not bring back any records (in D2K) ?

Find the trace file location


Use help/diagnostics to enable trace
On the SQL*Plus run to find trace directory
select value from v$parameter where
name like 'user_dump_dest'

Set trace with binds and waits,


using help menu. Using the
“binds” option, you will get to see
value of the variables in SQL.

Go to database machine, to the trace


directory, and ensure that you can access
that trace file on the DB Server

You will be shown the path & name of the trace file
Now for test case, enter value in
LOV field, and tab out to initiate
SQL behind the LOV on that field.

By doing so, this SQL that retrieves


data for LOV will get written into the
trace file
http://oracle.anilpassi.com
Inside the trace file, you can
see the SQL LOV
Debugging and its bind values`

The trace files


shows the SQL that
For each SQL statement,
was executed you will also see the
variable values in the
trace file

:1 equates to Bind#0
:2 equates to Bind#1

Hence you can construct


Extract the SQL with its Bind the exact SQL that
Variable Value so that it can be run screen is running
offline in SQL*Plus Session

http://oracle.anilpassi.com
Instead of running the trace, can’t I simply open
the form and see the query in Record Group?

Yes, you can but :-

Trace file gives you the bind variable values

The record group might have been altered programmatically or by Forms


Personalization or from CUSTOM.pll. Hence using this technique, you
get the end product SQL statement

http://oracle.anilpassi.com
Other scenario’s where this technique is useful
You might be requested to develop a report that prints the data that
is displayed from a screen. In this case, you can nick the SQL’s that
screen uses, fine tune them for performance, and your report is
almost ready.

You may wish to know the list of inserts/updates & deletes that are
taking place from a screen, during data entry.

You may also wish to find out the SQL Statements/Cursors that are
executed/fetched for validations.

http://oracle.anilpassi.com
Thanks

http://oracle.anilpassi.com

You might also like