Reading Large BLOB Data Using OCI API Fails With ORA-24345 (Doc ID 1418323.1)

Last updated on APRIL 06, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.8 and later
Information in this document applies to any platform.

Symptoms

When using OCIStmtGetPieceInfo/OCIStmtSetPieceInfo, writing a blob value of approximately 5 billion bytes works fine.  But, when reading the BLOB value it stops at about 2147548723 (this varies with the piece size but its always close to this) with the following error:

ORA-24345: A Truncation or null fetch error occurred

Changes

Reading BLOB Using OCI.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms