ORA-06502 Numeric or Value Error, Character String Buffer Too Small With PL/SQL Shared Cursors (Doc ID 1602938.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

When the execution of two applications (for example, Pro*C and C#) attempt to reuse a PL/SQL shared cursor the following error may be returned:

ORA-06502: PL/SQL: numeric or value error: character string buffer too small

This happens when two different applications executing a PL/SQL block use a cursor with an OUT bind variable and the cursor is invoked first with code point semantics and then a second time without, which can cause the issue to appear intermittently.

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