Xmldb schema registration problems

Hi,
I'm trying to register an xsd schema file which starts:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" xdb:storeVarrayAsTable="true">
<xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd
"/>
<xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.w3.org/TR/xml-i18n-bp/xmlspec/xlink.xsd"/>
<!-- XSD import of namespace suppressed, whee -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
Because of the xsd imports I have to register all of the dependent xsd files, but eventually end up at the start of the chain having to register datatypes.dtd (and XMLSchema.dtd)
but I get this error for datatypes.dtd:
Error starting at line 1 in command:
begin
DBMS_XMLSCHEMA.REGISTERURI(
schemaurl => 'http://www.w3.org/2001/datatypes.dtd',
schemadocuri => '/public/pmc/datatypes.dtd'
end;
Error report:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00247: invalid Document Type Declaration (DTD)
Error at line 16
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 195
ORA-06512: at line 2
31011. 00000 - "XML parsing failed"
*Cause:    XML parser returned an error while trying to parse the document.
*Action:   Check if the document to be parsed is valid.
The offending line is the first one after the comments:
<!ENTITY % simpleType "%p;simpleType">
Am I right in trying to register DTDs at all, or I have I got the wrong approach regarding imported XSDs in the first place ?
(it's only W3C XSDs that are imported)
Alan.

Which database version are you using. In 11g all importent W3C schema's have already been registered including the xlink schema's. In 10g (although I never did a diff between the versions) the same are registered xlink stuff excluded.
I wouldn't mix DTD and XML Schema's, but that's more a gut feeling then that I have a reason for it. It will make maintenance more difficult because you need an understanding for both notation methods

Similar Messages

  • Oracle Xml Schema Registration problem.

    Hi Gurus,
    I tried to register a schema using an xsd named 'EntityBase.xsd', using the following block. It got registered successfully.
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://xmlns.oracle.com/xdb/EntityBase.xsd',
    SCHEMADOC => bfilename('XMLDIR','EntityBase.xsd'),
    LOCAL => FALSE,
    CSID => nls_charset_id('AL32UTF8'));
    END;
    select local,schema_url,int_objname,qual_schema_url from dba_xml_schemas where schema_url like
    '%http://xmlns.oracle.com/xdb/EntityBase.xsd%';
    This gives me a record.
    Now I have another xsd, VersionedEntity.xsd with which I would like to register another schema. In the xsd definition for VersionedEntity.xsd, it has Entity.xsd being used and which is already registered and the .xsd exists in the same directory 'XMLDIR'. But when I register using the following block,
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://xmlns.oracle.com/xdb/VersionedEntity.xsd',
    SCHEMADOC => bfilename('XMLDIR','VersionedEntity.xsd'),
    CSID => nls_charset_id('AL32UTF8'));
    END;
    I get
    ORA-31000: Resource 'EntityBase.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 2
    Please help me with your expert advice. Am I doing something wrong?
    Thanks and Regards,

    There is a forum dedicated to XML...
    XML DB

  • "unknown namespace URI" during schema registration

    I have an XML containing other XMLs, grouping them together. The contained XMLs namespaces are different.
    Anybody knows a way to register such an xml? (Except including the schemas into each other. I don't have the oppurtunity to change the xmls.)
    Here is the example:
    First the xml instance:
    <?xml version="1.0" encoding="UTF-8"?>
    <variables xmlns="http://www.wildom.com/neaddfel/2612">
    <folder_form_2613>
    <variables xmlns="http://www.wildom.com/neaddfel/2613">
    <form.id>4520</form.id>
    <form.type>folderform</form.type>
    <form.type_id>2613</form.type_id>
    <form.type_name>teszteset</form.type_name>
    <form.xslt>null</form.xslt>
    <t_comment/>
    <t_input>2222222222222222222222</t_input>
    </variables>
    </folder_form_2613>
    <folder_form_2614>
    <variables xmlns="http://www.wildom.com/neaddfel/2614">
    <form.id>4520</form.id>
    <form.type>folderform</form.type>
    <form.type_id>2613</form.type_id>
    <form.type_name>teszteset</form.type_name>
    <form.xslt>null</form.xslt>
    <t_comment/>
    <t_input>2222222222222222222222</t_input>
    </variables>
    </folder_form_2614>
    <folder.company_address_city>Bp.</folder.company_address_city>
    <folder.company_address_id>TuzeŠr utca 42.</folder.company_address_id>
    <folder.company_address_zip>1122</folder.company_address_zip>
    <folder.company_id>522</folder.company_id>
    <folder.company_name>Breona kft.</folder.company_name>
    <folder.hir_id>null</folder.hir_id>
    <folder.id>4521</folder.id>
    <folder.type_id>2612</folder.type_id>
    <folder.type_name>FSDTGSH</folder.type_name>
    <folder.userid>602</folder.userid>
    <folder.username>[email protected]</folder.username>
    <folder.xslt>FSDTGSH</folder.xslt>
    </variables>
    Now the xsds:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.wildom.com/neaddfel/2613" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="variables" type="ns:variablesType" xmlns:ns="http://www.wildom.com/neaddfel/2613"/>
    <xs:complexType name="variablesType">
    <xs:sequence>
    <xs:element type="xs:string" name="form.id"/>
    <xs:element type="xs:string" name="form.type"/>
    <xs:element type="xs:string" name="form.type_id"/>
    <xs:element type="xs:string" name="form.type_name"/>
    <xs:element type="xs:string" name="form.xslt"/>
    <xs:element type="xs:string" name="t_comment"/>
    <xs:element type="xs:string" name="t_input"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.wildom.com/neaddfel/2614" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="variables" type="ns:variablesType" xmlns:ns="http://www.wildom.com/neaddfel/2614"/>
    <xs:complexType name="variablesType">
    <xs:sequence>
    <xs:element type="xs:string" name="form.id"/>
    <xs:element type="xs:string" name="form.type"/>
    <xs:element type="xs:string" name="form.type_id"/>
    <xs:element type="xs:string" name="form.type_name"/>
    <xs:element type="xs:string" name="form.xslt"/>
    <xs:element type="xs:string" name="t_comment"/>
    <xs:element type="xs:string" name="t_input"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.wildom.com/neaddfel/2612" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="variables" type="ns:variablesType" xmlns:ns="http://www.wildom.com/neaddfel/2612"/>
    <xs:complexType name="folder_form_2614Type">
    <xs:sequence>
    <xs:element ref="ns:variables" xmlns:ns="http://www.wildom.com/neaddfel/2614"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="variablesType">
    <xs:sequence>
    <xs:element type="ns:folder_form_2613Type" name="folder_form_2613" xmlns:ns="http://www.wildom.com/neaddfel/2612"/>
    <xs:element type="ns:folder_form_2614Type" name="folder_form_2614" xmlns:ns="http://www.wildom.com/neaddfel/2612"/>
    <xs:element type="xs:string" name="folder.company_address_city"/>
    <xs:element type="xs:string" name="folder.company_address_id"/>
    <xs:element type="xs:string" name="folder.company_address_zip"/>
    <xs:element type="xs:string" name="folder.company_id"/>
    <xs:element type="xs:string" name="folder.company_name"/>
    <xs:element type="xs:string" name="folder.hir_id"/>
    <xs:element type="xs:string" name="folder.id"/>
    <xs:element type="xs:string" name="folder.type_id"/>
    <xs:element type="xs:string" name="folder.type_name"/>
    <xs:element type="xs:string" name="folder.userid"/>
    <xs:element type="xs:string" name="folder.username"/>
    <xs:element type="xs:string" name="folder.xslt"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="folder_form_2613Type">
    <xs:sequence>
    <xs:element ref="ns:variables" xmlns:ns="http://www.wildom.com/neaddfel/2613"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    As you can see, the last xsd only refers to the "variables" element in the first two.
    When I register this xsd with:
    DBMS_XMLSCHEMA.RegisterSchema(schemaurl=>'http://www.wildom.com/neaddfel/2612',schemadoc=>acctschema,local=>false,gentypes=>true,genbean=>FALSE,gentables=>true,force=>false,owner=>'neaddfel_xml');
    I've got the error:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00023: unknown namespace URI "http://www.wildom.com/neaddfel/2614"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 35
    Is there any way to tell to XDB to use the first two xsd? I would like to store the contained xmls in the tables generated by the registration of the first two xsds.
    I think I need a registerschema syntax that accepts multiple source xsd schemaurls...
    Like in some validation APIs where one can define multiple xsds to validate the xml against...
    Any idea?
    TIA: gviczai

    Normally when you get an error like " "unknown namespace URI" during schema registration " you encountered one of the following issues:
    - The namespace is not registered in the XMLDB repository
    - The namespace is registered, but can not be found on the referred location
    - The namespace is registered, but you don't have the needed privileges to call it
    - You refer to an URI outside the database, which is not allowed (URI's must be registered in the repository)

  • Performance issues with respect scheme registration,select & insert query

    I am facing performance issues with respect to schema registration,Select & insert query towards 10.2.0.3 version.It is taking around 45 minutes to register schema and it is taking around 5 min to insert a single document into xml db where as it was taking less than min to insert a single document into xml db of 9.2.0.6 version.Would like to know the issue and solution to resolve this issue.Please help me out on this as it is very urgent for me

    Since it appears that this is an XML DB specific question, you're probably better off posting in the XML DB. The folks over there have much more experience with the ins and outs of that particular product.
    Justin

  • Xml schema validation problem

    Hi All
    How to tackle this xml schema validation problem
    i am using the sample code provided by ORacle technet for xml
    schema validation in the Oracle database(817).
    The sample code works perfectly fine.
    Sample as provided by http://otn.oracle.com/tech/xml/xdk_sample/archive/xdksample_093001.zip.
    It works fine for normal xml files validated against
    xml schema (xsd)
    but in this case my validation is failing . Can you let me know why
    I have this main schema
    Comany.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.company.org"
    xmlns="http://www.company.org"
    elementFormDefault="qualified">
    <xsd:include schemaLocation="Person.xsd"/>
    <xsd:include schemaLocation="Product.xsd"/>
    <xsd:element name="Company">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Person" type="PersonType" maxOccurs="unbounded"/>
    <xsd:element name="Product" type="ProductType" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    ================
    which includes the following 2 schemas
    Product.xsd
    ============
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="ProductType">
    <xsd:sequence>
    <xsd:element name="Type" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    ==============
    Person.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="PersonType">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="SSN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    =================
    now when i try to validate a xml file against Company.xsd
    it throws an error saying unable to find Person.xsd.
    no protocol error
    Now where do i place these 2 schemas(.xsd files) Person & product
    so that the java schemavalidation program running inside Oracle
    database can locate these files
    Rgrds
    Sushant

    Hi Jinyu
    This is the java code loaded in the database using loadjava called by a wrapper oracle stored procedure
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import java.net.*;
    import java.io.*;
    import org.w3c.dom.*;
    import java.util.*;
    import oracle.sql.CHAR;
    import java.sql.SQLException;
    public class SchemaUtil
    public static String validation(CHAR xml, CHAR xsd)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    byte [] docbytes = xsd.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream(docbytes);
    XMLSchema schemadoc = (XMLSchema)builder.build(in,null);
    //Parse the input XML document with Schema Validation
    docbytes = xml.getBytes();
    in = new ByteArrayInputStream(docbytes);
    DOMParser dp = new DOMParser();
    // Set Schema Object for Validation
    dp.setXMLSchema(schemadoc);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setPreserveWhitespace (true);
    StringWriter sw = new StringWriter();
    dp.setErrorStream (new PrintWriter(sw));
    try
    dp.parse (in);
    sw.write("The input XML parsed without errors.\n");
    catch (XMLParseException pe)
    sw.write("Parser Exception: " + pe.getMessage());
    catch (Exception e)
    sw.write("NonParserException: " + e.getMessage());
    return sw.toString();
    This is the code i used initially for validating a xml file against single xml schema (.xsd) file
    In the above code could u tell how to specify the second schema validation code for the incoming xml.
    say i create another Schemadoc for the 2nd xml schema.
    something like this with another parameter(CHAR xsd1) passing to the method
    byte [] docbytes1 = xsd1.getBytes();
    ByteArrayInputStream in1 = new ByteArrayInputStream(docbytes1);
    XMLSchema schemadoc1 = (XMLSchema)builder.build(in1,null);
    DOMParser dp = new DOMParser();
    How to set for the 2nd xml schema validation in the above code or can i combine 2 xml schemas.
    How to go about it
    Rgrds
    Sushant

  • Cisco 9951 and cucme registration problem

    Hi Everybody
    I am trying to register a cisco 9951 phone to a cucme. The phone was previosly connected and registered to a cucm 9.1, now it must be registered in the cucme. The problem is that the status messages of the phone show that the phone has 9.3(2) firmware version and the cucme has 9.2(1) sip9951.9-2-2SR1-9.loads. It means that the phone has a higher version than the version in the router flash (cucme).
    I tryed tod download a newer cucme file-set but the last version available in cisco.com is the 10.0 and it has the sip9951.9-2-2SR1-9.loads file which is still older than the version in the phone. So the phone doesnt register.
    I follow step by step the instructions to configure and register ip sip phones to cucme. but I am stock.
    here is the configuration:voice register global
     mode cme
     source-address X.X.6.54 port 5060
     max-dn 10
     max-pool 5
     load 9951 sip9951.9-2-2SR1-9
     timezone 42
     tftp-path flash:
     create profile sync 0001184550824421
     camera
     video
    voice register dn  1
     number 4002
     name SIPPhone 2
    voice register pool  1
     id mac 501C.BFFC.DD85
     type 9951
     number 1 dn 1
     username nico password 12345
     description +571344002
     camera
     video
    tftp-server flash:Phones/9951/dkern9951.100609R2-9-2-2SR1-9.sebn alias dkern9951.100609R2-9-2-2SR1-9.sebn
    tftp-server flash:Phones/9951/kern9951.9-2-2SR1-9.sebn alias kern9951.9-2-2SR1-9.sebn
    tftp-server flash:Phones/9951/rootfs9951.9-2-2SR1-9.sebn alias rootfs9951.9-2-2SR1-9.sebn
    tftp-server flash:Phones/9951/sboot9951.031610R1-9-2-2SR1-9.sebn alias sboot9951.031610R1-9-2-2SR1-9.sebn
    tftp-server flash:Phones/9951/sip9951.9-2-2SR1-9.loads alias sip9951.9-2-2SR1-9.loads
    tftp-server flash:Phones/9951/skern9951.022809R2-9-2-2SR1-9.sebn alias skern9951.022809R2-9-2-2SR1-9.sebn
    the status mesages on the phone say:
    Upgrade rejected: HW compat failure. Must use 9.3(2) or later release on this phone
    Error updating locale
    It still shows:
    File not found United_States/g4tones.xml
    File not found SIP_English_United_States/ik-sip.jar
    Those files tha the phone doesnt find are in the cucm 9.1. I tryed to put them in the flash and configured the tftp-server command and I also downloaded the 9.3(2) from the cucm and copied to the router flash, but it still has registrations problems.
    I also tryed to reset the phone to the factory defaults but this sequence with # key and 123456789*0# doesnt aply to sip phones and the procedure of the following link still doesnt work:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/9971_9951_8961/10_0/english/adminguide/P567_BK_A27DADFD_00_adminguide-8961-9951-9971-10_0/P567_BK_A27DADFD_00_adminguide-8961-9951-9971-10_0_chapter_010100.html
    Please help me with this issue.
    Best regards

    Hi Sayeed,
    Can you please send accross SIP messages when phone is trying to register with CME ?
    Thanks
    Manish

  • Schema registration for storing XML documents in XMLDB repository

    Hi,
    Can I store only the XMLSchema based documents in the XMLDB repository?.Cant I save documnts which do not have a schema?.
    Thanks in advance,
    Sirisha.

    Testing with 10.1.0.3.0 I get
    SQL*Plus: Release 10.1.0.3.0 - Production on Thu Sep 16 23:53:30 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> spool registerSchema_&4..log
    SQL> set trimspool on
    SQL> connect &1/&2
    Connected.
    SQL> --
    SQL> declare
    2 result boolean;
    3 begin
    4 result := dbms_xdb.createResource('/home/&1/xsd/&4',
    5 bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
    6 end;
    7 /
    old 4: result := dbms_xdb.createResource('/home/&1/xsd/&4',
    new 4: result := dbms_xdb.createResource('/home/OTNTEST/xsd/pdbx.xsd',
    old 5: bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
    new 5: bfilename(USER,'pdbx.xsd'),nls_charset_id('AL32UTF8'));
    PL/SQL procedure successfully completed.
    SQL> commit
    2 /
    Commit complete.
    SQL> alter session set events='31098 trace name context forever'
    2 /
    Session altered.
    SQL> begin
    2 dbms_xmlschema.registerSchema
    3 (
    4 schemaURL => '&3',
    5 schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
    6 local => TRUE,
    7 genTypes => TRUE,
    8 genBean => FALSE,
    9 genTables => &5
    10 );
    11 end;
    12 /
    old 4: schemaURL => '&3',
    new 4: schemaURL => 'pdbx.xsd',
    old 5: schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
    new 5: schemaDoc => xdbURIType('/home/OTNTEST/xsd/pdbx.xsd').getClob(),
    old 9: genTables => &5
    new 9: genTables => TRUE
    begin
    ERROR at line 1:
    ORA-31084: error while creating table "OTNTEST"."datablock1708_TAB" for element
    "datablock"
    ORA-01792: maximum number of columns in a table or view is 1000
    ORA-02310: exceeded maximum number of allowable columns in table
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 17
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $
    This issue is dealt with in
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/xdb03usg.htm#sthref181
    See the section working with large XML Schemas

  • Error while trying to use BFILENAME during schema registration

    Hi,
    I'm having difficulty in understanding the BFILENAME function while trying to register a schema. The schema is physically present in the following location
    USERNAME: WEBUSER
    LOCATION: XML Schemas ---> MyHeaderSchema.xsd
    And I'm trying to register it as follows:
    declare
    V_XML_SCHEMA XMLTYPE := XMLType(BFILENAME('WEBUSER','MyHeaderSchema.xsd'),nls_charset_id('AL32UTF8'));
    begin
    DBMS_XMLSCHEMA.registerSchema
    SCHEMAURL => 'http://my.schemas.com/header.xsd',
    SCHEMADOC => V_XML_SCHEMA,
    LOCAL => TRUE,
    GENBEAN => FALSE,
    GENTYPES => TRUE,
    GENTABLES => FALSE,
    ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    end;
    I get the error:
    Error report:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 2
    22285. 00000 - "non-existent directory or file for %s operation"
    *Cause:    Attempted to access a directory that does not exist, or attempted
    to access a file in a directory that does not exist.
    *Action:   Ensure that a system object corresponding to the specified
    directory exists in the database dictionary, or
    make sure the name is correct.
    Can you please help?

    I was curious if there was already some functionality in SQL Developer I might have missed. So I checked. Apparently SQL Developer still doesn't have any functionality to support XML Schema's in / for XMLDB (I keep them asking, but anyway).
    So an XML Schema is just treated as plain text. Still.
    However, the following worked for me. Is there a difference if I use XDBURIType Vs BFILENAME and do a getBLOB() Vs XMLType?XDBUriType is part of the URIType factory functionality and in this case, XDBUritype enables you to get the content stored out of the XDB Repository
    BFileName give you the possibility to get your content from the server via a BFile locator construct
    getBLOB is an operator on xdburitype and converts the uritype datatype into binary LOB datatype
    XMLType is the datatype that should be used for XML content
    If you use GENTYPES => TRUE then during registration via using DBMS_XMLSCHEMA objects and types will be created to "represent" the "format" of the XML defined by the XML Schema.

  • XML Schema registration error

    We installed XMLDB on Oracle Server Enterprise Edition 9.2.0.3 (AIX 4.3 version).
    The status from DBA_REGISTRY for Oracle XML DB is VALID.
    When trying to register schema, we get following error:
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 12
    ORA-06512: at line 35
    Here are the steps:
    1. Connect as SYS
    2. grant xdbadmin to wb_interface;
    3. connect as wb_interface;
    4. Try to register schema as follows
    declare
    doc varchar2(1000) := '&lt;schema
    targetNamespace="http://www.oracle.com/PO.xsd"
    xmlns:po="http://www.oracle.com/PO.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;complexType name="PurchaseOrderType"&gt;
    &lt;sequence&gt;
    &lt;element name="PONum" type="decimal"/&gt;
    &lt;element name="Company"&gt;
    &lt;simpleType&gt;
    &lt;restriction base="string"&gt;
    &lt;maxLength value="100"/&gt;
    &lt;/restriction&gt;
    &lt;/simpleType&gt;
    &lt;/element&gt;
    &lt;element name="Item" maxOccurs="1000"&gt;
    &lt;complexType&gt;
    &lt;sequence&gt;
    &lt;element name="Part"&gt;
    &lt;simpleType&gt;
    &lt;restriction base="string"&gt;
    &lt;maxLength value="1000"/&gt;
    &lt;/restriction&gt;
    &lt;/simpleType&gt;
    &lt;/element&gt;
    &lt;element name="Price" type="float"/&gt;
    &lt;/sequence&gt;
    &lt;/complexType&gt;
    &lt;/element&gt;
    &lt;/sequence&gt;
    &lt;/complexType&gt;
    &lt;element name="PurchaseOrder" type="po:PurchaseOrderType"/&gt;
    &lt;/schema&gt;';
    begin
    dbms_xmlschema.registerSchema('http://www.oracle.com/PO.xsd', doc);
    end;
    Please Help!!!

    check if the user already has the following privileges.
    CREATE SESSION
    CREATE TABLE
    CREATE TRIGGER
    CREATE TYPE
    ALTER SESSION
    Else grant them.
    The problem only comes when use do this in pl/sql.
    here is a work around example.
    create or replace function get_xml_data return varchar2 is
    doc varchar2(1000) := '<schema
    targetNamespace="http://www.oracle.com/PO.xsd"
    xmlns:po="http://www.oracle.com/PO.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="PurchaseOrderType">
    <sequence>
    <element name="PONum" type="decimal"/>
    <element name="Company">
    <simpleType>
    <restriction base="string">
    <maxLength value="100"/>
    </restriction>
    </simpleType>
    </element>
    <element name="Item" maxOccurs="1000">
    <complexType>
    <sequence>
    <element name="Part">
    <simpleType>
    <restriction base="string">
    <maxLength value="1000"/>
    </restriction>
    </simpleType>
    </element>
    <element name="Price" type="float"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <element name="PurchaseOrder" type="po:PurchaseOrderType"/>
    </schema>';
    begin
    return doc;
    end;
    exec dbms_xmlschema.registerSchema('http://www.oracle.com/PO.xsd', get_xml_data);
    good luck.

  • LMS application registration problem

    Hi,
    I have a problem with the application registration of Campus Manager 5.2.1 under LMS 3.2.
    Right now in the "Functional" tab of the LMS portal the "Campus Manager" view is empty.
    In "Common Services" - "Server" - "Home Page Admin" - "Application Registration" Campus Manager is missing in the list of registered applications.
    I can connect to the Campus Manager using the direct link http://<servername>:1741/campus/adminIntro.do.
    The "CM" tab on the LMS portal page works.
    I tried to register it this way:
    In the CS Homepage Admin I click on "Register" - "Register from Templates" - "Next"
    Then I get the list of templates. I select "Campus Manager" - "Next".
    I enter these values:
    Server name: fully qualified name of the server
    Server Display Name: hostname of the server
    Port: 1741
    Protocol: http
    When I click on "Next" - "Finish" the Campus Manager is not added to the list of registered application and I get no error message.
    Did I enter wrong values? Where can I find corresponding log/debug messages?

    It sounds like the CMIC database may be corrupt.  There is a process to recover this, but it's somewhat complicated.  If you open a TAC service request, your engineer can walk you through the process.  This will clear out the CMIC database and reregister all applications.  That should sort you out.

  • HP Officejet Pro L7780 - Registration Problem

    I downloaded and installed the full software for the HP Officejet Pro L7780.  When the software asks to be registered and I put in the printer and the search comes back 0.  I have tried the name and the product number and still keep getting the same result 0.  When I hit enter, the registration goes away and I have this running on my computer.  I can't seem to get it to complete.  Please tell me there is a simply solution to this.  Thanks
    This question was solved.
    View Solution.

    I fixed the problem by terminating the process and everything is right with the world.

  • Product registration problems

    with respect,
    hello, im am charlie, I just bought a macbook pro 15 "on 01-july-2011 in eStore authorized resellers in Indonesia with no series" W8050XXXXXX "and register the product. until now dated 04-july-2011 and I did not receive a confirmation e-mail that the macbook pro 15 "I have been registered.
    and if I check on https://selfsolve.apple.com/agreementWarrantyDynamic.do
    it will look something like this:
    "Please register your product
    Apple is Unable to Provide information about your service coverage. Please sign in with your Apple ID and Provide your product's date of purchase so That We Can display your coverage information. "
    and if I continue to fill in the date of purchase then it would appear are like this:
    "We're sorry, but We Are Unable to register your product with That purchase date. To complete registration, please submit your proof of purchase.
    Your warranty is the same whether or not you register. See your service options "
    so, what should I do?
    please help for this problem quickly resolved perfectly.
    Charlie
    Indonesia

    not like that, because of its web interface written in day / month / year
    so what should I do? Anyone know the email contact apple is concernedwith thisproblem?

  • Schema validation problem

    I am validating an XML document using an XML Schema.
    I tested my valadation program out on my computer (Window 2000) and everything seem to be going well.
    When i deploy my application (stand-alone) onto another desktop (through Terminal Service...I receive the following error message:
    SAXException: cvc-elt.1: Cannot find the declaration of element 'Book'.
    I also display the xml string to see what's wrong with th exml string....but couldn't find anything.:
    <Book><Title>Hello World</Title><AUTHOR>Anom.</AUTHOR></Book>
    The error states that the xml document does not start with (or does not contains th e) Book element..which it does. I'm confused at what could have cause this error message. Since this error cannot be reproduce at my computer.

    fixed the problem. i should have listen to you in the first place.
    the schema file was not found on the other machine..there was some relative path issues (where the application was started [working directory]). apparently..the application started in a different directory..so th epath relative to the current directory is different than the where i start the app on my computer.

  • Ccmsping registration problem in Solution manager

    hi,
    I am installing CCMSPING agent to check "System Availability" from Solution Manager.
    In our system ladscape we have multiple systems on sigle host. for eg) TP7 & DW1 on single host cpafisb8.
    I have successfully registered the CCMSPING agent in Solman.
    I have followed the Availability doc for registeration CCMSPING. Following are the major steps that i have done:
    1)Download & extract CCMSAGENT from market place.
    2)Configuration of Central Monitoring system.
    3)Registration of CCMSPING using command u201Cccmsping -push -Ru201D.
    4)Configured Availability Monitoring in Central System (i.e. Solution Manager) in RZ21.
    As result i can see the stellite sytem node in RZ20 under         " SAP CCMS Monitor Templates-->Availability and Performance Overview".
    When i go to transaction "solman_workcenter" in tab "System Landscape management", i can see the staus of system as Green for the system i registered.
    Now, the problem i facing in in transaction solman_workcenter is described as follows:
    As i mentioned We have multiple systems on single host, for eg) TP7 & DW1 are on the same host "cpafisb8",
    hence if CCMSPING has been registered for TP7 the status is green for DW1 too even if DW1 has no entry in RZ21.
    Strange thing is DW1 was showing.
    I have tried following three options to make the status correct in solman_workcenter:
    1) I have maintained hostname for TP7 as "TP7.afis.chevrontexaco.net" which is alias for
    hostname cpafisb8 in RZ21 & SMSY & status is correctly showing green for TP7 but still for DW1 which is not defined in RZ21, status is showing green.
    2)I have unregistered the CCMSPING fron TP7. TP7 status has been changed to gray but strange thing happeneing was DW1 status was still green even no ccmsping process was running on the DW1 host.
    3)I have registered the CCMSPING for TP7 with its central instance profile options using command:
    ccmsping -R -push -n31 pf=/usr/chevron/TP7/profile/TP7_DVEBMGS31_cpafisb8
    and agin configured TP7 in solution manager & status changed gray to green for TP7, but no change happening in DW1 status.
    Can anyone please help on this strange behavior of Solman_workcenter.

    Hi,
    Thanks for he reply..
    But i have already followed the process that you described or CCMSPING registration. and CCMSPING is transfering the data successully from satellite system to solution manger.
    And as result of successul registration i can see the status of that satellite system as green in transaction "solman_workcenter".
    But as i described earlier we have multiple systems registered on single host.for eg)SY1 & SY2 on host1
    Hence even though the CCMSPING is not registred for SY2 & only registered or SY1 on host1 with RZ21 configuration in solution manager for SY1; SY2 status is also shown green in transaction solman_workcenter.
    I want that only status of SY1 should be shown as green in solution manger under transaction "solman_workcenter".
    I hope you understood the issue.
    thanks

  • Registration problems using itunes Music Card

    Hi - anyone out there having a problem registering with a music card? Seems music store has acknowledged redemption of card but will not allow registration because payment field demands credit card details which, naturally,I don't want to give!
    Also support says there is a "None" button in payment field to indicate no credit card because you want to use a music card but when I register there is no such button!
    Could my problem have been caused because I redeemed the music card BEFORE registering for an account?
    Have sent an inquiry e-mail to iTunes but thought someone out there might be able to help out a bit quicker! Thanks

    You redeem a card one time only.  The entire amount is then transferred to the account that redeemed it.  The card is of no use after this.  The credit has beenr edeemed.  it does not stay on the card at all.

Maybe you are looking for

  • New Macbook Pro 2014 for Gaming / casual use

    Hello there! I currently have a 2011 13" Macbook Pro with Intel HD Graphics 3000 512 MB 16GB RAM 500GB Harddrive and a 2.4 GHz Intel Core i5 I really like to play video games but with this current setup ^ its very sluggish and I get very low FPS I'm

  • MacBook Pro 8,2 - Enabling Intel GPU results in blank screen

    I am trying to install Arch on my MacBook Pro 8,2.  I've followed the wiki page, and I should note that I have successfully installed Arch on here before (about 4 months ago) and it worked then.  However, this time I have made several attempts and fa

  • How can I transfer entire contents of Mail mailbox from one Mac to another?

    I've long wondered how to do this: I have two Macs - an iMac and a MacBook Pro. I have categorized several hundred emails on the MacBook into a separate "mailbox" by itself. Let's just call it "Project XYZ emails" for the sake of discussion. I need t

  • IOS 5 camera feature help

    Hi. Does anyone know how to get that quick access button to the camera app on the lock screen for the new iOS 5 update?

  • Automatic Service Settings

    Hi The company I'm working for recently bought an XServe and I and a co-worker had the job to set it up. Almost everything went well and we are about to migrate everybody (about 30 employes) into using this new server. However, there are things we wo