My Oracle Support Banner

prepareStatement(Sql,Generatedcols) Hangs if Sum(Length(Column_names) >= 800 (Doc ID 1271077.1)

Last updated on MARCH 26, 2019

Applies to:

JDBC - Version to [Release 10.2 to 11.2]
Information in this document applies to any platform.


PreparedStatement with auto generated keys hangs when the sum of the length of all column names are bigger or equal then 800.

This is the java stack trace when the "hang" occurs:

at oracle.jdbc.driver.T2CConnection.t2cDescribeTable(Native Method)
at oracle.jdbc.driver.T2CConnection.doDescribeTable(
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(
at oracle.jdbc.driver.T2CConnection.prepareStatement(

pstack output:

#0 0x00002b5b6a731566 in poll () from /lib64/
#1 0x00002aaae1ae68a1 in ntevpque ()
#2 0x00002aaae1ae282e in ntevqone ()
#3 0x00002aaae1a71620 in nsevwait ()
#4 0x00002aaae2695b14 in nsevbrecv ()
#5 0x00002aaae32ce692 in nioqrc ()
#6 0x00002aaae33205c3 in ttcdrv ()
#7 0x00002aaae32d0d35 in nioqwa ()
#8 0x00002aaae32aa4eb in upirtrc ()
#9 0x00002aaae32b607a in kpurcsc ()
#10 0x00002aaae19fb45f in kpudsany ()
#11 0x00002aaae19c2868 in OCIDescribeAny ()
#12 0x00002aaae14569fc in
Java_oracle_jdbc_driver_T2CConnection_t2cDescribeTable () from
#13 0x00002aaaab9ca4fd in ?? ()
#14 0x00000000411bf918 in ?? ()
#15 0x0000000000000000 in ?? ()

The Thread is actually spinning (takes cpu) and is continuously requesting a describe for the table. (causing network round trips)


change jdbc Connection type from thin to oci


added columns, adapted column names


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.