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 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 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 fbnk_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 FBNK_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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms