Poor Performance With Query Called From JDBC Using Bind Variables Compared To A DATE Column
Last updated on MAY 23, 2017
Applies to:JDBC - Version 126.96.36.199 and later
Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
- A query called from JDBC uses bind variables bound with the setTimestamp method. These bind variables are compared to a column with type DATE.
- The plan for the query performs poorly, and may be found to be unstable.
- Desired index on the DATE column is not being used or that the predicate comparing the bind to the column is applied as a filter predicate rather than an access predicate when accessing the index, resulting in slower performance.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms