Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> problems with XmlSchema
to start with:
SQL> select * from v$version;
BANNER
I have some strange problems using the mods schema (http://www.loc.gov/standards/mods/v3/mods-3-1.xsd )in Oracle. I was able to register and use a home-made schema, but with mods I get very unhelpfull error messages.
To demonstrate, try the following script:
> begin
>
> dbms_xmlschema.registerURI( 'uritest1.xsd', 'http://www.loc.gov/standards/mods/v3/mods-3-1.xsd' );
>
> end;
> /
> drop table mods_test;
>
> create table mods_test ( doc_id VARCHAR2(64) PRIMARY KEY,
> arch_id VARCHAR2(10),
> data_char xmltype NOT NULL )
> xmltype column data_char XMLSCHEMA "uritest1.xsd" element "mods";
> .
Executing this:
> SQL> @mods_test
>
> PL/SQL procedure successfully completed.
so the schema IS registered
> drop table mods_test
> *
> ERROR at line 1:
> ORA-00942: table or view does not exist
so far so good
> create table mods_test ( doc_id VARCHAR2(64) PRIMARY KEY,
> *
> ERROR at line 1:
> ORA-00600: internal error code, arguments: [qmtcolinfo_cbel], [], [], [], [],
> [], [], []
No clue here....
Another problem is, that this schema is very hard to get rid of:
> SQL> begin
> 2 dbms_xmlschema.deleteSchema ( 'uritest1.xsd', dbms_xmlschema.delete_cascade_force );
> 3 end;
> 4 /
> begin
> *
> ERROR at line 1:
> ORA-04020: deadlock detected while trying to lock object
> XDB.XDBdTReGrBbkTgQDiJQPdUOA==
> ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
> ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 100
> ORA-06512: at line 2
Sometimes i have to wait several DAYS, before this succeeds
clueless, any help appreciated
Ko vd Sloot
Tilburg University
Received on Fri Nov 25 2005 - 07:28:30 CST
![]() |
![]() |