My Oracle Support Banner

"java.sql.SQLException: statement handle not executed: getMetaData" While Describing A Prepared Statement (Doc ID 1383811.1)

Last updated on AUGUST 01, 2023

Applies to:

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


On : version, Thin JDBC driver

The ORACLE JDBC driver will not describe a prepared statement, instead it will throw an exception statement handle not executed: getMetaData.
There does not appear to be any documentation stating that this is considered design intent by ORACLE.
The JDBC specification would suggest that the ORACLE JDBC driver is not behaving in a standard manner. .

You should be able to see this with a basic program which has the sequence




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.