Ora-06502: "Numeric Or Value Error: Character String Buffer Too Small" from SQL Using DBMS_LOB.SUBSTR (Doc ID 567574.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 9.2.0.8 and later
Information in this document applies to any platform.
This problem can occur on any platform.

***Checked for relevance on 06-Jul-2017***

Symptoms

Returning a portion of a CLOB using DBMS_LOB.SUBSTR fails with:



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