Oracle9i XML API Reference - XDK and Oracle XML DB Release 2 (9.2) Part Number A96616-01 |
|
This chapter contains the following sections:
This package is created by script dbmsxsch.sql during Oracle XML DB installation. It provides procedures to register and delete XML schemas.
Constant | Description |
---|---|
DELETE_RESTRICT |
CONSTANT NUMBER := 1; |
DELETE_INVALIDATE |
CONSTANT NUMBER := 2; |
DELETE_CASCADE |
CONSTANT NUMBER := 3; |
DELETE_CASCADE_FORCE |
CONSTANT NUMBER := 4; |
Registers the specified schema for use by the Oracle XML DB. The available options are given in the following table.
Registers an XMLSchema specified by a URI name.
procedure registerURI(schemaURL IN varchar2, schemaDocURI IN varchar2, local IN BOOLEAN := TRUE, genTypes IN BOOLEAN := TRUE, genbean IN BOOLEAN := FALSE, genTables IN BOOLEAN := TRUE, force IN BOOLEAN := FALSE, owner IN VARCHAR2 := null);
Parameter | IN / OUT | Description |
---|---|---|
schemaURL |
(IN) |
A name that uniquely identifies the schema document. |
schemaDocURI |
(IN) |
Pathname (URI) corresponding to the physical location of the schema document. The URI path could be based on HTTP, FTP, DB or Oracle XML DB protocols. This function constructs a URIType instance using the URIFactory - and invokes the |
local |
(IN) |
Is this a local or global schema? By default, all schemas are registered as local schemas under If a schema is regsitered as global, it is added under User needs write privileges on the PUBLIC directory to be able to register a schema as global. |
genTypes |
(IN) |
Should the schema compiler generate object types? By default, |
genbean |
(IN) |
Should the schema compiler generate Java beans? By default, |
genTables |
(IN) |
Should the schema compiler generate default tables? By default, |
force |
(IN) |
If this parameter is set to TRUE, the schema registration will not raise errors. Instead, it creates an invalid XML schema object in case of any errors. By default, the value of this parameter is |
owner |
(IN) |
This parameter specifies the name of the database user owning the XML schema object. By default, the user registering the schema owns the XML schema object. This parameter can be used to register a XML schema to be owned by a different database user. |
ORA-31001
exception: invalid resource handle or path name.procedure deleteSchema( schemaURL IN varchar2, delete_option IN pls_integer := DELETE_RESTRICT);
Parameter | IN / OUT | Description |
---|---|---|
schemaURL |
(IN) |
URL identifying the schema to be deleted. |
delete_option |
(IN) |
Option for deleting schema. |
This procedure can be used to generate the Java bean code corresponding to a registered XML schema. Note that there is also an option to generate the beans as part of the registration procedure itself. Can result in a ORA-31001
exception: invalid resource handle or path name.
procedure generateBean(schemaURL IN varchar2);
Parameter | IN / OUT | Description |
---|---|---|
schemaURL |
(IN) |
Name identifying a registered XML schema. |
This procedure can be used to re-compile an already registered XML schema. This is useful for bringing a schema in an invalid state to a valid state. Can result in a ORA-31001
exception: invalid resource handle or path name.
procedure compileSchema( schemaURL IN varchar2);
Parameter | IN / OUT | Description |
---|---|---|
schemaURL |
(IN) |
URL identifying the schema. |
These functions generate XML schema(s) from an oracle type name. Can result in a ORA-31001
exception: invalid resource handle or path name. The available options are given in the following table.
Lists all schemas (local and global) belonging to the current user.
Column | Datatype | Description |
---|---|---|
SCHEMA_URL |
VARCHAR2 |
URL of XML schema |
LOCAL |
VARCHAR2 |
Local schema (YES/NO) |
SCHEMA |
XMLTYPE |
XML Schema document |
Lists all local schemas belonging to the current user and all global schemas.
Column | Datatype | Description |
---|---|---|
OWNER |
VARCHAR2 |
Database user owning XML schema |
SCHEMA_URL |
VARCHAR2 |
URL of XML schema |
LOCAL |
VARCHAR2 |
Local schema (YES/NO) |
SCHEMA |
XMLTYPE |
XML Schema document |
Lists all registered local and global schemas in the system.
Column | Datatype | Description |
---|---|---|
OWNER |
VARCHAR2 |
Database user owning XML schema |
SCHEMA_URL |
VARCHAR2 |
URL of XML schema |
LOCAL |
VARCHAR2 |
Local schema (YES/NO) |
SCHEMA |
XMLTYPE |
XML Schema document |
Lists all XMLType tables in the system.
Lists all local XMLType tables belonging to the current user.
Lists all local XMLType tables belonging to the current user and all global tables visible to the current user.
Lists all XMLType columns in the system.
Lists all XMLType columns in tables belonging to the current user.
Lists all XMLType columns in tables belonging to the current user and all global tables visible to the current user.
Lists all XMLType views in the system.
Column | Datatype | Description |
---|---|---|
OWNER |
VARCHAR2 |
Database user owning view |
VIEW_NAME |
VARCHAR2 |
Name of XMLType view |
XMLSCHEMA |
VARCHAR2 |
XML Schema URL |
ELEMENT_NAME |
VARCHAR2 |
XML Schema element |
Lists all local XMLType views belonging to the current user.
Column | Datatype | Description |
---|---|---|
VIEW_NAME |
VARCHAR2 |
Name of XMLType view |
XMLSCHEMA |
VARCHAR2 |
XML Schema URL |
ELEMENT_NAME |
VARCHAR2 |
XML Schema element |
Lists all local XMLType views belonging to the current user and all global views visible to the current user.
Column | Datatype | Description |
---|---|---|
OWNER |
VARCHAR2 |
Database user owning view |
VIEW_NAME |
VARCHAR2 |
Name of XMLType view |
XMLSCHEMA |
VARCHAR2 |
XML Schema URL |
ELEMENT_NAME |
VARCHAR2 |
XML Schema element |
Lists all XMLType columns in the system.
Lists all XMLType columns in views belonging to the current user.
Column | Datatype | Description |
---|---|---|
VIEW_NAME |
VARCHAR2 |
Name of view. |
COLUMN_NAME |
VARCHAR2 |
Name of XMLType column. |
XMLSCHEMA |
VARCHAR2 |
XML Schema URL. |
ELEMENT_NAME |
VARCHAR2 |
XML Schema element. |
Lists all XMLType columns in views belonging to the current user and all global views visible to the current user.
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|