Oracle JDBC Thin Driver Generates Different Execution Plan (Doc ID 273635.1)

Last updated on MARCH 23, 2016

Applies to:

JDBC - Version 8.1.7.0 to 9.2.0.8 [Release 8.1.7 to 9.2]
Information in this document applies to any platform.

Symptoms

Different Execution Plans are getting generated with SQL*Plus versus JDBC Thin9i  for a given set of Bind Variables.
JDBC-OCI Driver works just fine  - Plans generated are similar to SQL*Plus.
JDBC Drivers 10g or above work do not show this behavior.

The version of the Oracle RDBMS does not seem to matter - Only the JDBC Client Version, Client Type(Thin/Thick) makes a difference.

Cause

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