Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_XMLSchema, 3 of 3
Registers the specified schema for use by the Oracle XML DB. The available options are given in the table below.
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 XDB protocols. This function constructs a URIType instance using the URIFactory - and invokes the registerSchema() function. |
local |
(IN) |
Is this a local or global schema? By default, all schemas are registered as local schemas i.e. under /sys/schemas/<username/... If a schema is regsitered as global, it is added under /sys/schemas/PUBLIC/.... User needs write privileges on the above directory to be able to register a schema as global. |
genTypes |
(IN) |
Should the schema compiler generate object types? By default, TRUE |
genbean |
(IN) |
Should the schema compiler generate Java beans? By default, FALSE. |
genTables |
(IN) |
Should the schema compiler generate default tables? By default, TRUE |
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 FALSE. |
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. |
Deletes the XMLSchema specified by the URL. Can result in a 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 table below.
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 © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|