My Oracle Support Banner

NULL Returned by EXTRACTVALUE on Table with XMLINDEX, When the Selected XPATH is Not One of the Index (Doc ID 1980803.1)

Last updated on FEBRUARY 15, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 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 Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

In Oracle Server 11.2.0.4, after creating an XMLindex
PARAMETERS ('PATHS (INCLUDE (/row/c3
/row/c4
/row/c5
/row/c64))
PATH TABLE ink_customer_path_table') parallel;

executing a query which contains a path not specified in the xmindex, e.g.-


select extractValue(a.XMLRECORD,'/row/c179[@m="2"]')
FROM ink_CUSTOMER a
where a.recid='100314';

returns null, while it returns a value when the index is not created.

The XMLTYPE columns of the base table is stored as BASICFILE CLOB.

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