We have a .NET application that speaks with Oracle 10g. Our DBA recently pulled out a list of queries in which executions are parse_calls. We suggested that this will help us find all the non-parameterized queries in our code.
Unexpectedly, the following query appeared at the top of this list, with 1,436,169 executions and 1,436,151 sessions:
SELECT bar.foocolumn
FROM bartable bar,
baztable baz
WHERE bar.some_id = :someId
AND baz.another_id = :anotherId
AND baz.some_date BETWEEN bar.start_date AND (nvl(bar.end_date, baz.some_date + (1/84600)) - (1/84600))
Why are quotes equal to parse_calls for this request?
source
share