My Oracle Support Banner

Inserting a clob with length greater than 8192 with utl_file.put(); gets ORA-06502 (Doc ID 760144.1)

Last updated on NOVEMBER 20, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.1 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
This problem can occur on any platform.
Oracle Server Enterprise Edition - Version: to


Database characterset is UTF8.

Statement issued:

If the clob (mymol) size is bigger than 8192, you will get the following error:
ORA-06502: PL/SQL: numeric or value error


Recent migration from 9i to 10g.

Characterset changed from WEIS8859P1 to AL32UTF8.


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.