My Oracle Support Banner

SQLException Not Thrown When You Change Result Set Holdability (Doc ID 2091078.1)

Last updated on JUNE 05, 2023

Applies to:

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


According to Database JDBC Developer's Guide, you get SQLException if you change the result set holdability:

Result Set Holdability

Result set holdability was introduced since JDBC 3.0. This feature enables applications to decide whether the ResultSet objects should be open or closed, when a commit operation is performed. The commit operation could be either implicit or explicit.

Oracle Database supports only HOLD_CURSORS_OVER_COMMIT. Therefore, it is the default value for Oracle JDBC drivers. Any attempt to change holdability will throw a SQLException exception.

 However, the driver does not throw SQLException.


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.