My Oracle Support Banner

Fetching More Than 32760 Characters Into A PL/SQL Variable of Type LONG Fails With ORA-06502 (Doc ID 1009210.6)

Last updated on JANUARY 30, 2022

Applies to:

PL/SQL - Version to [Release 8.1.7 to 11.2]
Information in this document applies to any platform.


Executing a PL/SQL procedure that is returning the Oracle error 'ORA-06502: PL/SQL: numeric or value error' when doing one of the following:

  1. SELECT or FETCH a value that has more then 32k Characters into a variable
  2. Concatenate two long variables into a third long variable where the combined value has more than 32k characters.


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.