My Oracle Support Banner

A Query Using a JSON Operator such as JSON_OBJECT Fails with ORA-22921, if the DB Character Set is Not Fixed-width and a CLOB is Returned (Doc ID 2874583.1)

Last updated on APRIL 17, 2023

Applies to:

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


On 19c, a JSON_OBJECT query fails with the following error if the database character set is not fixed-width, such as AL32UTF8, and a CLOB is returned:

ORA-22921: length of input buffer is smaller than amount requested

Example query:


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.