XDB annotations on complex XML schema

I'm testing this 11 GR 2 Express, while I wait for our DBA upgrade our main instance of AIX dev to GR 11, 2 enterprise edition.

I have a fairly complex xmlschema, provided by the IPTC and trying to annotate to replace some of the mappings by default sqltype, but running to problems with how/where to annotate.

Of what I have learned so far, annotations to replace possible sqltype only mappings on complexType and simpleTypes. ComplexTypes must correspond to a sql object type and simpleTypes map based sqlType atomic.

How might you have an instance where a complex type extends a XS: String... but the need to have this channel map to a CLOB and not a varchar2 (4000)?
<xs:element name="inlineData">
                                                  <xs:annotation>
                                                       <xs:documentation>A rendition of the content using plain-text or encoded inline data</xs:documentation>
                                                  </xs:annotation>
                                                  <xs:complexType>
                                                       <xs:simpleContent>
                                                            <xs:extension base="xs:string">
                                                                 <xs:attributeGroup ref="newsContentAttributes" />
                                                                 <xs:attributeGroup ref="newsContentTypeAttributes" />
                                                                 <xs:attribute name="encoding" type="QCodeType">
                                                                      <xs:annotation>
                                                                           <xs:documentation>The encoding applied to the content before inclusion</xs:documentation>
                                                                      </xs:annotation>
                                                                 </xs:attribute>
                                                                 <xs:attributeGroup ref="newsContentCharacteristics" />
                                                                 <xs:attributeGroup ref="i18nAttributes" />
                                                                 <xs:anyAttribute namespace="##other" processContents="lax" />
                                                            </xs:extension>
                                                       </xs:simpleContent>
                                                  </xs:complexType>
                                             </xs:element>
Adding the xdb: annotation of mapUnboundedStringToLob to the item "inlineData" fails... invalid... and it cannot add to the extension is... If a viable option of valid in this case, would be to create a simpleType, call it say "LargeStringToClob" with a restriction of the type xs: String... and then annotate this simpleType to map to a CLOB.

Then change the extension of the element inlineData of XS: String to 'LargeStringToClob '? I intend to use a column of XMLType BinaryXML storage...

I was hoping not to have to change the xml schema too, but I guess its to be expected when you try to map in Oracle.

I am facing a similar problem trying to annotate timestamp with time zone...

some items are reported as unions of other types. What I've read, Oracle cards to varchar2 (4000)

Example:
<xs:simpleType name="DateOptTimeType">
          <xs:annotation>
               <xs:documentation>The type of a date (required) and a time (optional).</xs:documentation>
          </xs:annotation>
          <xs:union memberTypes="xs:date xs:dateTime" />
     </xs:simpleType>
Even if it is a simpleType. I can't annotate to map to a TimeStamp with time zone... I should again... simpleTypes to create for each of the memberTypes in the union, annotate each of them to the card at Timestampt with time zone... then use these new simpleTypes in the union?

Thanks for tips or advice!

so if you use binary XML, you are stuck with what Oracle gives you? for example, the inlineData element is a string without terminals in the schema... Oracle maps to varchar2 (4000).

No, binary XML stores data differently.

Consider this simple example:

SQL> begin
  2   dbms_xmlschema.registerSchema(
  3   schemaURL => 'test.xsd',
  4   schemaDoc => '
  5  
  6  
  7    
  8      
  9        
 10        
 11      
 12    
 13  
 14  ',
 15   local => true,
 16   genTypes => false,
 17   genTables => false,
 18   enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE,
 19   options => dbms_xmlschema.REGISTER_BINARYXML
 20   );
 21  end;
 22  /

PL/SQL procedure successfully completed

SQL> CREATE TABLE notes_table OF XMLTYPE
  2  XMLTYPE STORE AS binary xml
  3  XMLSCHEMA "test.xsd"
  4  ELEMENT "note"
  5  ;

Table created

SQL> insert into notes_table values(xmltype(
  2  '
  3  '||lpad(to_clob('X'),8000,'X')||'
  4  
2011-11-16T11:56:23+01:00
5
')); 1 row inserted SQL> select x.dt 2 , x.content 3 , length(x.content) 4 from notes_table t 5 , xmltable('/note' passing t.object_value 6 columns dt timestamp with time zone path 'dt' 7 , content clob path 'content' 8 ) x 9 ; DT CONTENT LENGTH(X.CONTENT) --------------------------------- -------------------------------------------------------------------------------- ----------------- 16/11/11 11:56:23,000000 +01:00 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 8000

No problem by storing large chains.

Tags: Database

Similar Questions

  • ORA-00600 when saving an XML schema

    Hi all, my situation: when saving a schema, the following error message appears:

    [ORA-00600: internal error code, arguments: [qmtsGetCompilationContext1], [], [], [], [], [], []]
    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

    I am on a test computer, laptop with Windows XP 32-bit and Oracle 10.2.0.4.0
    The command is:
    BEGIN
    DBMS_XMLSCHEMA.registerSchema (SCHEMAURL = > 'http://hl7.ifc.cnr.it/hl7/schemas/CDAR2/infrastructure/cda/POCD_MT000040.xsd',)
    SCHEMADOC = > BFILENAME ("DATA_PUMP_DIR', 'POCD_MT000040.xsd'),
    CSID = > NLS_CHARSET_ID ("AL32UTF8'));
    END;

    The diagram includes various include files, and it's quite 87K.

    Thank you to everyone,
    Fabrizio

    There are a few known bugs associated with it. It is usually related to the schemas with complex cyclic dependencies (for example a b imported, imports imports c and c a b). Some of them are set at 11.1.x, you can see if your drawings with sign up. A bug that comes to mind is 5038284, which is fixed at 11.1 and has been backported to 10.2.0.4.0. You will probably need to open a tar and provide all of the XML schemas to determine if this fix solves your problem and ask a rear port.

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • How to create the default column in XML schema?

    Hi all

    I would like to define a default column Let's say Run_Date as Date data type in XML (XSD) schema definition and would fill column Run_Date SYSDATE, when XML documents are parsed to this schema.
    Let me know, how can we achieve?

    Thanks in advance.

    Also, I can not change the contents of the XML file, because it is generated by another language, but I can change the definition of XML schema, if necessary.

    Well, if you can not change the XML instance, you cannot change the schema, it conforms to the.
    You can add an optional attribute whose value by default, but we can only use a static value.

    How do you insert the file into the table?

  • If you programmatically, via an INSERT statement, then I think your best bet is to create a new table with a relational schema XMLType column and a DATE column:

    CREATE TABLE employees (
      dt_created date default sysdate not null
    , xmldoc     xmltype
    , CONSTRAINT emp_pk PRIMARY KEY (xmldoc."XMLDATA".EMP_NO)
    )
    XMLTYPE COLUMN xmldoc STORE AS OBJECT RELATIONAL
    XMLSCHEMA "EMP.xsd" ELEMENT "Emp" ;
    

    If you choose to do so, remove the XML schema and enter it again with "genTables-online false."

  • If you have inserted the file via the XDB (FTP, WebDAV, createResource) repository and relying on the table by default feature, then you may be out of luck.
    There is probably a way to tamper with the underlying structure of GOLD among a hidden column do accept a default value, but since it is not supported I won't even try.

  • XML schema to generate data from the table of data from a repeating subform

    Hi all, I would like to have a check box that when checked, allows you to hide a quote form and make a purchase order form visible, carrying a part of the field of the form of citation data in a new table on the order form. I have attached to this form to https://workspaces.acrobat.com/?d=pqpsXx5VPi * LkMeVKrX57w if you want to take a look. If the check box is cleared, he hid the PO form and to make quite visible.

    The idea behind this is that my client will create his quote and send t to his client. Once the customer accepts the quote, he simply click a button to generate its purchase order send it to its supplier.

    It seems that I have buttons to add lines on the submission form that the problem is more complex. I would be able to do it myself if the table has a fixed number of lines and I was able to use global fields, and naming each cell something different, but because it's a single repeating subform, I can't operate at all.

    I understand that, because it's a repeating subform that I need to create an XML schema to do this, but also can not know for the life of me how to create the schema. I read tons of tutorials, but no idea how to apply it to my specific needs. I've been able to find only info on how to bind the data source once it's been created.

    I would be eternally grateful if someone could help out me.

    Thank you!

    I edited your form and put it here.

    Here's what I did:

    • Script inserted into your box renamed someone who mask/displays the purchase order / sales quotation
    • I have included a script object with a function I wrote to transfer data from as named fields/subforms from one section to another
    • Inserted a few fields in your table of purchase order

    What you need to do is to complete the development of your purchase order table. Make sure that the common fields between the quote and purchase tables have the same name in order to transfer data.

    No necessary schema.

    Kyle

  • XML Schema

    Hello

    I use the suite of xml schema to generate an XMLType table,
    <?xml version="1.0" encoding="utf-16"?>
    <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:element name="Attorney" type="AttorneyType"/>
       <xsd:complexType name="AttorneyType">
        <xsd:sequence>
          <xsd:element name="Metadata" type="MetadataType" />
          <xsd:element name="Address" type="AddressType" />
          <xsd:element name="Email" type="EmailType" />
          <xsd:element name="Fax" type="FaxType" />
          <xsd:element name="Internet" type="InternetType" />
          <xsd:element name="Name" type="NameType" />
          <xsd:element name="NarrativeText" type="xsd:string" />
          <xsd:element name="Phone" type="PhoneType" />
          <xsd:element name="PracticeArea" type="PracticeAreaType" />
          <xsd:element name="Source" type="SourceType" />
          <xsd:element name="WestProductCategory" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="active" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="SourceType">
        <xsd:sequence>
          <xsd:element name="Dataset" type="xsd:string" />
          <xsd:element name="SourceId" type="xsd:int" />
          <xsd:element name="SourceName" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="PracticeAreaType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="PracticeAreaCode" type="xsd:int" />
          <xsd:element name="TopicalCode" type="xsd:int" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="PhoneType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Number" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="NameType">
        <xsd:sequence>
          <xsd:element name="firstName" type="xsd:string" />
          <xsd:element name="lastName" type="xsd:string" />
          <xsd:element name="middleName" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="InternetType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Url" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="FaxType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Number" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="EmailType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Url" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="AddressType">
        <xsd:sequence>
          <xsd:element name="City" type="xsd:string" />
          <xsd:element name="Country" type="xsd:string" />
          <xsd:element name="Line" type="xsd:string" />
          <xsd:element name="State" type="xsd:string" />
          <xsd:element name="Zip" type="xsd:int" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="MetadataType">
        <xsd:sequence>
          <xsd:element name="CreatedTS" type="xsd:decimal" />
          <xsd:element name="Deceased" type="xsd:boolean" />
          <xsd:element name="DirectoryType" type="xsd:int" />
          <xsd:element name="Disbarred" type="xsd:boolean" />
          <xsd:element name="EntityInstanceUuid" type="xsd:string" />
          <xsd:element name="EntityType" type="xsd:string" />
          <xsd:element name="FamilyUuid" type="xsd:string" />
          <xsd:element name="FirmSite" type="xsd:string" />
          <xsd:element name="ImageID" type="xsd:string" />
          <xsd:element name="MemberAssociations" type="xsd:string" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedTS" type="xsd:decimal" />
          <xsd:element name="OrgType" type="xsd:string" />
          <xsd:element name="OrgUuids" type="xsd:string" />
          <xsd:element name="Organization" type="xsd:string" />
          <xsd:element name="Practicing" type="xsd:boolean" />
          <xsd:element name="ProfileUuid" type="xsd:string" />
          <xsd:element name="Retired" type="xsd:boolean" />
          <xsd:element name="Role" type="xsd:string" />
          <xsd:element name="Type" type="xsd:string" />
          <xsd:element name="Uuid" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
    Here is the XML that I intend to generate
    <Attorney active="true">
      <Metadata>
        <CreatedTS>1198773095000</CreatedTS>
        <Deceased>false</Deceased>
        <DirectoryType>1</DirectoryType>
        <Disbarred>false</Disbarred>
        <EntityInstanceUuid>
        I1ccc6d800cbb11dd86d5f687b7443f19</EntityInstanceUuid>
        <EntityType>ACTRESS</EntityType>
        <FamilyUuid>Ia5958e30ca6111d8b6ca908fe47590bb</FamilyUuid>
        <FirmSite></FirmSite>
        <ImageID></ImageID>
        <MemberAssociations></MemberAssociations>
        <ModifiedBy>Bermuda</ModifiedBy>
        <ModifiedTS>1208463367255</ModifiedTS>
        <OrgType></OrgType>
        <OrgUuids></OrgUuids>
        <Organization></Organization>
        <Practicing>true</Practicing>
        <ProfileUuid>I1e3bd97e1dd211b2af25f90092082940</ProfileUuid>
        <Retired>false</Retired>
        <Role>US Private Practice</Role>
        <Type>ATTORNEY</Type>
        <Uuid>I1ccc6d800cbb11dd86d5f687b7443f19</Uuid>
      </Metadata>
      <Address new="false">
        <City>California</City>
        <Country>United States of America</Country>
        <Line>100 Wall Street</Line>
        <State>CA</State>
        <Zip>10005</Zip>
      </Address>
      <Email new="false">
        <Description>Email Address</Description>
        <Notes>Email Address</Notes>
        <Url>[email protected]</Url>
      </Email>
      <Fax new="false">
        <Description>Fax Number</Description>
        <Notes>Fax Number</Notes>
        <Number>(212) 687-0659</Number>
      </Fax>
      <Internet new="false">
        <Description>Internet URL</Description>
        <Notes>Internet URL</Notes>
        <Url>http://www.harrisbeach.com</Url>
      </Internet>
      <Name new="false">
        <firstName>Katrina</firstName>
        <lastName>Kaif</lastName>
        <middleName>T</middleName>
      </Name>
      <NarrativeText>Katrina Kaif (born Katrina Turquotte on 16 July
      1984) is a British Indian actress and model who has appeared in
      Bollywood, Telugu and Malayalam films.</NarrativeText>
      <Phone new="false">
        <Description>Phone Number</Description>
        <Notes>Phone Number</Notes>
        <Number>(212) 313-5439</Number>
      </Phone>
      <PracticeArea new="false">
        <Description>Litigation Appeals</Description>
        <PracticeAreaCode>934</PracticeAreaCode>
        <TopicalCode>934</TopicalCode>
      </PracticeArea>
      <Source>
        <Dataset>release-5-old</Dataset>
        <SourceId>0337159902</SourceId>
        <SourceName>WLD</SourceName>
      </Source>
      <WestProductCategory></WestProductCategory>
    </Attorney>
    The schema gets registered without any error but when I try to create the table using the xml schema, I get the following error.
    ORA-19003 : Missing XML root element name
    I checked the pattern several times. Everything seems to go well with the schema, or I'm missing something.

    Please help me to identify the problem.

    Thank you.

    Hello

    It works fine for me, using the following statement:

    CREATE TABLE test_table OF XMLTYPE
     XMLTYPE STORE AS OBJECT RELATIONAL
     XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/DEV/test_otn.xsd"
     ELEMENT "Attorney";
    

    where 'test_otn.xsd' is the XML schema you provided.

    Could you post the statement you are running?

  • Error during xml schema register

    Hello
    I am trying to register as a result of xml schema,

    BEGIN
    () dbms_xmlschema.registerSchema
    "ocastatus.xsd,"
    ' <? XML version = "1.0"? >
    < xsd: Schema
    targetNamespace = "http://xmlbeans.apache.org/ocastatus."
    xmlns = "http://xmlbeans.apache.org/ocastatus."
    elementFormDefault = "qualified".
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns:xdb = "http://xmlns.oracle.com/xdb" >
    < xsd: element name = "ocaStatus" type = "OCASTATUS_TYPEType" / >
    < xsd: complexType name = "OCASTATUS_TYPEType" xdb:SQLType = "OCASTATUS_TYPE" >
    < xsd: SEQUENCE >
    < xsd: element name = "status" type = "STATUS_TYPEType" xdb:SQLName = "status" maxOccurs = "unbounded" xdb:SQLCollType = "STATUS_V" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < xsd: complexType name = "STATUS_TYPEType" xdb:SQLType = "STATUS_TYPE" >
    < xsd: SEQUENCE >
    < xsd: element name = "statusCode" type = "xsd: double ' xdb:SQLName = 'statusCode' xdb:SQLType = 'NUMBER' / >
    < xsd: element name = "statusDate' xdb:SQLName = 'statusDate' xdb:SQLType = 'VARCHAR2' >
    < xsd:simpleType >
    < xsd:restriction base = "XSD: String" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "userId" xdb:SQLName = 'userId' xdb:SQLType = 'VARCHAR2' >
    < xsd:simpleType >
    < xsd:restriction base = "XSD: String" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "comment" xdb:SQLName = "comment" xdb:SQLType = "VARCHAR2" >
    < xsd:simpleType >
    < xsd:restriction base = "XSD: String" >
    < xsd:maxLength value = "100" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: Schema > ',
    true,
    true,
    (false);
    END;

    In doing so, I'm following error.

    ORA-20001: enable_hierarchy_internal
    ORA-06512: at "XDB". DBMS_XDBZ', line 28
    ORA-06512: at line 1
    ORA-06512: at "XDB". DBMA_XMLSCHEMA_INT', line 3
    ORA-06512: at "XDB". DBMA_XMLSCHEMA', line 14
    ORA-06512: at line 2

    Provider code error 20001 on line: 1

    I have no idea about this error. I don't know if it is related to the privileges of the user.
    The user that I use has privileges, more
    CREATE SESSION
    CREATE TABLE
    CREATE THE CLUSTER
    CREATE SEQUENCES
    CREATE PROCEDURE
    CREATE THE TRIGGER
    CREATE THE TYPE
    OPERATOR TO CREATE
    CREATE INDEXTYPE

    Help, please.

    Thanks in advance.

    Hello

    From a previous post by mdrake.

    Required privileges are:

    Grant create any directory, drop any directory, connect, resources, alter session, create the view & USERNAME identified by PASSWORD &
    /

    HTH,

    Chris

  • I am trying to save the xml schema and get error

    SQL > START
    (2) DBMS_XMLSCHEMA.registerSchema
    3 SCHEMAURL = > "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd"
    4 SCHEMADOC = > bfilename('XMLDIR','fgdc-std-001-1998.dtd'),
    5 CSID = > nls_charset_id ('AL32UTF8'));
    6 END;
    6 N
    BEGIN
    *
    ERROR on line 1:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00247: invalid declaration DTD (Document Type)
    Error on line 45
    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

    the xml code that I am trying register is
    <? XML version = "1.0" encoding = "ISO-8859-1? >
    <! DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd" >
    < metadata >
    < idinfo >
    < quote >
    < citeinfo >
    < source > FDM < / original >
    < pubdate > 20040512 < / pubdate >
    < pubtime > 09000000 < / pubtime >
    < title > BAS_EASEMENT < / title >
    etc.

    Pls help me for the recording of the xml schema.

    If your DTD is valid...

    .. then the following may help...

    Re: conversion of xmltype, error ORA-31011

    See the last comment on this mentioned by Mark Drake

    --
    -- Turn off DTD Validation
    --
    alter session set events ='31156 trace name context forever, level 2
    / 
    
  • Access to the XML schemas from the connection manager?

    The connection manager for a connection opened in version 4 is no longer an 'XML Schémas' icon (Java and XML patterns seem to have been deleted between versions 3 and 4). Is there a definition that can return the XML schemas?

    Using lists yet... »

    XML schemas

    XML schemas are definitions of schema, written in XML, that describe the structure and various other semantics of XML instance documents. For conceptual and information on the use of XML schemas, see the Guide of Oracle XML DB Developer in the Oracle database documentation library.

    You can change an XML schema by right clicking in the connections Navigator XML schema name and selecting open from the menu. You can delete a selected schema by selecting the Drop Schema menu. » ...

    The XML node drawings missing in the connections Navigator is a known issue for the 4.0.1.  The 4.0.2 patch is a fix.

    Regarding the Java node, it seems to me in all versions 4.0.x.  Maybe your Preferences... > Database > Navigation filter turned it off?

    Kind regards
    Gary

    SQL development team

  • In the Studio of BEA WorkSpace XML schema Validation error

    When I validate my XML schemas through the BEA WorkSpace Studio Version: version 1.1: 1090602 identifier the track happens error:

    Reference file contains errors (file:/MyPath/MyXMLSchema1.xsd).
    For more information, click with the right button on the message and select "show details...". »

    See details:
    The below errors were detected during the validation of the 'MyXMLSchema1.xsd' file via the file 'MyXMLSchema2.xsd '.
    In most cases, these errors can be detected by validating 'MyXMLSchema1.xsd' directly.
    However, it is possible that errors occur only when MyXMLSchema1.xsd is posted under MyXMLSchema2.xsd.

    CBC-resolve: could not resolve the name 'srv:Services' component 'type definition' a (e)

    When I validate my XML schemas through the oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) no errors not found.

    My project is a (project ALSB) OSB.

    What is happen?

    BEA WorkSpace Studio Version: version 1.1: 1090602 identifier use xerces bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org.apache.xerces_2.8.0.v200606131651

    oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) use xerces Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org.apache.xerces_2.9.0.v201005080400.jar

    If you replace the follow-up files:
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\resolver.jar
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xercesImpl.jar
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xml-APIs.jar

    for:
    Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org. Apache.xerces_2.9.0.v201005080400.jar

    BEA WorkSpace Studio Version: version 1.1: 1090602 identifier is validated without errors (the same oepe_11gR1PS4 behavior)

  • Cannot export XML schema objects

    Hello

    I have a problem when you attempt to export objects from XML schema.

    I have a data pump job that runs every day, last week, I added a few XML objects to the DB and now the data pump produces the following errors:

    Output

    Export: Release * 10.2.0.3.0 *-64 bit Production on Thursday, April 21, 2011 05:00:01

    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    ;;;
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With the options of partitioning and Data Mining
    Departure 'SYS '. "' SYS_EXPORT_FULL_05 ': ' / * AS SYSDBA" logfile = parallel export_full.log = 12 dumpfile=exp_file%U.dmp full = y filesize = 2000 M
    Current estimation using BLOCKS method...
    Treatment of DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA object type
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application252_TAB ' will be ignored.
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application263_TAB ' will be ignored.
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' tbl_form_data266_TAB ' will be ignored.
    Total estimation using BLOCKS method: 131.8 GB
    Object DATABASE_EXPORT/TABLESPACE of treatment type
    ...

    I read about the error ORA-39139
    It is said the old exp rather than the data pump user to export the XML schema objects

    But when I run

    exp file = my_dump.dmp tables = USER01.application252_TAB

    as / sysdba

    I get the following error:

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With the options of partitioning and Data Mining
    Export in US7ASCII and AL16UTF16 NCHAR character set
    Server uses the character WE8ISO8859P15 (possible character set conversion) set

    About to export specified tables by conventional means...
    EXP-00011: USER01. TBL_FORM_DATA266_TAB does not exist
    Export completed successfully with warnings.


    The table seems to have disappeared from DB.

    EG if I do

    sqlplus USER01/pass
    SQL > desc tbl_form_data266_TAB
    ERROR:
    ORA-04043: tbl_form_data266_TAB of the object does not exist

    Any ideas?

    G.

    Please see:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/exp_imp.htm#CEGFIAGE

    Table name restrictions

    The following restrictions apply to the names of the tables:

    * By default, the names of tables in a database are stored as uppercase. If you have a table in lowercase or lowercase name and you want to retain the respect of the case for the name of the table, you must put the name in quotes. The name must match exactly the name of the table stored in the database.
    Some operating systems require that the quotes on the command line should be preceded by an escape character. Here are examples of how respect for the case can be stored in different modes of export.

    o using the command line:
    TABLES = "------'Emp\'"

    o in interactive mode:
    Table (T) export: "Emp".

    o parameter file:
    TABLES = ""Emp"

  • Invalid XML schema model.

    Hello.
    We try to validate xml on an xml schema, and we saw a few inconsistencies. First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    Example:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    declare
        esquema clob := '<xs:schema attributeFormDefault="unqualified" 
        elementFormDefault="qualified" 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        targetNamespace="http://servicios.mycompany.com/Test" 
        xmlns="http://servicios.mycompany.com/Test">
        <xs:element name="node">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="inner1" type="regType" />
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        <xs:simpleType name="regType">
            <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:pattern value="((\-)?(([0-9])|([0-9][0-9])|([0-9][0-9][0-9]))(\.[0-9][0-9][0-9]){0,4},[0-9][0-9])" />
            </xs:restriction>
        </xs:simpleType>
    </xs:schema>';
    BEGIN   
        DBMS_XMLSCHEMA.DELETESCHEMA
                             ( 'schema.xsd'                                              
                             , DBMS_XMLSCHEMA.DELETE_INVALIDATE 
                             );          
       DBMS_XMLSCHEMA.REGISTERSCHEMA(
         SCHEMAURL => 'schema.xsd',
         SCHEMADOC => esquema,
         LOCAL     => TRUE,
         GENTYPES  => FALSE,
         GENBEAN   => FALSE,
         GENTABLES => FALSE,
         FORCE     => FALSE
         );
    END;
    /
    
    declare
      xmlT clob := '<?xml version="1.0" encoding="utf-8"?>
    <tns:node xmlns:tns="http://servicios.mycompany.com/Test" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         >
        <tns:inner1>75.000,00</tns:inner1>
    </tns:node>';
    xmlV xmltype;
    begin
        xmlv := xmltype.createXml(xmlT,'schema.xsd');
        xmlv.schemaValidate();
    end;
    /
    Any help?

    Thank you.

    Hello

    First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    I changed the template string, logically equivalent, but it seems to work better.
    If you want to allow blank nodes, use minLength = 0 and make the model accepts it:

    
        
        
    
    
  • Registering XML Schema error

    Hi team,

    The purpose of the mail of my project is to load data from the file in tables Oracle XML stream. I did it following the steps went perfectly well...

    I did following steps.

    (1) create the DIRECTORY xml_dir as 'c:\xmldata ';

    (2) create table xmltab XMLType;

    (3) following packages are carried out by schema 'Sys '.

    (1) dbmslob. SQL;
    (2) prvtlob. PLB;

    (4) a xmldata folder is created under "c:\". "and with data_file.xml file is stored in it.

    5) insert in xmltab values (XMLType (bfilename ('XML_DIR', 'data_file.xml'), nls_charset_id ('AL32UTF8')));

    When I try to run following select statement "No. lines selected" message; Although there is an element in the xml data file.

    SELECT OBJECT_VALUE
    FROM xmltab
    WHERE existsNode (OBJECT_VALUE, ' / ConsolidatedAssetHeader [AssetSourceSystem = "CAPS"]') = 1


    Now, I think that in order to use all functions like existsNode and exctractValue I have to save the schema in DB.

    This is the XML schema file.

    "< xsd: Schema targetNamespace =" "schemas-dart - com:sql:ConsolidatedAssetHeader" xmlns:schema = "schemas-dart - com:sql:ConsolidatedAssetHeader" container = "http://www.w3.org/2001/XMLSchema" xmlns:sqltypes = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault = "qualified" >
    < xsd: import namespace = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation = "http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" / >
    -< xsd: element name = "ConsolidatedAssetHeader" >
    -< xsd: complexType >
    -< xsd: SEQUENCE >
    < xsd: element name = "InternalId" type = "sqltypes:int" / >
    -< xsd: element name = "DCN" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "30" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "EventDateLastChanged" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "FinancialStatusIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "InScopeIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PhysicalInstallDate" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetComment" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "255" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetContractExtension" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetContractNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetDescription" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "AssetFinancialInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < xsd: element name = "AssetFinancialRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "AssetFinancialStatus" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetName" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "255" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetParentSource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetParentSourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "AssetPhysicalInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < xsd: element name = "AssetPhysicalRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "AssetPhysicalStatus" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetPhysicalStatusIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSerialIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSerialNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceSystem" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceType" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetTag" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "BillabilityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "InScopeFlag" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "IP address" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "NetworkNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "SubnetAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: ELEMENT ref = "Schema: ConsolidatedAssetLocation" minOccurs = "0" maxOccurs = "unbounded" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    + < xsd: element name = "ConsolidatedAssetLocation" >
    -< xsd: complexType >
    -< xsd: SEQUENCE >
    < xsd: element name = "InternalId" type = "sqltypes:int" minOccurs = "0" / >
    < xsd: element name = "ParentId" type = "sqltypes:int" minOccurs = "0" / >
    -< xsd: element name = "AssetLocationIDBillTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetLocationIDShipTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetLocationIDSoldTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceIDDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceSystemDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "ContractNumberExtensionDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PartySource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PartySourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "RowCreateDateTime" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    < / xsd: Schema >

    I use the suite package registry scheme, which is in error

    BEGIN
    () DBMS_XMLSCHEMA.registerSchema
    "schemas-dart - com:sql:ConsolidatedAssetHeader',
    XDBURIType('http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd').getClob(),
    TRUE,
    TRUE,
    FAKE,
    (TRUE);
    END;

    Following error.

    BEGIN
    ERROR on line 1:
    ORA-31001: handle or path of the invalid resource name
    'http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd '.
    ORA-06512: at "SYS." XDBURITYPE", line 4
    ORA-06512: at line 2


    Can you please tell me what changes should I do to fix this error? Is there any specific location where should I put my schema file?
    Thanks in advance

    Murielle

    OK, finally, the missing piece of the puzzle! :)

    You do not actually use the schema that you have a hard time to register.
    Besides, only a fragment of the example document "temp.xml" conforms to the schema.

    So we're back to what said in the very first posts of this thread: question of the namespace, and also (now) incorrect XPath expressions.

    Try below example (no necessary schema):

    SQL> CREATE TABLE test_table OF XMLTYPE
      2  XMLTYPE STORE AS SECUREFILE BINARY XML;
    
    Table created
    
    SQL>
    SQL> INSERT INTO test_table
      2  VALUES(
      3   XMLType(bfilename('TEST_DIR','temp.xml'), nls_charset_id('AL32UTF16'))
      4  );
    
    1 row inserted
    
    SQL>
    SQL> SELECT x.*
      2  FROM test_table t,
      3       XMLTable(
      4        XMLNamespaces(default 'http://BAROutboundXML'),
      5        '/BAROutboundXML/Row/ConsolidatedAssetHeader'
      6        passing t.object_value
      7        columns InternalId number path 'InternalId',
      8                DCN        number path 'DCN'
      9       ) x
     10  WHERE x.InternalId = 1275
     11  ;
    
    INTERNALID        DCN
    ---------- ----------
          1275    1111111
     
    

    Since there are several elements of "ConsolidatedAssetHeader" by the document, you cannot use extractValue (because it works on a single node).
    XMLTable is used instead, so that each "ConsolidatedAssetHeader" is actually mapped to a line separated from the relational.

  • Error XML and IEventDispatcher? also - what is complex XML?

    to begin, I'm still pretty much a newb...

    I'm working with XML on a Flash Builder project. The XML is defined as follows:

    [Bindable]
    public var someXML:XML = new XML)
    < someData label "One" >
    < someMoreData >
    ....

    I get the following warning:

    WARNING: unable to bind to property 'someMoreData' class 'XML' (class is not)
    an IEventDispatcher)

    1. what should I do so that the class will be an IEventDispatcher?

    2. in addition, I don't know the definition of 'complex XML. Can someone enlighten me
    on who?

    Thank you!

    Mark

    1. you should probably concatenate your XML together in a string, then create the XML as a new XML (xmlString) object.

    2. If you want to tell a complex content, Adobe docs say the following-

    An XML object is considered as having a simple content or complex content. An XML object that has child nodes is classified as having complex content. An object XML is said to have simple content, if it is one of the following: an attribute, a comment, a processing instruction, or a text node.

    Tire.

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=13_Working_with_XML_04.html

    Good luck!

  • Status of XML schema

    Hello

    Setup

    I nested XSD schemas:

    1. a XSD library, which contains definitions for common objects
    2. a work-XSD, which includes the XSD library and describes the business objects.

    = > Work-XSD has a dependency to the XSD library

    = > Deletion of 'objects' in the library-XSD or even remove the XSD library could / should lead to a work not valid-XSD (I guess...)

    Oracle

    I found in the DBMS_XMLSCHEMA package:
    DBMS_XMLSCHEMA.COMPILESCHEMA:
    
    Used to re-compile an already registered XML schema. This is useful for bringing a schema in an invalid state to a valid state.
    = > So there is something like a 'status of XML schema '.

    Question

    Where can I find the "State of an XML schema. ?

    The USER_XML_SCHEMAS - view does not contain any status or something like that

    XML schemas are not present in the "USER_OBJECTS" - see (where a State is present)

    Thanks in advance

    Good bye

    Stefan

    Try this

    select *
    from all_xml_schemas ax
         , all_objects ao
    where ax.int_objname=ao.object_name;
    

Maybe you are looking for

  • Apple tv only works on the left speaker

    Through any HDMI input audio left is the only work, regardless of the selection of entries. Two audio channels running on all HDMI inputs when tested with a DVD player, had the same problem with Google Chrome and referred to the shop. Everyone knows

  • Pavilion SleeKbook: Smart disk error

    When I start my laptop it shows the message "Smart hard disk error". Then I check the hard drive, but it stopped with this result: INTELLIGENT control: FAILURE FAILURE ID: 9CWGGF-69V81U-MFPX0K - 60A 303PRODUCT ID: C5J13PA #UUF HARD DRIVE 1

  • Windows Media Player 11 will not play files with extension mp4 even when the appropriate codec is installed

    Hello my windows media player doesn't just play everything that carries the mp4 extension, it keeps saying "Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file.

  • Why do I see all of my messages, even when not signed in?

    When open a direct mail all the messages. I'm not sign in this computer is share with my family and they can see my messages.

  • Setting the limit for DatePicker

    Can someone tell me how to set the maximum and minimum date picker date... I tried the setMaximumDate() and setMinimumDate() methods, but this isn't ristricting the day and the month of date picker. I want that the date picker to display only 10 days