Changes in This Release for Oracle XML DB Developer's Guide
This preface contains descriptions of changes in Oracle XML DB for recent releases of Oracle Database.
- Changes in Oracle Database Release 18c, Version 1, for Oracle XML DB
The changes in Oracle Database Release 18c, Version 1, for Oracle XML DB are described. - Changes in Oracle Database 12c Release 2 (12.2.0.1) for Oracle XML DB
The following are changes in Oracle Database 12c Release 2 (12.2.0.1) for Oracle XML DB. - Changes in Oracle Database 12c Release 1 (12.1.0.2) for Oracle XML DB
The following are changes in Oracle Database 12c Release 1 (12.1.0.2) for Oracle XML DB. - Changes in Oracle Database 12c Release 1 (12.1.0.1) for Oracle XML DB
The following are changes in Oracle XML DB Developer's Guide for Oracle Database 12c Release 1 (12.1.0.1).
Changes in Oracle Database Release 18c, Version 1, for Oracle XML DB
The changes in Oracle Database Release 18c, Version 1, for Oracle XML DB are described.
- New Features
There are no new features for Oracle XML DB in this release. - Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release. - Desupported Features
The following features are desupported in this release.
Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release.
-
PL/SQL package
DBMS_XMLQUERY. Use packageDBMS_XMLGENinstead. -
PL/SQL package
DBMS_XMLSAVE. Use packageDBMS_XMLSTOREinstead.
See Also:
Desupported Features
The following features are desupported in this release.
-
PL/SQL subprograms
generateSchemaandgenerateSchemasin packageDBMS_XMLSCHEMA. There are no replacements for these subprograms. -
The following subprograms in package
DBMS_XDB. Use the subprograms with the same names in packageDBMS_XDBCONFIGinstead.-
addhttpexpiremapping -
addmimemapping -
addschemalocmapping -
addservlet -
addservletmapping -
addservletsecrole -
addxmlextension -
cfg_get -
cfg_refresh -
cfg_update -
deletehttpexpiremapping -
deletemimemapping -
deleteschemalocmapping -
deleteservlet -
deleteservletmapping -
deleteservletsecrole -
deletexmlextension -
getftpport -
gethttpport -
getlistenerendpoint -
setftpport -
sethttpport -
setlistenerendpoint -
setlistenerlocalaccess
-
-
The following constants in package
DBMS_XDB. Use the constants with the same name in packageDBMS_XDBCONFIGinstead.-
xdb_endpoint_http -
xdb_endpoint_http2 -
xdb_protocol_tcp -
xdb_protocol_tcps
-
-
All Oracle-specific SQL functions for updating XML data. Use XQuery Update instead. These are the desupported XML-updating functions:
-
updateXML -
insertChildXML -
insertChildXMLbefore -
insertChildXMLafter -
insertXMLbefore -
insertXMLafter -
appendChildXML -
deleteXML
-
-
Oracle XQuery functions
ora:matchesandora:replace. Use the corresponding standard XQuery functions instead, that is, the functions with the same names but with namespace prefixfn:fn:matchesandfn:replace. -
The following Oracle constructs that provide support for XML translations are desupported. There is no replacement for any of these constructs.
-
PL/SQL package
DBMS_XMLTRANSLATIONS -
Oracle XPath function
ora:translate -
XML Schema annotations
xdb:maxOccurs,xdb:srclang, andxdb:translate
-
-
The following XML Schema annotations are desupported. There is no replacement for any of these annotations.
-
xdb:defaultTableSchema -
xdb:maintainOrder -
xdb:mapUnboundedStringToLob -
xdb:maxOccurs -
xdb:SQLCollSchema -
xdb:SQLSchema -
xdb:srclang -
xdb:translate
-
-
The value
xml_clobsfor export parameterdata_options. There is no replacement for this parameter.
See Also:
Changes in Oracle Database 12c Release 2 (12.2.0.1) for Oracle XML DB
The following are changes in Oracle Database 12c Release 2 (12.2.0.1) for Oracle XML DB.
- New Features
The following features are new in this release. - Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release. - Desupported Features
The following features are desupported in this release.
New Features
The following features are new in this release.
- Improved Partitioning Support for XMLIndex
The use of partitionedXMLTypedata withXMLIndexindexing has been improved. - Client-Side Decoding of Binary XML Data
You can now specify client-side decoding for binary XML data, using propertyORACLE.XDB.XMLType.decode_on_clienton a JDBC connection. By default, client-side decoding is enabled. To disable it, set the property value toFALSEusing methodsetClientInfo. - Change XMLType Storage Model Using Online Redefinition
You can now use online redefinition to moveXMLTypedata to or from the binary XML storage format. - XML Pushdown with Exadata
When XML data is stored using a SecureFiles LOB of less than 4K bytes, the evaluation in a SQLWHEREclause of Oracle SQL conditionXMLExistsor Oracle SQL functionXMLCastapplied to the return value of Oracle SQL functionXMLQuerycan sometimes be offloaded to an Exadata Storage Server. - Hierarchy-Enabled Table Support for Replication
Hierarchy-enabledXMLTypetables are now supported for Oracle Data Guard SQL Apply (logical standby) and Oracle GoldenGate replication. - SCAN Listener Balances HTTP Requests Across Nodes of a RAC Cluster
A Single Client Access Name (SCAN) Listener now balances HTTP requests across the nodes of a RAC Cluster. However, you cannot use privileged ports (port number less than 1024) with a SCAN Listener. - Load Subdocuments From XML Documents Using Access Driver ORACLE_LOADER
You can now use theXMLTAGclause of access driverORACLE_LOADERto specify XML tags that are used to load subdocuments from an XML document.
Improved Partitioning Support for XMLIndex
The use of partitioned XMLType data with XMLIndex indexing has been improved.
-
You can now create an
XMLIndexindex onXMLTypedata in a table that is interval-partitioned or reference-partitioned. -
New PL/SQL procedures in package
DBMS_XMLSTORAGE_MANAGEperform exchange partitioning for reference-partitioned tables that useXMLIndex:refPartitionExchangeInandrefPartitionExchangeOut. -
You can now specify
TABLESPACEforXMLIndexat the index level, as well as at the table level and the partition level.
Client-Side Decoding of Binary XML Data
You can now specify client-side decoding for binary XML data, using property ORACLE.XDB.XMLType.decode_on_client on a JDBC connection. By default, client-side decoding is enabled. To disable it, set the property value to FALSE using method setClientInfo.
Parent topic: New Features
Change XMLType Storage Model Using Online Redefinition
You can now use online redefinition to move XMLType data to or from the binary XML storage format.
Parent topic: New Features
XML Pushdown with Exadata
When XML data is stored using a SecureFiles LOB of less than 4K bytes, the evaluation in a SQL WHERE clause of Oracle SQL condition XMLExists or Oracle SQL function XMLCast applied to the return value of Oracle SQL function XMLQuery can sometimes be offloaded to an Exadata Storage Server.
Parent topic: New Features
Hierarchy-Enabled Table Support for Replication
Hierarchy-enabled XMLType tables are now supported for Oracle Data Guard SQL Apply (logical standby) and Oracle GoldenGate replication.
Parent topic: New Features
SCAN Listener Balances HTTP Requests Across Nodes of a RAC Cluster
A Single Client Access Name (SCAN) Listener now balances HTTP requests across the nodes of a RAC Cluster. However, you cannot use privileged ports (port number less than 1024) with a SCAN Listener.
Parent topic: New Features
Load Subdocuments From XML Documents Using Access Driver ORACLE_LOADER
You can now use the XMLTAG clause of access driver ORACLE_LOADER to specify XML tags that are used to load subdocuments from an XML document.
See Also:
Parent topic: New Features
Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release.
-
Oracle XQuery function
ora:contains. Use XQuery Full Text instead. See Migrating from Using Oracle Text Index to XML Search Index. -
Oracle SQL function
XMLRoot. Use SQL/XML functionXMLSerialize()with a version number instead. -
Nested tables stored as index-ordered tables (IOTs). This includes both the use of option
Instead, store nested-table columns using heap storage (the default behavior for PL/SQL procedureDBMS_XMLSCHEMA.REGISTER_NT_AS_IOTand the use of clauseNESTED TABLE N STORE AS ... (ORGANIZATION INDEX)when creating a table with nested-table columnN.DBMS_XMLSCHEMA.registerSchema). -
PL/SQL procedure
DBMS_XSLPROCESSOR.CLOB2FILE. Use the new procedureDBMS_LOB.CLOB2FILEinstead. -
PL/SQL function
DBMS_XSLPROCESSOR.READ2CLOB. UseDBMS_LOB.LOADCLOBFROMFILEinstead. -
Use of XLink with Oracle XML DB. See Use of XLink and XInclude with Oracle XML DB
-
Oracle XML DB Content Connector, which implements Content Repository API for Java (also known as JCR), a Java API standard developed by the Java community as JSR-170. See Deprecated Content Repository API for Java.
-
The
XMLTypeJava constructors and methods that are listed in Table -1.
Table -1 XMLType Java Constructors and Methods Deprecated in Oracle Database 12c Release 2 (12.2.0.1)
| Deprecated XMLType Constructor or Method | Replacement |
|---|---|
|
|
|
|
or |
|
|
|
or |
No replacement. |
|
No replacement. |
|
|
See Also:
Desupported Features
The following features are desupported in this release.
-
Oracle XPath function
ora:instanceof– Use XQuery operatorinstance ofinstead. -
Oracle XPath function
ora:instanceof-only– Use XML Schema attributexsi:typeinstead. -
Oracle XQuery function
ora:view– Use XQuery functionsfn:docandfn:collectioninstead. -
XMLIndexindex onCLOBXMLTypedata that is embedded within object-relationalXMLTypedata. -
Function-based indexes on
XMLType– UseXMLIndexindex with a structured component instead. -
XML Schema annotation (attribute)
csx:encodingType. -
The Java classes in package
oracle.xdb.dom. -
The following PL/SQL procedures in package
DBMS_XDB_ADMIN:-
createRepositoryXMLIndex -
XMLIndexAddPath -
XMLIndexRemovePath -
dropRepositoryXMLIndex
-
See Also:
Changes in Oracle Database 12c Release 1 (12.1.0.2) for Oracle XML DB
The following are changes in Oracle Database 12c Release 1 (12.1.0.2) for Oracle XML DB.
- New Features
The following features are new in this release.
New Features
The following features are new in this release.
- JSON Support
Oracle Database now supports JavaScript Object Notation (JSON). - PL/SQL Subprograms For Realm Configuration
PL/SQL subprogramsgetHTTPConfigRealmandsetHTTPConfigRealmhave been added to packageDBMS_XDB_CONFIG.
JSON Support
Oracle Database now supports JavaScript Object Notation (JSON).
Parent topic: New Features
PL/SQL Subprograms For Realm Configuration
PL/SQL subprograms getHTTPConfigRealm and setHTTPConfigRealm have been added to package DBMS_XDB_CONFIG.
Parent topic: New Features
Changes in Oracle Database 12c Release 1 (12.1.0.1) for Oracle XML DB
The following are changes in Oracle XML DB Developer's Guide for Oracle Database 12c Release 1 (12.1.0.1).
- New Features
The following features are new in this release. - Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release. - Desupported Features
The following features are no longer supported by Oracle.
New Features
The following features are new in this release.
- Oracle XML DB is Mandatory – You Cannot Uninstall it
Oracle XML DB is now a mandatory component of Oracle Database. You cannot uninstall it, and there is no option not to include it when you create Oracle Database. It is automatically installed when you create a new database or when you upgrade an existing database to Oracle Database 12c. - XQuery Update Support
Oracle XML DB now supports XQuery Update. The Oracle-specific SQL functions for updating XML data are deprecated. - XQuery Full Text Support
Oracle XML DB now supports XQuery Full Text. - New XQuery Extension-Expression Pragmas
New XQuery extension-expression pragmas are described. - Replication and Rolling Upgrade Support
- Parallel DML Support for XMLType
- XMLIndex Improvements
Indexing XML data usingXMLIndexhas been improved in the following ways. - PL/SQL Package DBMS_XDB Is Split
- Access to the Repository Using Digest Access Authentication
Users can now access Oracle XML DB Repository using digest access authentication (also known as digest authentication), in addition to basic authentication. This provides encryption of user credentials (name, password, etc.) without the overhead of complete data encryption. - DBFS Support
You can now access Oracle Database File System (DBFS) files and folders from Oracle XML DB Repository, under the repository path/dbfs. This new feature provides you with FTP and HTTP(S)/WebDAV access to DBFS files and folders. - XQuery API for Java (XQJ) Support
You can now use Oracle XML Developer's Kit and XQuery API for Java (XQJ) to access XML data in the database using XQuery expressions from Java programs. In particular, you can access XML data stored in remote databases from a local Java program.
Oracle XML DB is Mandatory – You Cannot Uninstall it
Oracle XML DB is now a mandatory component of Oracle Database. You cannot uninstall it, and there is no option not to include it when you create Oracle Database. It is automatically installed when you create a new database or when you upgrade an existing database to Oracle Database 12c.
See also Automatic Installation of Oracle XML DB.
Parent topic: New Features
XQuery Update Support
Oracle XML DB now supports XQuery Update. The Oracle-specific SQL functions for updating XML data are deprecated.
See Also:
-
Deprecated Features regarding deprecated Oracle SQL functions for updating XML data
Parent topic: New Features
New XQuery Extension-Expression Pragmas
New XQuery extension-expression pragmas are described.
The following XQuery extension-expression pragmas are new:
-
(#ora:child-element-namename#)– Specify the name to use for a child element that is inserted. -
(#ora:no_schema #)– Do not raise an error if an XQuery Full Text expression is used with XML Schema-basedXMLTypedata. -
(#ora:use_xmltext_idx #)– Use an XML search index, if available, to evaluate the query. Do not use anXMLIndexindex or streaming evaluation.
Parent topic: New Features
Replication and Rolling Upgrade Support
The following new features provide better support for replication and rolling upgrade.
- Oracle GoldenGate and Oracle Data Guard SQL Apply Support for XMLType
- Rolling Upgrade Supports Oracle XML DB Repository
When you perform a rolling upgrade, Oracle XML DB Repository operations are applied on the standby database as part of the SQL apply step.
Parent topic: New Features
Oracle GoldenGate and Oracle Data Guard SQL Apply Support for XMLType
Oracle GoldenGate replication and Oracle Data Guard SQL Apply (logical standby) are now supported for all XMLType storage models.
See Also:
-
Oracle GoldenGate Oracle Installation and Setup for information about replication of
XMLTypedata using Oracle GoldenGate -
Oracle GoldenGate for information about Oracle GoldenGate
-
Oracle Data Guard Concepts and Administration for information about data types supported by SQL Apply
Parent topic: Replication and Rolling Upgrade Support
Rolling Upgrade Supports Oracle XML DB Repository
When you perform a rolling upgrade, Oracle XML DB Repository operations are applied on the standby database as part of the SQL apply step.
See Upgrade or Downgrade of an Existing Oracle XML DB Installation for applicable restrictions.
Parent topic: Replication and Rolling Upgrade Support
Parallel DML Support for XMLType
Support for parallel DML has been improved for XMLType storage model binary XML using SecureFiles LOBs. The performance and scalability have been improved for both CREATE TABLE AS SELECT and INSERT AS SELECT.
Parent topic: New Features
XMLIndex Improvements
Indexing XML data using XMLIndex has been improved in the following ways.
- XMLIndex Index Synchronization Improvements
XMLIndex index synchronization has been improved in two ways. - XMLIndex Support for Hash Partitioning
You can create a locally partitionedXMLindexindex onXMLTypetables and columns that you have partitioned using hash partitioning (in addition to range and list partitioning).
Parent topic: New Features
XMLIndex Index Synchronization Improvements
XMLIndex index synchronization has been improved in two ways.
-
Less undo space is used.
-
If an error is raised during indexing then most of the index synchronization work is saved.
Parent topic: XMLIndex Improvements
XMLIndex Support for Hash Partitioning
You can create a locally partitioned XMLindex index on XMLType tables and columns that you have partitioned using hash partitioning (in addition to range and list partitioning).
See Also:
Parent topic: XMLIndex Improvements
PL/SQL Package DBMS_XDB Is Split
The subprograms and constants of PL/SQL package DBMS_XDB have been divided among the following packages:
-
DBMS_XDB_ADMIN -
DBMS_XDB_CONFIG -
DBMS_XDB_REPOS
Packages DBMS_XDB_CONFIG and DBMS_XDB_REPOS are new in Oracle Database 12c Release 1 (12.1.0.1). Package DBMS_XDB continues to exist for backward compatibility.
See Also:
-
Oracle Database PL/SQL Packages and Types Reference, Chapter "DBMS_XDB_CONFIG"
-
Deprecated Features regarding deprecated PL/SQL subprograms and constants moved from
DBMS_XDBtoDBMS_XDB_CONFIG -
Oracle Database PL/SQL Packages and Types Reference, Chapter "DBMS_XDB_REPOS"
Parent topic: New Features
Access to the Repository Using Digest Access Authentication
Users can now access Oracle XML DB Repository using digest access authentication (also known as digest authentication), in addition to basic authentication. This provides encryption of user credentials (name, password, etc.) without the overhead of complete data encryption.
User credentials are case-sensitive. In particular, a user name to be authenticated must exactly match the name as it was created (which by default is all uppercase).
See Also:
-
Configuration and Management of Authentication Mechanisms for HTTP for how to configure digest authentication
-
Upgrade or Downgrade of an Existing Oracle XML DB Installation for installation, upgrade, and downgrade considerations
Parent topic: New Features
DBFS Support
You can now access Oracle Database File System (DBFS) files and folders from Oracle XML DB Repository, under the repository path /dbfs. This new feature provides you with FTP and HTTP(S)/WebDAV access to DBFS files and folders.
See Also:
Parent topic: New Features
XQuery API for Java (XQJ) Support
You can now use Oracle XML Developer's Kit and XQuery API for Java (XQJ) to access XML data in the database using XQuery expressions from Java programs. In particular, you can access XML data stored in remote databases from a local Java program.
See Also:
-
Oracle XML Developer's Kit Programmer's Guide for complete information about using XQJ
Parent topic: New Features
Deprecated Features
The following features are deprecated in this release, and may be desupported in a future release.
-
CLOBstorage ofXMLType, also known as unstructured storage, is deprecated. Use binary XML storage ofXMLTypeinstead.If you need to preserve insignificant whitespace then store two copies of your original XML document: one as an
XMLTypeinstance for database use and XML processing, the other as aCLOBinstance to provide document fidelity. -
Creation of an
XMLIndexindex over an XML fragment stored as aCLOBinstance embedded in object-relationalXMLTypedata is deprecated. If you need to index the data in such a fragment then store the document using binary XML storage, not object-relational storage. -
The following PL/SQL subprograms in package
DBMS_XMLSCHEMAare deprecated:-
generateSchema -
generateSchemas
There are no replacements for these constructs and there is no workaround for this change.
-
-
PL/SQL package
DBMS_XDB_CONFIGis new. All Oracle XML DB configuration functions, procedures, and constants have been moved from packageDBMS_XDBtoDBMS_XDB_CONFIG. They are deprecated for packageDBMS_XDB. Oracle recommends that you use them in packageDBMS_XDB_CONFIGinstead.These are the subprograms that are deprecated in package
DBMS_XDB:-
ADDHTTPEXPIREMAPPING -
ADDMIMEMAPPING -
ADDSCHEMALOCMAPPING -
ADDSERVLET -
ADDSERVLETMAPPING -
ADDSERVLETSECROLE -
ADDXMLEXTENSION -
CFG_GET -
CFG_REFRESH -
CFG_UPDATE -
DELETEHTTPEXPIREMAPPING -
DELETEMIMEMAPPING -
DELETESCHEMALOCMAPPING -
DELETESERVLET -
DELETESERVLETMAPPING -
DELETESERVLETSECROLE -
DELETEXMLEXTENSION -
GETFTPPORT -
GETHTTPPORT -
GETLISTENERENDPOINT -
SETFTPPORT -
SETHTTPPORT -
SETLISTENERENDPOINT -
SETLISTENERLOCALACCESS
These are the constants that are deprecated in package
DBMS_XDB:-
XDB_ENDPOINT_HTTP -
XDB_ENDPOINT_HTTP2 -
XDB_PROTOCOL_TCP -
XDB_PROTOCOL_TCPS
See Also:
Oracle Database PL/SQL Packages and Types Reference, Chapter "DBMS_XDB_CONFIG"
-
-
All Oracle SQL functions for updating XML data are deprecated. Oracle recommends that you use XQuery Update instead. These are the deprecated XML updating functions:
-
updateXML -
insertChildXML -
insertChildXMLbefore -
insertChildXMLafter -
insertXMLbefore -
insertXMLafter -
appendChildXML -
deleteXML
-
-
Oracle SQL function
sys_xmlgenis deprecated. Oracle recommends that you use the SQL/XML generation functions instead. -
The following Oracle XQuery functions are deprecated. Use the corresponding standard XQuery functions instead, that is, the functions with the same names but with namespace prefix
fn.-
ora:matches– usefn:matchesinstead -
ora:replace– usefn:replaceinstead
-
-
The following Oracle constructs that provide support for XML translations are deprecated.
-
PL/SQL package
DBMS_XMLTRANSLATIONS -
Oracle XPath function
ora:translate -
XML Schema annotations
xdb:maxOccurs,xdb:srclang, andxdb:translate
There are no replacements for these constructs and there is no workaround for this change.
-
-
The following XML Schema annotations are deprecated:
-
xdb:defaultTableSchema -
xdb:maintainOrder -
xdb:mapUnboundedStringToLob -
xdb:maxOccursFoot 1 -
xdb:SQLCollSchema -
xdb:SQLSchema -
xdb:srclangFootref 1 -
xdb:storeVarrayAsTable -
xdb:translateFootref 1
There are no replacements for these constructs, and there is no workaround for this change.
-
-
The value
xml_clobsfor export parameterdata_optionsis deprecated starting with Oracle Database 12c Release 1 (12.1).
Desupported Features
The following features are no longer supported by Oracle.
See Oracle Database Upgrade Guide for a complete list of desupported features in this release.
-
CTXSYS.CTXXPATHindex is desupported. UseXMLIndexindexes instead
Footnote Legend
Footnote 1:See also Deprecated Features regarding deprecated support for XML translations.