My Oracle Support Banner

DBMS_LOB.SUBSTR Truncates Input After 32764 Characters With Database NLS_CHARACTERSET AL32UTF8 (Doc ID 2563494.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

DBMS_LOB.SUBSTR truncates input after 32764 bytes on a Database with NLS_CHARACTERSET AL32UTF8, 3 bytes are missing while the amount parameter is set as 32767. 

For a database with NLS_CHARACTERSET=AL32UTF8 the dbms_lob.substr returns 32764 bytes.
For a database with NLS_CHARACTERSET=WE8ISO8859P15 the dbms_lob.substr returns 32767 bytes (one byte for each character).
For a database with NLS_CHARACTERSET=UTF8 the dbms_lob.substr returns 32765 characters.

Changes

Migrating data from a database with NLS_CHARACTERSET=WE8ISO8859P15 to a database with NLS_CHARACTERSET=AL32UTF8.

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
Changes
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.