UTL_MAIL Attachment Exceeding 32767 Bytes Fails With ORA-06525
(Doc ID 357264.1)
Last updated on JULY 05, 2017
Applies to:PL/SQL - Version 10.1.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Nov-2012***
If the size of the attachment using UTL_MAIL.SEND_ATTACH_RAW exceeding 32767 Bytes it gives the following errors:
ORA-06525: Length Mismatch for CHAR or RAW data
ORA-06512: at "SYS.UTL_FILE", line 119
ORA-06512: at "SYS.UTL_FILE", line 1100
ORA-06512: at "PACKAGE.PROCEDURE", line 15
ORA-06512: at line 1
When using UTL_MAIL.SEND_ATTACH_RAW with attaching a file which is less than 32767 bytes, it sends the mail successfully.
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