My Oracle Support Banner

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

Last updated on MAY 24, 2023

Applies to:

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

Goal

 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

Solution

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
Goal
Solution
  
 Requirements
 Configuring
 Instructions
 Sample Code
 Sample Output
References


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