Oracle XML_SCHEMA_NAME_PRESENT
Version 18.3.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 Undocumented
AUTHID DEFINER
Dependencies
ALL_ANNOTATION_TEXT_METADATA ALL_SDO_INDEX_HISTOGRAM ALL_WM_VERSIONED_TABLES
ALL_OBJECTS ALL_STREAMS_COLUMNS DV$OUT
ALL_OBJECTS_AE ALL_STREAMS_NEWLY_SUPPORTED USER_SDO_CSW_SERVICE_INFO
ALL_PROBE_OBJECTS ALL_STREAMS_UNSUPPORTED USER_SDO_INDEX_HISTOGRAM
ALL_SDO_CSW_SERVICE_INFO    
Documented No
First Available 10.1
Security Model Owned by SYS with no privileges granted
Source {ORACLE_HOME}/rdbms/admin/prvtxschnp.plb
 
IS_SCHEMA_PRESENT
Undocumented - but here's the source code. Some of the slickest coding I've ever seen. <g>

This code is based on sample code found in catxdbdv.sql in the 12c Beta
FUNCTION is_schema_present(objname IN VARCHAR2, userno IN NUMBER) RETURN NUMBER AS
BEGIN
  RETURN 0;
END;
SELECT xml_schema_name_present.is_schema_present('Larry Ellison', 1)
FROM dual;
This demo code was extracted from cdcore.sql and reformatted for clarity AND 1 = (
  SELECT /*+ NO_MERGE */ xml_schema_name_present.is_schema_present(o.name, u2.id2) id1
  FROM (
    SELECT /*+ NO_MERGE */ userenv('SCHEMAID') id2
    FROM dual) u2));

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

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