Precompilers and OCI (MOSC)

MOSC Banner

How to close a BLOB object after downloading large >4gb LOB object to file using OCCI

I am downloading a 15 gig file using OCCI 19.9 on a 19c database. I am using a blob object and stream object.

…(connection and query code)

blob.getstream(1,0);

stream.readbuffer(charbuffer,buffersize); method to fill buffer array

ofstream.write(charbuffer,buffersize); method to write to file.

….

This works just fine until I try to close the blob object using blob.close(). I receive an ora-24820 An attempt was made to execute a new OCI LOB call while another OCI LOB call was in progress.

The resultset and statement termination calls are successful.

I tried to wait it out but it never returns and connection.cancel() method doesn't seem to be effective either. The only way I can continue is to force an extra readbuffer() on the LOB to breach the size of the LOB field length and an

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center