My Oracle Support Banner

How to Release Temporary LOB Segments without Closing the JDBC Connection (Doc ID 1384829.1)

Last updated on AUGUST 09, 2023

Applies to:

Oracle Database Cloud Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
JDBC - Version and later
Oracle Database - Enterprise Edition - Version to [Release 11.2]
Oracle Database - Standard Edition - Version to [Release 11.2]
Information in this document applies to any platform.


 This JDBC code sample demonstrates how LOB resources can be released without having to close the JDBC connection.
This code sample implements the recommendation found in <Document:802897.1> How to Release the Temp LOB Space and Avoid Hitting ORA-1652.

As JDBC programs query LOB expressions, the database will allocate LOB resources. Excessive LOB resources may lead to the PGA memory issues and ORA-1652 errors


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
 Sample Code
 Sample Output

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