What causes ORA-01460 calling PL/SQL from OCCI with BLOB parameter? (Doc ID 1496599.1)

Last updated on JULY 17, 2017

Applies to:

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

Symptoms

 When working with large files > 32k, an ORA-01460 is encountered with the sample application.

Changes

When passing a LOB as an IN parameter to a Stored Procedure with OCI usually a LobLocator is created,
populated with data, defined as a bind parameter and the statement executed.

With the OCCI API, temporary LOBs can not be created.  Instead stmt->setBinaryStreamMode is used for the LOB parameter.

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