Oracle DBMS_XDB_REPOS Version 21c |
---|
General Information | ||||||||||||||||||||||||||||||||||||||||||||||
Library Note |
|
|||||||||||||||||||||||||||||||||||||||||||||
Purpose | Operates on the Oracle XML DB Repository to create, modify and delete resources, including managing security based on access control lists (ACLs). The interface provides both query and DML functions. Using a combination of PL/SQL packages - DBMS_XDB_REPOS, DBMS_XDBZ, and DBMS_XDB_VERSION - developers can create, delete, and rename documents and folders, move a file or folder within the folder hierarchy, set and change the access permissions on a file or folder, and initiate and manage versioning. |
|||||||||||||||||||||||||||||||||||||||||||||
AUTHID | CURRENT_USER | |||||||||||||||||||||||||||||||||||||||||||||
Constants |
|
|||||||||||||||||||||||||||||||||||||||||||||
Dependencies |
|
|||||||||||||||||||||||||||||||||||||||||||||
Documented | Yes | |||||||||||||||||||||||||||||||||||||||||||||
First Available | Not known | |||||||||||||||||||||||||||||||||||||||||||||
Pragmas | PRAGMA SUPPLEMENTAL_LOG_DATA(default, NONE); | |||||||||||||||||||||||||||||||||||||||||||||
Security Model | Owned by XDB with EXECUTE granted to PUBLIC. Subprograms that operate on the XDB Configuration will succeed only if the current user is SYS or XDB, or the current user has the XDBADMIN or DBA role. |
|||||||||||||||||||||||||||||||||||||||||||||
Source | {ORACLE_HOME}/rdbms/admin/dbmsxdbr.sql {ORACLE_HOME}/rdbms/admin/prvtxdb.sql |
|||||||||||||||||||||||||||||||||||||||||||||
Subprograms |
|
|||||||||||||||||||||||||||||||||||||||||||||
ACLCHECKPRIVILEGES | ||||||||||||||||||||||||||||||||||||||||||||||
Checks access privileges granted by the specified ACL document | dbms_xdb_repos.aclcheckprivileges( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
ADDRESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Given a string, inserts a new resource into the hierarchy with the string as the contents | dbms_xdb_repos.addresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
ADDTOLOCKTOKENLIST | ||||||||||||||||||||||||||||||||||||||||||||||
Adds specified token to the session lock token list | dbms_xdb_repos.addtolocktokenlist(token IN VARCHAR2); |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
APPENDRESOURCEMETADATA | ||||||||||||||||||||||||||||||||||||||||||||||
Appends the given piece of metadata to the resource Overload 1 |
dbms_xdb_repos.appendresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Appends the given piece of metadata identified by a REF to the resource Overload 2 |
dbms_xdb_repos.appendresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CHANGEOWNER | ||||||||||||||||||||||||||||||||||||||||||||||
Change the owner of the resource to the given user | dbms_xdb_repos.changeowner( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CHANGEPRIVILEGES | ||||||||||||||||||||||||||||||||||||||||||||||
Changes access privileges for an XDB resource | dbms_xdb_repos.changeprivileges( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CHECKPRIVILEGES | ||||||||||||||||||||||||||||||||||||||||||||||
Validates access privileges granted on specified XDB resource | dbms_xdb_repos.checkprivileges( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CREATEFOLDER | ||||||||||||||||||||||||||||||||||||||||||||||
Creates a folder in the Repository | dbms_xdb_repos.createfolder(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CREATEOIDPATH | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the OID-based virtual path to the resource | dbms_xdb_repos.createoidpath(oid IN RAW) RETURN VARCHAR2; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
CREATERESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Given a string, inserts a new resource into the hierarchy with the string as the contents Overload 1 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
-- sample code from $ORACLE_HOME/rdbms/admin/nacla112.sql reformatted for clarity |
||||||||||||||||||||||||||||||||||||||||||||||
Given an XMLTYPE and a schema URL, inserts a new resource into the hierarchy with the XMLTYPE as the contents Overload 2 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Given a PREF to an existing XMLType row, inserts a new resource whose contents point directly at that row.
The row should not already exist inside another resource Overload 3 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Given a CLOB, inserts a new resource into the hierarchy with the CLOB as the contents Overload 4 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Given a BFILE, inserts a new resource into the hierarchy with the contents loaded from the BFILE Overload 5 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Given a BLOB, inserts a new resource into the hierarchy with the BLOB as the contents Overload 6 |
dbms_xdb_repos.createresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
DELETEFROMLOCKTOKENLIST | ||||||||||||||||||||||||||||||||||||||||||||||
Deletes specified token from the session lock token list | dbms_xdb_repos.deletefromlocktokenlist(token IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
DELETERESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Deletes a resource from the Hierarchy | dbms_xdb_repos.deleteresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
DELETERESOURCEMETADATA | ||||||||||||||||||||||||||||||||||||||||||||||
Deletes metadata from a resource (can only be used for SB metadata) Overload 1 |
dbms_xdb_repos.deleteresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Deletes metadata from a resource (can be used for SB or NSB metadata) Overload 2 |
dbms_xdb_repos.deleteresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
EXISTSRESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Given a string, returns true if the resource exists in the hierarchy | dbms_xdb_repos.existsresource(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
BEGIN |
||||||||||||||||||||||||||||||||||||||||||||||
GETACLDOCUMENT | ||||||||||||||||||||||||||||||||||||||||||||||
Gets the ACL document that protects the resource given in path | dbms_xdb_repos.getacldocument(abspath IN VARCHAR2) RETURN sys.xmlType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETCONTENTBLOB | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the contents of the resource as a BLOB | dbms_xdb_repos.getcontentblob( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETCONTENTCLOB | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the contents of the resource as a CLOB | dbms_xdb_repos.getcontentclob(abspath IN VARCHAR2) RETURN CLOB; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETCONTENTVARCHAR2 | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the contents of the resource as a VARCHAR2 | dbms_xdb_repos.getcontentvarchar2(abspath IN VARCHAR2) RETURN VARCHAR2; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETCONTENTXMLREF | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the contents of the resource as a ref to an xmltype | dbms_xdb_repos.getcontentxmlref(abspath IN VARCHAR2) RETURN REF sys.xmlLType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETCONTENTXMLTYPE | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the contents of the resource as an XMLType | dbms_xdb_repos.getcontentxmltype(abspath IN VARCHAR2) RETURN sys.xmlType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETLOCKTOKEN | ||||||||||||||||||||||||||||||||||||||||||||||
Gets lock token for current user for XDB resource given its path | dbms_xdb_repos.getlocktoken( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETLOCKTOKENLIST | ||||||||||||||||||||||||||||||||||||||||||||||
Gets the session lock token list | dbms_xdb_repos.getlocktokenlist RETURN xdb.LockTokenListType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETPRIVILEGES | ||||||||||||||||||||||||||||||||||||||||||||||
Gets all system and user privileges granted to the current user on the given XDB resource | dbms_xdb_repos.getprivileges(res_path IN VARCHAR2) RETURN sys.xmlType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETRESOID | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the OID of the resource, given its absolute path | dbms_xdb_repos.getresoid(abspath IN VARCHAR2) RETURN RAW; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETRESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Given a path in the repository, returns the XDBResource | dbms_xdb_repos.getresource(abspath IN VARCHAR2) RESTURN xdb.dbms_xdbresource.xdbresource; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
GETXDB_TABLESPACE | ||||||||||||||||||||||||||||||||||||||||||||||
Returns the current tablespace of xdb, on the assumption that that is the tablespace of XDB.XDB$RESOURCE | dbms_xdb_repos.getxdb_tablespace RETURN VARCHAR2; |
|||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_xdb_repos.getxdb_tablespace |
||||||||||||||||||||||||||||||||||||||||||||||
HASBLOBCONTENT | ||||||||||||||||||||||||||||||||||||||||||||||
Returns true if the resource has BLOB content | dbms_xdb_repos.hasblobcontent(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
HASCHARCONTENT | ||||||||||||||||||||||||||||||||||||||||||||||
Returns true if the resource has character content | dbms_xdb_repos.hascharcontent(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
HASXMLCONTENT | ||||||||||||||||||||||||||||||||||||||||||||||
Returns true if the resource has XML content | dbms_xdb_repos.hasxmlcontent(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
HASXMLREFERENCE | ||||||||||||||||||||||||||||||||||||||||||||||
Returns true if the resource has a ref to xml content | dbms_xdb_repos.hasxmlreference(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
ISFOLDER | ||||||||||||||||||||||||||||||||||||||||||||||
Returns true is a folder | dbms_xdb_repos.isfolder(abspath IN VARCHAR2) RETURN BOOLEAN; |
|||||||||||||||||||||||||||||||||||||||||||||
BEGIN |
||||||||||||||||||||||||||||||||||||||||||||||
LINK | ||||||||||||||||||||||||||||||||||||||||||||||
Creates a link from a specified folder to a specified resource | dbms_xdb_repos.link( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
LOCKDISCOVERY | ||||||||||||||||||||||||||||||||||||||||||||||
Gets Locks element on resource defined by abspath | dbms_xdb_repos.lockdiscovery(abspath IN VARCHAR2) RETURN sys.xmlType; |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
LOCKRESOURCE (new 21c overload) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||
Gets a webdav-like lock for XDB resource given its path Overload 1 |
dbms_xdb_repos.lockresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Gets a webdav-like lock for XDB resource given its path Overload 2 |
dbms_xdb_repos.lockresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
PROCESSLINKS | ||||||||||||||||||||||||||||||||||||||||||||||
Process document links in the specified resource, looking at the current resource configuration parameters | dbms_xdb_repos.processlinks( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
PURGERESOURCEMETADATA | ||||||||||||||||||||||||||||||||||||||||||||||
Deletes all user metadata from a resource SB metadata is removed in cascade mode i.e. the rows are deleted from the corresponding metadata tables | dbms_xdb_repos.purgeresourcemetadata(abspath IN VARCHAR2); |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
REFRESHCONTENTSIZE | ||||||||||||||||||||||||||||||||||||||||||||||
Recompute the content size of the specified resource | dbms_xdb_repos.refreshcontentsize( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
REFRESHLOCK | ||||||||||||||||||||||||||||||||||||||||||||||
Refreshes a webdav-like lock for XDB resource given its path | dbms_xdb_repos.refreshlock( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
RENAMERESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Renames a XDB resource | dbms_xdb_repos.renameresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
SETACL | ||||||||||||||||||||||||||||||||||||||||||||||
Sets the ACL for an XDB resource to that specified in the ACL path | dbms_xdb_repos.setacl( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
TOUCHRESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Change the last mod time of the resource to the current time | dbms_xdb_repos.touchresource(abspath IN VARCHAR2); |
|||||||||||||||||||||||||||||||||||||||||||||
exec dbms_xdb_repos.touchresource('TEST'); |
||||||||||||||||||||||||||||||||||||||||||||||
UNLOCKRESOURCE | ||||||||||||||||||||||||||||||||||||||||||||||
Removes lock for XDB resource given lock token | dbms_xdb_repos.unlockresource( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
UPDATERESOURCEMETADATA | ||||||||||||||||||||||||||||||||||||||||||||||
Updates metadata for a resource (can be used to update SB metadata only). The new metadata must be SB Overload 1 |
dbms_xdb_repos.updateresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Updates metadata for a resource (can be used to update SB metadata only). The new metadata can be either SB or NSB Overload 2 |
dbms_xdb_repos.updateresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Updates metadata for a resource - can be used for both SB or NSB metadata Overload 3 |
dbms_xdb_repos.updateresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||
Updates metadata for a resource - can be used for both SB or NSB metadata. New metadata must be SB Overload 4 |
dbms_xdb_repos.updateresourcemetadata( |
|||||||||||||||||||||||||||||||||||||||||||||
TBD |
Related Topics |
Built-in Functions |
Built-in Packages |
Database Security |
What's New In 21c |
What's New In 23c |
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-2023 Daniel A. Morgan All Rights Reserved | |||||||||
|
||||||||||