ORA-06502: PL/SQL: 'Numeric or Value Error' When CLOB Convert to VARCHAR2 on a Multibyte Database
(Doc ID 827955.1)
Last updated on JANUARY 30, 2022
Applies to:PL/SQL - Version 22.214.171.124 to 126.96.36.199 [Release 8.1.7 to 11.2]
Information in this document applies to any platform.
On a database with multibyte characterset like AL32UTF8 specified for NLS_CHARACTERSET the following error is received when a CLOB which contains more than 8191 characters is assigned to a VARCHAR2 variable.
ORA-06502: PL/SQL: numeric or value error when CLOB convert to VARCHAR2
You can reproduce the error with the below code:
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 10
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