This preface contains descriptions of changes in Oracle XML DB for the last two major database releases.
The following are changes in Oracle XML DB Developer's Guide for Oracle Database 12c Release 2 (12.2.0.1).
The following features are new in this release.
The use of partitioned XMLType
data with XMLIndex
indexing has been improved.
You can now create an XMLIndex
index on XMLType
data in a table that is interval-partitioned or reference-partitioned.
New PL/SQL procedures in package DBMS_XMLSTORAGE_MANAGE
perform exchange partitioning for reference-partitioned tables that use XMLIndex
: refPartitionExchangeIn
and refPartitionExchangeOut
.
You can now specify TABLESPACE
for XMLIndex
at the index level, as well as at the table level and the partition level.
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
.
You can now use online redefinition to move XMLType
data to or from the binary XML storage format.
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.
Hierarch-enabled XMLType
tables are now supported for Oracle Data Guard SQL Apply (logical standby) and Oracle GoldenGate replication.
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.
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 function XMLSerialize()
with a version number instead.
Nested tables stored as index-ordered tables (IOTs). This includes both the use of option DBMS_XMLSCHEMA.REGISTER_NT_AS_IOT
and the use of clause NESTED TABLE N STORE AS ... (ORGANIZATION INDEX)
when creating a table with nested-table column N
.
DBMS_XMLSCHEMA.registerSchema
).PL/SQL procedure DBMS_XSLPROCESSOR.CLOB2FILE
. Use the new procedure DBMS_LOB.CLOB2FILE
instead.
PL/SQL function DBMS_XSLPROCESSOR.READ2CLOB
. Use DBMS_LOB.LOADCLOBFROMFILE
instead.
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 XMLType
Java 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 |
---|---|
createXML(java.sql.Connection conn, java.lang.String xmlval |
java.sql.Connection conn; SQLXML newXML = conn.createSQLXML(); newXML.setString(xmlval); |
createXML(Connection conn, Document dom) |
java.sql.Connection conn; SQLXML newXML = conn.createSQLXML(); DOMResult dom = newXML.setResult(DOMResult.class); |
getDocument()or getDOM() |
SQLXML sx; DOMSource ds; sx.getSource(DOMSource.class); Document doc = (Document) ds.getNode(); |
getStringVal() |
SQLXML sx; String str = sx.getString(); |
existsNode(java.lang.String xpath, java.lang.String nsmap) or extract(java.lang.String xpath, java.lang.String nsmap) |
No replacement. |
getBytesValue() |
No replacement. |
close() |
SQLXML sx; sx.free(); |
See Also:
The following features are desupported in this release.
Oracle XPath function ora:instanceof
– Use XQuery operator instance of
instead.
Oracle XPath function ora:instanceof-only
– Use XML Schema attribute xsi:type
instead.
Oracle XQuery function ora:view
– Use XQuery functions fn:doc
and fn:collection
instead.
XMLIndex
index on CLOB
XMLType
data that is embedded within object-relational XMLType
data.
Function-based indexes on XMLType
– Use XMLIndex
index 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:
The following are changes in Oracle XML DB Developer's Guide for Oracle Database 12c Release 1 (12.1.0.2).
The following are changes in Oracle XML DB Developer's Guide for Oracle Database 12c Release 1 (12.1.0.1).
The following features are new in this release.
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.
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
New XQuery extension-expression pragmas are described.
The following XQuery extension-expression pragmas are new:
(#ora:child-element-name
name
#)
– 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-based XMLType
data.
(#ora:use_xmltext_idx #)
– Use an XML search index, if available, to evaluate the query. Do not use an XMLIndex
index or streaming evaluation.
The following new features provide better support for replication and rolling upgrade.
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 XMLType
data 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
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.
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
.
Indexing XML data using XMLIndex
has been improved in the following ways.
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.
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_XDB
to DBMS_XDB_CONFIG
Oracle Database PL/SQL Packages and Types Reference, Chapter "DBMS_XDB_REPOS"
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
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.
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
The following features are deprecated in this release, and may be desupported in a future release.
CLOB
storage of XMLType
, also known as unstructured storage, is deprecated. Use binary XML storage of XMLType
instead.
If you need to preserve insignificant whitespace then store two copies of your original XML document: one as an XMLType
instance for database use and XML processing, the other as a CLOB
instance to provide document fidelity.
Creation of an XMLIndex
index over an XML fragment stored as a CLOB
instance embedded in object-relational XMLType
data 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_XMLSCHEMA
are deprecated:
generateSchema
generateSchemas
There are no replacements for these constructs and there is no workaround for this change.
PL/SQL package DBMS_XDB_CONFIG
is new. All Oracle XML DB configuration functions, procedures, and constants have been moved from package DBMS_XDB
to DBMS_XDB_CONFIG
. They are deprecated for package DBMS_XDB
. Oracle recommends that you use them in package DBMS_XDB_CONFIG
instead.
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_xmlgen
is 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
– use fn:matches
instead
ora:replace
– use fn:replace
instead
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
, and xdb: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:maxOccurs
Foot 1
xdb:SQLCollSchema
xdb:SQLSchema
xdb:srclang
Footref 1
xdb:storeVarrayAsTable
xdb:translate
Footref 1
There are no replacements for these constructs, and there is no workaround for this change.
The value xml_clobs
for export parameter data_options
is deprecated starting with Oracle Database 12c Release 1 (12.1).
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.CTXXPATH
index is desupported. Use XMLIndex
indexes instead
Footnote Legend
Footnote 1:See also Deprecated Features regarding deprecated support for XML translations.