My Oracle Support Banner

JDBC 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 and later
Information in this document applies to any platform.


On : version, Thin JDBC driver

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

If the same program is run using JDBC and/or 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 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.




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

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