My Oracle Support Banner

XQUERY Contains Operator ORA-01706 Error (Doc ID 2420587.1)

Last updated on MARCH 08, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On 12.1.0.2 version XML Database

When one of the "" value exceeds 4000 characters, then the following
query returns "ORA-01706: user function result value was too large" error:

SQL> SELECT recid, DBMS_LOB.GETLENGTH(xmltype.getclobval(XMLRECORD))
FROM MY_TEST_TAB
WHERE XMLEXISTS('$t/row[some $d in c10/text() satisfies contains($d,$id)]'
PASSING XMLRECORD as "t", '1234567890' as "id")
and recid = 'test_value_over_4000';
 2 3 4 SELECT recid, DBMS_LOB.GETLENGTH(xmltype.getclobval(XMLRECORD))
  *
ERROR at line 1:
ORA-01706: user function result value was too large

Changes

 

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.