ORA-21780 Raised Selecting an XMLELEMENT on A Database with 8bit Character Set
(Doc ID 1437016.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Server - Enterprise Edition - Version: 184.108.40.206 to 220.127.116.11 - Release: 11.2 to 11.2
Information in this document applies to any platform.
Running a procedure having a loop of more than 65540 cycles which executes the query
SELECT XMLELEMENT("ROOT_COLLECTION",XMLAGG(T.node)) INTO v_xml
FROM ( SELECT COLUMN_VALUE AS node
FROM TABLE (CAST(v_xml_table AS XML_TABLE))) T;
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 18.104.22.168
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