Oracle DBMS_XDB_ADMIN
Version 12.1.0.2

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.1 to 12.1.0.2. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Interested in Oracle GoldenGate? Check out the IGGOUG,
Purpose Provides an interface to manage the XMLIndex on the XML DB repository.
AUTHID CURRENT_USER
Dependencies
ALL_INDEXES DBMS_STANDARD XDB$H_INDEX
DBMS_ASSERT DBMS_XDBUTIL_INT XDB$H_LINK
DBMS_LOB DBMS_XDBZ XDB$RESOURCE
DBMS_OUTPUT DBMS_XDB_LIB XDB$ROOT_INFO
DBMS_PDB_EXEC_SQL UTL_FILE  
Documented Yes
First Available 2006
Security Model Owned by SYS with EXECUTE granted to the DBA role
Source {ORACLE_HOME}/rdbms/admin/dbmsxdba.sql
Subprograms
 
CLEARREPOSITORYXMLINDEX
Unmarks the indexed flags of the XML Index on the repository dbms_xdb_admin.clearRepositoryXMLIndex;
exec ClearRepositoryXMLIndex;
 
CREATENONCEKEY (new 12.1)
Inserts the randomly generated nonce key into the XDB$NONCEKEY table dbms_xdb_admin.createNonceKey;
exec dbms_xdb_admin.createNonceKey;
 
CREATEREPOSITORYXMLINDEX (deprecated as of 11.2.0.3)
Create an XML Index on the repository dbms_xdb_admin.createRepositoryXMLIndex;
exec CreateRepositoryXMLIndex;
 
DROPREPOSITORYXMLINDEX (deprecated as of 11.2.0.3)
Drop an XML Index on the repository dbms_xdb_admin.dropRepositoryXMLIndex;
exec DropRepositoryXMLIndex;
 
INSTALLDEFAULTWALLET (new 12.1)
Installs a certificate into the default XDB wallet stored in the default XDB wallet directory dbms_xdb_admin.installDefaultWallet;
exec dbms_xdb_admin.installDefaultWallet;
 
MOVEXDB_TABLESPACE
Moves xdb to the specified tablespace after waiting for all XDB sessions to exit dbms_xdb_admin.moveXDB_Tablespace(
new_tablespace IN VARCHAR2,
trace          IN BOOLEAN := FALSE);
exec dbms_xdb_admin.moveXDB_Tablespace('XDBTBS);
 
REBUILDHIERARCHICALINDEX
Rebuilds the hierarchical Index; Used after
imp/exp since we do cannot export data from xdb$h_index as it contains rowids.
dbms_xdb_admin.rebuildHeierarchicalIndex;
exec dbms_xdb_admin.rebuildHeierarchicalIndex;
 
XMLINDEXADDPATH (deprecated as of 11.2.0.3)
Index resources at path 'path' or all resources in the subtree rooted at 'path' dbms_xdb_admin.XMLIndexAddPath(
path    IN VARCHAR2,
recurse IN BOOLEAN := TRUE);
DECLARE
 ret BOOLEAN;
BEGIN
  ret := dbms_xdb_admin.XMLIndexAddPath('/PurchaseOrder', FALSE);
END;
/
 
XMLINDEXREMOVEPATH (deprecated as of 11.2.0.3)
Removes resource at path 'path' from the Repository XML Index or removes all resources in the subtree rooted at 'path' from the Repository XML Index dbms_xdb_admin.XMLIndexRemovePath(
path    IN VARCHAR2,
recurse IN BOOLEAN := TRUE);
DECLARE
 ret BOOLEAN;
BEGIN
  ret := dbms_xdb_admin.XMLIndexRemovePath('/PurchaseOrder', FALSE);
  ret := dbms_xdb_admin.XMLIndexRemovePath('/PurchaseOrder/MLib', TRUE);
END;
/

Related Topics
DBMS_XDB
DBMS_XDBREPOS
Packages

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-2014 Daniel A. Morgan All Rights Reserved