My Oracle Support Banner

Oracle.xml.sql.OracleXMLSQLException: Invalid Context Handle Specified (Doc ID 1955086.1)

Last updated on DECEMBER 17, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

A PL/SQL block using DBMS_XMLQuery.newContext() can fail with this error:

oracle.xml.sql.OracleXMLSQLException: Invalid
context handle specified.

when using

selTxt := 'with dual2 as (select dummy from dual) select dummy from dual2';

However the PL/SQL block works when using

selTxt := 'select dummy from dual';

Sample code:

 

 

Changes

 Upgraded to 11.2.0.4

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


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.