My Oracle Support Banner

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

Last updated on JUNE 03, 2024

Applies to:

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


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.


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.