Oracle DBMS_XQUERY
Version 19.2.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose Database support for XQuery
AUTHID CURRENT_USER
Dependencies
XMLTYPE    
Documented No
First Available 11.2.0.1
Security Model Owned by SYS with EXECUTE granted to PUBLIC
Source {ORACLE_HOME}/rdbms/admin/initxqry.sql
 
EVAL
Undocumented dbms_xquery.eval(xqry IN VARCHAR2) RETURN XMLTYPE;
conn uwclass/uwclass@pdbdev

set serveroutput on

DECLARE
 inval VARCHAR2(200) := '''FOR $i IN /PDRecord where $i /PDName = "Daniel Morgan" ORDER BY $i/PDName return $i/PDName'' PASSING BY VALUE person_data';
 retval XMLTYPE;
BEGIN
  retval := dbms_xquery.eval(inval);
END;
/

DECLARE
 inval  VARCHAR2(200) := 'FOR $i IN /PDRecord where $i /PDName = "Daniel Morgan" ORDER BY  $i/PDName return $i/PDName';
 retval XMLTYPE;
BEGIN
  retval := dbms_xquery.eval(inval);
END;
/

Related Topics
Built-in Functions
Built-in Packages
DBMS_XQUERYINT
What's New In 18cR3
What's New In 19cR2
XMLQUERY

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2019 Daniel A. Morgan All Rights Reserved
DBSecWorx