My Oracle Support Banner

JDBC 11.2.0.1 Adds A Space At The End Of A Select Statement When Using Bind Variables. While 11.1 Does Not Add This Space. (Doc ID 1104693.1)

Last updated on JUNE 05, 2023

Applies to:

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

Symptoms

On : 11.2.0.1 version, Thin JDBC driver

If a sql statement is run with JDBC Driver 11.2.0.1 generated a new SQL_ID for the execution on this version.

If the same program is run using JDBC 10.2.0.4 and/or 11.1.0.7 they share the same SQL_ID.

Here are the results of these tests:

1) Run a java program having a select statement using a bind variable 5 times using the 11.2.0.1 JDBC Driver with JDK 1.5

Looking into the v$sql view we can see it was executed 5 times:


Here we can see they have different size.

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.