My Oracle Support Banner

Excessive Parsing When Using Statement Caching With Oracle JDBC Driver (Doc ID 1363521.1)

Last updated on OCTOBER 17, 2022

Applies to:

JDBC - Version 11.2.0.1.0 and later
Information in this document applies to any platform.

Symptoms


When using the 11.2.0.1 JDBC driver with an Apache application targeting a 10.2.0.2 database, queries executed as prepared statements demonstrate a 1:1 ratio of parses.  Every execution of the statement is getting parsed, even if the statement is identical every time.

In the application code, the prepared statement is closed and reopened prior to each successive execution of the statement.

If the query is executed more than once while the prepared statement is still open, it is parsed only the first time ... so parsing appears to occur one time for every prepare (rather than for every query).

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.