Oracle9i XML Database Developer's Guide - Oracle XML DB Release 2 (9.2) Part Number A96620-02 |
|
|
View PDF |
This manual describes Oracle XML DB, the Oracle9i XML database. It describes how XML data can be stored, generated, manipulated, managed, and queried in the database using Oracle XML DB.
After introducing you to the heart of Oracle XML DB , namely the XMLType
framework and Oracle XML DB Repository, the manual provides a brief introduction to design criteria to consider when planning your Oracle XML DB application. It provides examples of how and where you can use Oracle XML DB.
The manual then describes ways you can store and retrieve XML data using Oracle XML DB, APIs for manipulating XMLType
data, and ways you can view, generate, transform, and search on existing XML data. The remainder of the manual discusses how to use Oracle XML Repository, including versioning and security, how to access and manipulate Repository resources using protocols, SQL, PL/SQL, or Java, and how to manage your Oracle XML DB application using Oracle Enterprise Manager. It also introduces you to XML messaging and Advanced Queueing XMLType
support.
The Preface contains the following sections:
This manual is intended for developers building XML applications on Oracle9i database.
An understanding of XML, XML Schema, XPath, and XSL is helpful when using this manual.
Many examples provided here are in SQL, Java, or PL/SQL, hence, a working knowledge of one or more of these languages is presumed.
This document contains the following parts, chapters, and appendixes:
Introduces you to the Oracle XML DB components and architecture, including XMLType and the Repository. It discusses some basic design issues and provides a comprehensive set of examples of where and how you can use Oracle XML DB.
Introduces you to the Oracle XML DB components and architecture. It includes a description of the benefits of using Oracle XML DB, the key features, standards supported, and requirements for running Oracle XML DB. It lists Oracle XML DB-related terms used throughout the manual.
Describes how to install Oracle XML DB, compatibility and migration, and some preliminary application planning issues.
Introduces you to where and how you can use Oracle XML DB. It provides examples of storing, accessing, updating, and validating your XML data using Oracle XML DB.
Describes the ways you can store, retrieve, validate, and transform XML data using Oracle9i database native XMLType
API.
Describes how to create XMLType
tables and manipulate and query XML data for non-schema-based XMLType
tables and columns.
Describes how to use Oracle XML DB mapping from SQL to XML and back, provides an overview of how you must register your XML schema, how you can either use Oracle XML DBs default mapping or specify your own mapping. It also describes how to use Ordered Collections in Tables (OCTs) in Oracle XML DB.
Describes how you can use SQL functions to transform XML data stored in the database and being retrieved or generated from the database. It also describes how you can use SQL functions to validate XML data being input into the database.
Describes how you can create an Oracle Text index on DBUriType
or Oracle XML DB UriType
columns and search XML data using Oracle Text's CONTAINS()
function and XMLType's existsNode()
function. It includes how to use CTXXPATH
index for XPath querying of XML data.
Describes the PL/SQL and Java XMLType
APIs and how to use them.
Introduces the PL/SQL DOM API for XMLType, PL/SQL Parser API for XMLType, and PL/SQL XSLT Processor API for XMLType. It includes examples and calling sequence diagrams.
Describes how to use the Java (JDBC) API for XMLType
. It includes examples and calling sequence diagrams.
Discusses SQLX, Oracle SQLX extension functions, and SQL functions for generating XML. SQLX functions include XMLElement()
and XMLForest()
. Oracle SQLX extension functions include XMLColAttValue()
. SQL functions include SYS_XMLGEN()
, XMLSEQUENCE()
, and SYS_XMLAGG()
. It also describes how to use DBMS_XMLGEN
, XSQL Pages Publishing Framework, and XML SQL Utility (XSU) to generate XML data from data stored in the database.
Describes how to create XMLType
views based on XML generation functions, object types, or transforming XMLType
tables. It also discusses how to manipulate XML data in XMLType
views.
Introduces you to how Oracle9i database works with URIs and URLs. It describes how to use UriTypes
and associated sub-types: DBUriType
, HttpUriType
, and XDBUriType
to create and access database data using URLs. It also describes how to create instances of UriType
using the UriFactory
package, how to use SYS_DBURIGEN()
SQL function, and how to turn a URL into a database query using DBUri
Servlet.
Describes Oracle XML DB Repository, the concepts behind it, how to use Versioning, ACL security, the Protocol Server, and the various associated Oracle XML DB Resource APIs.
Describes hierarchical indexing and foldering. Introduces you to the various Oracle XML DB Repository components such as Oracle XML DB Resource View API, Versioning, Oracle XML DB Resource API for PL/SQL and Java.
Describes how to create a version-controlled Oracle XML DB resource (VCR) and how to access and update a VCR.
Describes how you can use SQL to access data stored in Oracle XML DB Repository using Oracle XML DB Resource View API. This chapter also compares the functionality of the other Oracle XML DB Resource APIs.
Describes DBMS_Oracle XML DB and the Oracle XML DB Resource API for PL/SQL.
Describes Oracle XML DB Resource API for Java/JNDI and how to use it to access Oracle XMl DB Repository data.
Describes how to use Oracle XML DB resources and ACL security, how to share ACL, and how to retrieve ACL information.
Introduces Oracle XML DB Protocol Server and how to use FTP, HTTP, and WebDAV with Oracle XML DB.
Introduces you to writing Oracle XML DB applications in Java. It describes which Java APIs are available inside and outside the database, tips for writing Oracle XML DB HTTP servlets, which parameters to use to configure servlets in the configuration file /xdbconfig.xml
, and HTTP request processing.
Includes chapters that describe the tools you can use to build and manage your Oracle XML DB application.
Describes how you can use Oracle Enterprise Manager to register your XML schema; create resources, XMLType
tables, views, and columns; manage ACL security, configure Oracle XML DB; and create function-based indexes.
Describes ways you can load XMLType
data using SQL*Loader.
Describes the IMPORT/EXPORT utility support for loading XMLType tables.
Describes Oracle Advanced Queueing support for XML and XMLType
messaging.
Introduces how you can use Advancd Queueing to exchange XML data. It briefly describes Oracle Streams, Internet Data Access Presentation (IDAP), using AQ XML Servlet to enquue and dequeue messages, using IDAP, and AQ XML schemas.
Describes two XML DB-based applications.
Provides the calling sequence and code for building an XML DB Web Services based purchase order application.
Provides many examples and illustrations of ways to store, access, and manipulate purchase order XML document using XML DB.
Describes how to install and configure Oracle XML DB.
Provides a summary of the W3C XML Schema Recommendation.
Provides an introduction to W3C XPath Recommendation, Namespace Recommendation, and Information Sets.
Provides an introduction to the W3C XSL/XSLT Recommendation.
Provides a quick reference for the Oracle XML DB Java APIs.
Provides a quick reference for the Oracle XML DB PL/SQL APIs.
Provides a description of the setup scripts used for the examples in Chapter 3. It also descibes the RESOURCE_VIEW and PATH_VIEW structures and lists the Oracle XML DB- supplied sample resource XML schema.
For more information, see these Oracle resources:
Some of the examples in this book use the sample schemas of the seed database, which is installed by default when you install Oracle. Refer to Oracle9i Sample Schemas for information on how these schemas were created and how you can use them yourself.
In North America, printed documentation is available for sale in the Oracle Store at
http://oraclestore.oracle.com/
Customers in Europe, the Middle East, and Africa (EMEA) can purchase documentation from
http://www.oraclebookshop.com/
Other customers can contact their Oracle representative to purchase printed documentation.
To download free release notes, installation documentation, white papers, or other collateral, please visit the Oracle Technology Network (OTN). You must register online before using OTN; registration is free and can be done at
http://otn.oracle.com/admin/account/membership.html
If you already have a username and password for OTN, then you can go directly to the documentation section of the OTN Web site at
http://otn.oracle.com/docs/index.htm
To access the database documentation search engine directly, please visit
http://tahiti.oracle.com
This section describes the conventions used in the text and code examples of this documentation set. It describes:
We use various conventions in text to help you more quickly identify special terms. The following table describes those conventions and provides examples of their use.
Code examples illustrate SQL, PL/SQL, SQL*Plus, or other command-line statements. They are displayed in a monospace (fixed-width) font and separated from normal text as shown in this example:
SELECT username FROM dba_users WHERE username = 'MIGRATE';
The following table describes typographic conventions used in code examples and provides examples of their use.
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle Corporation is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at
http://www.oracle.com/accessibility/
JAWS, a Windows screen reader, may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, JAWS may not always read a line of text that consists solely of a bracket or brace.
This documentation may contain links to Web sites of other companies or organizations that Oracle Corporation does not own or control. Oracle Corporation neither evaluates nor makes any representations regarding the accessibility of these Web sites.