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 8.1.7.0 to 11.2.0.1 [Release 8.1.7 to 11.2]
Information in this document applies to any platform.

Symptoms

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.

Cause

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
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.