My Oracle Support Banner

ORA-21780 Raised Selecting an XMLELEMENT on A Database with 8bit Character Set (Doc ID 1437016.1)

Last updated on APRIL 12, 2022

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


Running a procedure having a loop of more than 65540 cycles which executes the query

raises the error
ORA-21780: Maximum number of object durations exceeded
when the loop reaches about 65540 cycles.

The issue reproduces on 8bit character set such as WE8ISO8859P15 only, it does not reproduce on AL32UTF8.

The same code used to work in Oracle Server


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.