My Oracle Support Banner

The free Method Does Not Release A Temporary Lob After Calling getArray  (Doc ID 2122149.1)

Last updated on DECEMBER 15, 2022

Applies to:

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


We have an IN OUT LOB parameter of a stored procedure and use setARRAY for setting a temporary LOBs for this parameter. After calling getArray to retrieve the data, we wish to free the LOBs by using the free method. But if we confirm the Java heapdump, the memory occupied by the temporary LOBs appear not being reclaimed.

Here is a test showing this issue:

1. Create an array of LOBs and use it as IN OUT parameter of a stored procedure, as follows:

3. Run the java program and get java heapdump to confirm the memory


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.