XML file too large or too large XML element

I try to import an xml file into the repository and have it shred in the object-relational tables. I signed up a diagram and it created types, triggers and object-relational xml_tables. The complete xml file is > 80 MB. XDB created all fields VARCHAR2 (4000).

error code when you import the complete XML file. That's what I need to fix in the end.
DECLARE
  res BOOLEAN;
BEGIN
  res := DBMS_XDB.createResource('/home/pharma/drugbank.xml', 
                bfilename('XMLPHARMA', 'drugbank.xml'),
                nls_charset_id('AL32UTF8'));
END;
/
COMMIT;

XML file encounters errors on the import.
An error was encountered performing the requested operation
ORA-30951: Element or attribute at Xpath references exceeds maximum length
ORA-06512 at "XDB.DBMS_XDB", line 315
ORA-06512 at line 4
30951.00000 - "Element or attribute at Xpath %x exceeds maximum length"
*Cause: An attempt was made to insert a node of length exceeding the maximum length (specified by the maxLength facet) into an XML document.
*Action: Do not attempt to add a node exceeding the maximum length to XML documents.
Vendor code 30951Error at Line:18
I guess that some fields have lengths > 4000 max. I intend to annotate the schema with SQLType = 'CLOB', but there are fields to change. I could copy the xml file and reduce this xml file to a record of any in the tables. My plan was to write a review on the bfile to get the lengths of some fields, annotate the .xsd with CLOB when needed and then import it again. To do this, I have a 1 imported in a table and as a bfile type recording file.

Here is my code selection length in a generated object-relational table as a single folder.
CREATE OR REPLACE VIEW pharma.drugs_vw AS
SELECT d.*
FROM drugs, XMLTABLE
  ('/drugs' PASSING OBJECT_VALUE COLUMNS
    drugbank_id        VARCHAR2(20)   PATH 'drug/drugbank-id',
    name               VARCHAR2(50)   PATH 'drug/name',
    description        VARCHAR2(4000) PATH 'drug/description'    
  ) d
/

select max(length(drugbank_id)) as dbidlen,
      max(length(name)) as nmlen,
      max(length(description)) as desclen
from drugs_vw;

        DBIDLEN           NMLEN         DESCLEN
--------------- --------------- ---------------
              7               9             229

1 row selected.
Here's the code for the bfile. Same results, but using deprecated functions. I read the white paper, Oracle XML DB: best practices for optimal performance of queries XML. It is said that the function extract(), extractvalue(), Table (XMLSequence ()) and XMLType() are deprecated in 11 GR 2.
-- Note extractvalue is deprecated in 11gr2 replaced by W3C standard
--                                          XMLCast(XMLQuery())
-- TABLE(XMLSequence) is replaced by XMLTable
-- XMLType() is replaced by XMLParse()
SELECT max(length(extractvalue(column_value, '/drug/drugbank-id'))) dbidlen,
       max(length(extractvalue(column_value, '/drug/name'))) nmlen,
       max(length(extractvalue(column_value, '/drug/description'))) desclen
FROM TABLE(XMLSequence(XMLTYPE(bfilename('XMLPHARMA',
'db00001.xml'),nls_charset_id('AL32UTF8')).extract('/drugs/drug'))) d
WHERE ROWNUM <= 5;

        DBIDLEN           NMLEN         DESCLEN
--------------- --------------- ---------------
              7               9             229
Is this better code to get the maximum length of a bfile type xml fields? Here's what I have so far. It works on a simple drugbank id.
SELECT max(length(drugbank_id)) AS dbidlen,
       max(length(name)) AS nmlen,
       max(length(description)) AS desclen
FROM (XMLTABLE('*'
                PASSING (XMLType(bfilename('XMLPHARMA', 'db00001.xml'),nls_charset_id('AL32UTF8')))
                COLUMNS
    drugbank_id        VARCHAR2(20)   PATH 'drug/drugbank-id',
    name               VARCHAR2(50)   PATH 'drug/name',
    description        VARCHAR2(4000) PATH 'drug/description'
  )
);
I try to run it on the full file and get this error
Error report:
SQL Error: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00007: unexpected end-of-file encountered
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 code to create patterns and object-relational tables. It worked well.
set serveroutput on
-- Create resource file for schema
DECLARE
  res BOOLEAN;
BEGIN
  res := DBMS_XDB.createResource('/home/pharma/drugbank.xsd', 
                bfilename('XMLPHARMA', 'drugbank.xsd'),
                nls_charset_id('AL32UTF8'));
  COMMIT;
END;
/

-- optional debugging of create types and tables if you want a trace
ALTER SESSION SET EVENTS = '31098 TRACE NAME CONTEXT FOREVER';

BEGIN
  DBMS_XMLSCHEMA.registerSchema(
      SCHEMAURL => 'http://localhost:8080/home/pharma/drugbank.xsd',
      SCHEMADOC => bfilename('XMLPHARMA', 'drugbank.xsd'),
      CSID      => nls_charset_id('AL32UTF8'),
      LOCAL     => TRUE,
      GENTYPES  => TRUE,
      GENTABLES => TRUE,
      OWNER     => 'PHARMA');
  COMMIT;
END;
/
SQL> select * from v$version;
BANNER
---------------------------------------------------------------
Oracle Database 11g Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Follows the xml schema. Sorry for the length, but I think I might break something if I he snipped.
<?xml version="1.0" encoding="UTF-8"?>
     <xs:schema  
     xmlns:xs="http://www.w3.org/2001/XMLSchema"  
     xmlns:xdb="http://xmlns.oracle.com/xdb"
     >

     <!-- General type definitions -->
     <xs:simpleType name="DecimalOrEmptyType">
          <xs:union memberTypes="xs:decimal EmptyStringType"/>
     </xs:simpleType>
     <xs:simpleType name="EmptyStringType">
          <xs:restriction base="xs:string">
               <xs:enumeration value=""/>
          </xs:restriction>
     </xs:simpleType>

     <!-- Element Definitions -->
     <!-- Drug secondary accession number definition begins -->
     <xs:element name="secondary-accession-numbers" xdb:defaultTable="SECONDARY_ACCESSION_NUMBERS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="secondary-accession-number" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug secondary accession number definition ends -->
     <!-- Drug groups definition begins -->
     <xs:element name="groups" xdb:defaultTable="GROUPS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="group">
                         <xs:simpleType>
                              <xs:restriction base="xs:string">
                                   <xs:enumeration value="approved"/>
                                   <xs:enumeration value="illicit"/>
                                   <xs:enumeration value="experimental"/>
                                   <xs:enumeration value="withdrawn"/>
                                   <xs:enumeration value="nutraceutical"/>
                              </xs:restriction>
                         </xs:simpleType>
                    </xs:element>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug groups definition ends -->
     <!-- Drug taxonomy definition begins -->
     <xs:element name="substructure">
          <xs:complexType>
               <xs:simpleContent>
                    <xs:extension base="xs:string">
                         <xs:attribute name="class" type="xs:string" use="required"/>
                    </xs:extension>
               </xs:simpleContent>
          </xs:complexType>
     </xs:element>
     <xs:element name="substructures" xdb:defaultTable="SUBSTRUCTURES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="substructure"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="taxonomy" xdb:defaultTable="TAXONOMY">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="kingdom" type="xs:string"/>
                    <xs:element ref="substructures"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug taxonomy definition ends -->
     <!-- Drug brands definition begins -->
     <xs:element name="brands" xdb:defaultTable="BRANDS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="brand" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug brands definition ends -->
     <!-- Drug mixtures definition begins -->
     <xs:element name="mixture">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="name" type="xs:string"/>
                    <xs:element name="ingredients" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="mixtures" xdb:defaultTable="MIXTURES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="mixture"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug mixtures definition ends -->
     <!-- Drug packagers definition begins -->
     <xs:element name="packager">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="name" type="xs:string"/>
                    <xs:element name="url" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="packagers" xdb:defaultTable="PACKAGERS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="packager"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug packagers definition ends -->
     <!-- Drug manufacturers definition begins -->
     <xs:element name="manufacturer">
          <xs:complexType>
               <xs:simpleContent>
                    <xs:extension base="xs:string">
                         <xs:attribute name="generic" type="xs:string" use="required"/>
                    </xs:extension>
               </xs:simpleContent>
          </xs:complexType>
     </xs:element>
     <xs:element name="manufacturers" xdb:defaultTable="MANUFACTURERS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="manufacturer"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug manufactures definition ends -->
     <!-- Drug pricing definition begins -->
     <xs:element name="cost">
          <xs:complexType>
               <xs:simpleContent>
                    <xs:extension base="xs:string">
                         <xs:attribute name="currency" type="xs:string" use="required"/>
                    </xs:extension>
               </xs:simpleContent>
          </xs:complexType>
     </xs:element>
     <xs:element name="price">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="description" type="xs:string"/>
                    <xs:element ref="cost"/>
                    <xs:element name="unit" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="prices" xdb:defaultTable="PRICES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="price"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug pricing definition ends -->
     <!-- Drug categories definition begins -->
     <xs:element name="categories" xdb:defaultTable="CATEGORIES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="category" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug categories definition ends -->
     <!-- Drug affected orgainsms definition begins -->
     <xs:element name="affected-organisms" xdb:defaultTable="AFFECTED_ORGANISMS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="affected-organism" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug affected organisms definition ends -->
     <!-- Drug dosage definition begins -->
     <xs:element name="dosage">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="form" type="xs:string"/>
                    <xs:element name="route" type="xs:string"/>
                    <xs:element name="strength" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="dosages" xdb:defaultTable="DOSAGES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="dosage"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug dosages definition ends -->
     <!-- Drug ATC codes definition begins -->
     <xs:element name="atc-codes" xdb:defaultTable="ATC_CODES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="atc-code" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug ATC codes definition ends -->
     <!-- Drug AHFS codes definition begins -->
     <xs:element name="ahfs-codes" xdb:defaultTable="AHFS_CODES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="ahfs-code" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug AHFS codes definition ends -->
     <!-- Drug Patent definition begins -->
     <xs:element name="patent">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="number" type="xs:string"/>
                    <xs:element name="country" type="xs:string"/>
                    <xs:element name="approved" type="xs:string"/>
                    <xs:element name="expires" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="patents" xdb:defaultTable="PATENTS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="patent"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug patent definition ends -->
     <!-- Drug food interactions definition begins -->
     <xs:element name="food-interactions" xdb:defaultTable="FOOD_INTERACTIONS">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="food-interaction" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug food interactions definition ends -->
     <!-- Drug drug interactions definition begins -->
     <xs:element name="drug-interaction">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="drug" type="xs:integer"/>
                    <xs:element name="description" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="drug-interactions" xdb:defaultTable="DRUG_INTERACTIONS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="drug-interaction"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug drug interactions definition ends -->
     <!-- Drug protein sequences (biotech) definition begins -->
     <xs:element name="protein-sequences" xdb:defaultTable="PROTEIN_SEQUENCES">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="protein-sequence" type="SequenceType"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug protein sequences (biotech) definition ends-->
     <!-- Drug external links definition begins -->
     <xs:element name="external-link">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="resource" type="xs:string"/>
                    <xs:element name="url" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="external-links" xdb:defaultTable="EXTERNAL_LINKS">
          <xs:complexType>
               <xs:sequence maxOccurs="unbounded" minOccurs="0">
                    <xs:element ref="external-link"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug external links definition ends -->
     <!-- Drug targets definition begins -->
     <xs:element name="targets" xdb:defaultTable="TARGETS">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="target" type="TargetBondType" minOccurs="0" maxOccurs="unbounded"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug targets definition ends -->
     <!-- Drug enzymes definition begins -->
     <xs:element name="enzymes" xdb:defaultTable="ENZYMES">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="enzyme" type="BondType" minOccurs="0" maxOccurs="unbounded"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug enzmes definition ends -->
     <!-- Drug transporters definition begins -->
     <xs:element name="transporters" xdb:defaultTable="TRANSPORTERS">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="transporter" type="BondType" minOccurs="0" maxOccurs="unbounded"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug transporters definition ends -->
     <!-- Drug carriers definition begins -->
     <xs:element name="carriers" xdb:defaultTable="CARRIERS">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="carrier" type="BondType" minOccurs="0" maxOccurs="unbounded"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Drug carriers definition ends -->
     <!-- Partner  Pfams definition begins -->
     <xs:element name="pfam">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="identifier" type="xs:string"/>
                    <xs:element name="name" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="pfams" xdb:defaultTable="PFAMS">
          <xs:complexType>
               <xs:sequence minOccurs="0" maxOccurs="unbounded">
                    <xs:element ref="pfam"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Partner  Pfams definition end -->
     <!-- Partner  GO Classification definition begins -->
     <xs:element name="go-classifier">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="category" type="xs:string"/>
                    <xs:element name="description" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <xs:element name="go-classifiers" xdb:defaultTable="GO_CLASSIFIERS">
          <xs:complexType>
               <xs:sequence minOccurs="0" maxOccurs="unbounded">
                    <xs:element ref="go-classifier"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
     <!-- Partner  GO Classification definition ends -->
     <!-- Partner Essentiality definition begins -->
     <xs:element name="essentiality">
          <xs:simpleType>
               <xs:restriction base="xs:string">
                    <xs:enumeration value="Essential"/>
                    <xs:enumeration value="Non-Essential"/>
               </xs:restriction>
          </xs:simpleType>
     </xs:element>
     <!-- Partner Essentiality definition ends -->
     
     <!-- Complex Type Definitions -->
     <xs:complexType name="SequenceType">
          <xs:sequence>
               <xs:element name="header" type="xs:string"/>
               <xs:element name="chain" type="xs:string"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="PropertyType">
          <xs:sequence>
               <xs:element name="kind">
                    <xs:simpleType>
                         <xs:restriction base="xs:string">
                              <xs:enumeration value="logP"/>
                              <xs:enumeration value="logS"/>
                              <xs:enumeration value="logP/hydrophobicity"/>
                              <xs:enumeration value="Water Solubility"/>
                              <xs:enumeration value="caco2 Permeability"/>
                              <xs:enumeration value="pKa"/>
                              <xs:enumeration value="IUPAC Name"/>
                              <xs:enumeration value="Molecular Weight"/>
                              <xs:enumeration value="Monoisotopic Weight"/>
                              <xs:enumeration value="SMILES"/>
                              <xs:enumeration value="Molecular Formula"/>
                              <xs:enumeration value="InChI"/>
                              <xs:enumeration value="InChIKey"/>
                         </xs:restriction>
                    </xs:simpleType>
               </xs:element>
               <xs:element name="value" type="xs:string"/>
               <xs:element name="source">
                    <xs:simpleType>
                         <xs:restriction base="xs:string">
                              <xs:enumeration value="JChem"/>
                              <xs:enumeration value="ALOGPS"/>
                              <xs:enumeration value=""/>
                         </xs:restriction>
                    </xs:simpleType>
               </xs:element>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="PropertiesType">
          <xs:sequence>
               <xs:element name="property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="SynonymsType">
          <xs:sequence maxOccurs="unbounded" minOccurs="0">
               <xs:element name="synonym" type="xs:string"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="IdentifiersType">
          <xs:sequence maxOccurs="unbounded" minOccurs="0">
               <xs:element name="external-identifier">
                    <xs:complexType>
                         <xs:sequence>
                              <xs:element name="resource" type="xs:string"/>
                              <xs:element name="identifier" type="xs:string"/>
                         </xs:sequence>
                    </xs:complexType>
               </xs:element>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="BondActionsType">
          <xs:sequence maxOccurs="unbounded" minOccurs="0">
               <xs:element name="action" type="xs:string"/>
          </xs:sequence>
     </xs:complexType>
     <xs:complexType name="BondType">
          <xs:sequence>
               <xs:element name="actions" type="BondActionsType"/>
               <xs:element name="references" type="xs:string"/>
          </xs:sequence>
          <xs:attribute name="position" type="xs:integer" use="optional"/>
          <xs:attribute name="partner" type="xs:integer"/>
     </xs:complexType>
     <xs:complexType name="TargetBondType">
          <xs:complexContent>
               <xs:extension base="BondType">
                    <xs:sequence>
                         <xs:element name="known-action">
                              <xs:simpleType>
                                   <xs:restriction base="xs:string">
                                        <xs:enumeration value="yes"/>
                                        <xs:enumeration value="no"/>
                                        <xs:enumeration value="unknown"/>
                                   </xs:restriction>
                              </xs:simpleType>
                         </xs:element>
                    </xs:sequence>
               </xs:extension>
          </xs:complexContent>
     </xs:complexType>
     
     <xs:complexType name="PartnerType">
          <xs:sequence>
               <xs:element name="name" type="xs:string"/>
               <xs:element name="general-function" type="xs:string"/>
               <xs:element name="specific-function" type="xs:string"/>
               <xs:element name="gene-name" type="xs:string"/>
               <xs:element name="locus" type="xs:string"/>
               <xs:element name="reaction" type="xs:string"/>
               <xs:element name="signals" type="xs:string"/>
               <xs:element name="cellular-location" type="xs:string"/>
               <xs:element name="transmembrane-regions" type="xs:string"/>
               <xs:element name="theoretical-pi" type="DecimalOrEmptyType"/>
               <xs:element name="molecular-weight" type="DecimalOrEmptyType"/>
               <xs:element name="chromosome" type="xs:string"/>
               <xs:element ref="essentiality"/>
               <xs:element name="references" type="xs:string"/>
               <xs:element name="external-identifiers" type="IdentifiersType"/>
               <xs:element name="synonyms" type="SynonymsType"/>
               <xs:element name="protein-sequence" type="SequenceType" minOccurs="0"/>
               <xs:element name="gene-sequence" type="SequenceType" minOccurs="0"/>
               <xs:element ref="pfams"/>
               <xs:element ref="go-classifiers"/>
          </xs:sequence>
          <xs:attribute name="id" type="xs:integer" use="required"/>
     </xs:complexType>
     <xs:complexType name="DrugType">
          <xs:sequence>
               <xs:element name="drugbank-id" type="xs:string"/>
               <xs:element name="name" type="xs:string"/>
               <xs:element name="description" type="xs:string"/>
               <xs:element name="cas-number" type="xs:string"/>
               <xs:element name="general-references" type="xs:string"/>
               <xs:element name="synthesis-reference" type="xs:string"/>
               <xs:element name="indication" type="xs:string"/>
               <xs:element name="pharmacology" type="xs:string"/>
               <xs:element name="mechanism-of-action" type="xs:string"/>
               <xs:element name="toxicity" type="xs:string"/>
               <xs:element name="biotransformation" type="xs:string"/>
               <xs:element name="absorption" type="xs:string"/>
               <xs:element name="half-life" type="xs:string"/>
               <xs:element name="protein-binding" type="xs:string"/>
               <xs:element name="route-of-elimination" type="xs:string"/>
               <xs:element name="volume-of-distribution" type="xs:string"/>
               <xs:element name="clearance" type="xs:string"/>
               <xs:element ref="secondary-accession-numbers"/>
               <xs:element ref="groups"/>
               <xs:element ref="taxonomy"/>
               <xs:element name="synonyms" type="SynonymsType"/>
               <xs:element ref="brands"/>
               <xs:element ref="mixtures"/>
               <xs:element ref="packagers"/>
               <xs:element ref="manufacturers"/>
               <xs:element ref="prices"/>
               <xs:element ref="categories"/>
               <xs:element ref="affected-organisms"/>
               <xs:element ref="dosages"/>
               <xs:element ref="atc-codes"/>
               <xs:element ref="ahfs-codes"/>
               <xs:element ref="patents"/>
               <xs:element ref="food-interactions"/>
               <xs:element ref="drug-interactions"/>
               <xs:element ref="protein-sequences" minOccurs="0"/><!-- Only present for biotech drugs -->
               <xs:element name="calculated-properties" type="PropertiesType" minOccurs="0"/><!-- Only present for small molecule drugs -->
               <xs:element name="experimental-properties" type="PropertiesType"/>
               <xs:element name="external-identifiers" type="IdentifiersType"/>
               <xs:element ref="external-links"/>
               <xs:element ref="targets"/>
               <xs:element ref="enzymes"/>
               <xs:element ref="transporters"/>
               <xs:element ref="carriers"/>
          </xs:sequence>
          <xs:attribute name="type" use="required">
               <xs:simpleType>
                    <xs:restriction base="xs:string">
                         <xs:enumeration value="small molecule"/>
                         <xs:enumeration value="biotech"/>
                    </xs:restriction>
               </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="updated" type="xs:string" use="required"/>
          <xs:attribute name="created" type="xs:string" use="required"/>
          <xs:attribute name="version" type="xs:decimal" use="required"/>
     </xs:complexType>
     
     <xs:element name="drugs"  xdb:defaultTable="DRUGS">
          <xs:complexType>
               <xs:sequence>
                    <xs:element name="drug" type="DrugType" minOccurs="0" maxOccurs="unbounded" />
                    <xs:element name="partners">
                         <xs:complexType>
                              <xs:sequence>
                                   <xs:element name="partner" type="PartnerType" minOccurs="0" maxOccurs="unbounded" />
                              </xs:sequence>
                         </xs:complexType>
                    </xs:element>
               </xs:sequence>
          </xs:complexType>
     
          <xs:keyref name="targetPartnerIdKeyRef" refer="partnerIdKey">
               <xs:selector xpath="drug/targets/*"/>
               <xs:field xpath="@partner"/>
          </xs:keyref>
          <xs:keyref name="enzymePartnerIdKeyRef" refer="partnerIdKey">
               <xs:selector xpath="drug/enzymes/*"/>
               <xs:field xpath="@partner"/>
          </xs:keyref>
          <xs:keyref name="transporterPartnerIdKeyRef" refer="partnerIdKey">
               <xs:selector xpath="drug/transporters/*"/>
               <xs:field xpath="@partner"/>
          </xs:keyref>
          <xs:keyref name="carrierPartnerIdKeyRef" refer="partnerIdKey">
               <xs:selector xpath="drug/carriers/*"/>
               <xs:field xpath="@partner"/>
          </xs:keyref>
          <xs:key name="partnerIdKey">
               <xs:selector xpath=".//partner"/>
               <xs:field xpath="@id"/>
          </xs:key>
     </xs:element>     
</xs:schema>
Optimization white paper request
http://www.Oracle.com/technetwork/database/features/xmldb/xmlqueryoptimize11gr2-168036.PDF

Well Yes... You need not put GENTABLES-online TRUE when recording object relational. There are no structures in XML schema that require tables on online storage...

SQL> DECLARE
  2    V_XMLSCHEMA XMLTYPE := xmltype(bfilename('&USERNAME', 'drugbank.xsd'),nls_charset_id('AL32UTF8'));
  3  BEGIN
  4          DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XMLSCHEMA);
  5          DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDOM(V_XMLSCHEMA);
  6          DBMS_XMLSCHEMA_ANNOTATE.setSQLType(V_XMLSCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'BondType',DBMS_XDB_CONSTANTS.XSD_ELEMENT,'references','CLOB',TRUE);
  7          DBMS_XMLSCHEMA_ANNOTATE.setSQLType(V_XMLSCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'PartnerType',DBMS_XDB_CONSTANTS.XSD_ELEMENT,'references','CLOB',TRUE);
  8          DBMS_XMLSCHEMA_ANNOTATE.setSQLType(V_XMLSCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'DrugType',DBMS_XDB_CONSTANTS.XSD_ELEMENT,'general-references','CLOB',TRUE);
  9          DBMS_XMLSCHEMA_ANNOTATE.setSQLType(V_XMLSCHEMA,DBMS_XDB_CONSTANTS.XSD_COMPLEX_TYPE,'SequenceType',DBMS_XDB_CONSTANTS.XSD_ELEMENT,'chain','CLOB',TRUE);
 10    DBMS_XMLSCHEMA.registerSchema(
 11        SCHEMAURL => :SCHEMAURL,
 12        SCHEMADOC => V_XMLSCHEMA,
 13        LOCAL     => TRUE,
 14        GENTYPES  => TRUE,
 15        GENTABLES => TRUE);
 16  END;
 17  /
old   2:   V_XMLSCHEMA XMLTYPE := xmltype(bfilename('&USERNAME', 'drugbank.xsd'),nls_charset_id('AL32UTF8'));
new   2:   V_XMLSCHEMA XMLTYPE := xmltype(bfilename('PHARMA', 'drugbank.xsd'),nls_charset_id('AL32UTF8'));

PL/SQL procedure successfully completed.

Elapsed: 00:00:01.65
SQL> CREATE TABLE drugs_xmltype OF XMLTYPE
  2  XMLSCHEMA "http://lims.drugbank.ca/docs/drugbank.xsd"
  3  ELEMENT "drugs"
  4  /

Table created.

results in

SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 29 16:14:00 2011

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select table_name from user_xml_tables;

TABLE_NAME
------------------------------
DRUGS_XMLTYPE

SQL> select count(*) from user_nested_tables;

  COUNT(*)
----------
        36

SQL>

Tags: Database

Similar Questions

  • When you try to transfer a file of 8 GB on external hard drive 'file too large for the destination system message' to get there is that much space on disk

    When you try to transfer a file of 8 GB on external hard drive 'file too large for the destination system message' to get there is that much space on disk

    Hello

    Discs formatted with the FAT be limited to files with a maximum of 4 GB. You can format outside
    drive drive with NTFS, contact the manufacturer if necessary pilot or split the file into parts under
    at 4 GB.

    Overview of FAT, HPFS, and NTFS file systems
    http://support.Microsoft.com/kb/100108

    How to go beyond the limit of 4 GB on FAT32
    http://lazybit.com/index.php/2007/03/01/how_to_get_over_the_4gb_limit_fat32

    -------------------------------------------------------------------------------------------------------------------------

    The ZIP file and then divided the ZIP which helps maintain the integrity of sharing files and restoring.

    Zip and Split - free
    http://zipandsplit.toolazy.me.UK/

    Split and Zip - free
    http://www.jtoolgame.com/tools/splitzip.html

    Akhir Split Zip - free
    http://www.mydigitallife.info/2009/04/24/Akhir-split-zip-splits-files-into-smaller-zip-files/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Try to burn video downloaded on a disk, 'File too large to fit on a disc' error message, what should I do?

    Try to burn the downloaded video of record, the error message, "file too large to fit on a disc. Disc is DVD - R 4.7 GB 120 min. Home video is 2 videos for a total of 96 min. tried to engrave individually but got the same message.  What to do?

    Hi Carolyn,

    Thanks for posting the request in the Microsoft Community. It seems that you are facing problem when burning a video disc. I will certainly help you to question.

    We start with two questions:

    1 have had any changes made on the computer before the show?

    2. what application you use to burn the disc?

    3. What is the size of the video files?

    If you use a third-party software or an application to burn the video files, I suggest you to use Windows DVD maker and check if it helps:

    Burn a DVD-video using Windows DVD Maker disc

    http://Windows.Microsoft.com/en-us/Windows7/burn-a-DVD-video-disc-with-Windows-DVD-Maker

    You can also check out the link and check if it helps:

    Burn a CD or DVD in Windows Explorer

    http://Windows.Microsoft.com/en-us/Windows7/burn-a-CD-or-DVD-in-Windows-Explorer

    If the problem is not resolved, please provide more information to help you best.

    Thank you.

  • IBM AIX RISC System/6000 error: 27: file too large

    What is fix?

    channel ORA_DISK_1: starting piece 1-10 April 09
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 2009-04-10 09:51:58
    ORA-19502: write error on file ' / backup/ldapdcx1/df_683805092_20_1 ', blockno 131201 (blocksize = 8192)
    ORA-27063: number of bytes read or written is incorrect
    IBM AIX RISC System/6000 error: 27: file too large
    Additional information:-1
    Additional information: 1048576
    ORA-19502: write error on file ' / backup/ldapdcx1/df_683805092_20_1 ', blockno 131073 (blocksize = 8192)
    ORA-27063: number of bytes read or written is incorrect

    RMAN >
    open database


    It's backup dir
    Oracle: dcxnim01$ ls - ltr
    10080 total
    -rw - 1 oracle dba 98304 Apr 10 09:51 df_683805086_18_1
    -rw - 1 oracle dba 2506752 Apr 10 09:51 ldapdcx1.ctl
    -rw - 1 oracle dba 2555904 Apr 10 09:51 df_683805089_19_1

    You have a limit on the size of the file on your system as 2Go on older unix systems.

    SS

  • VI alertlog - tmp file too large

    Hello

    When I try to take a look at alertlog.
    It says tmp file too big.

    is it something to do with the space/tmp?
    How can I see content, its about 3G now
    If split can be manipulated, can provide you eg.

    Thank you.

    jdba wrote:
    Hello

    When I try to take a look at alertlog.
    It says tmp file too big.

    is it something to do with the space/tmp?
    How can I see content, its about 3G now
    If split can be manipulated, can provide you eg.

    Thank you.

    you only care about the most recent events then do as below

    tail-500 alert_SID.log > capture.log

  • &lt; Unspecified file name &gt; file is larger than the maximum size supported by datastore '&lt; indeterminate datastore &gt;.

    I know that this issue has much spoken in the forums, but the answers are always to make sure that your block sizes are set to 8 MB - mine are already. Let me explain:

    I have a virtual machine with a large amount of connected storage - something along the lines of discs 10 x 1.99 to. Sit all VMDK on partitions of the VMFS of 8 MB of size block, including the configuration of the VM (location of the pagefile).

    Every time I try and snapshot of the virtual machine, I see the "< unspecified file name > file is larger than the maximum size supported by the data store ' < unspecified datastore >. All other virtual machines instant fine, but any other VM has a similar amount of storage as the VM problem.

    I have now moved the configuration files of the virtual machine to a new partition VMFS 5 of 1.91 TB, but the instant error persists. Most of the readers is sitting on VMFS 3.33 or 3.46. It will take me a while to move all VMFS 5 to see if that solves the problem.

    VMware.log for VM reports:

    2011-10-09T09:55:55.328Z| vcpu-0|  DiskLibCreateCustom: Unsupported disk capacity or disk capacity (2186928627712 bytes) is too large for vmfs file size.
    2011-10-09T09:55:55.328Z| vcpu-0| DISKLIB-LIB   : Failed to create link: The destination file system does not support large files (12)
    2011-10-09T09:55:55.328Z| vcpu-0| SNAPSHOT: SnapshotBranchDisk: Failed to branch disk: '/vmfs/volumes/4dc30ba3-b13c5026-92d8-d485643a1de4/spoon-app/spoon-app_2.vmdk' -> '/vmfs/volumes/4dc30ba3-b13c5026-92d8-d485643a1de4/spoon-app/spoon-app_2-000001.vmdk' : The destination file system does not support large files (12)
    
    

    My VMDK and volumes are smaller than 2032GB. I don't understand why, it's be a problem.

    Anyone have any ideas?

    Although ESXi 5 supports larger LUN as a raw physical devices (up to 64 TB), the maximum size of a virtual disk has not yet changed.

    André

  • Audio file too big for Muse?

    HI -.

    I just added using the audio widget MuseGrid about 110 MB worth of mp3 files on my site.  Suddenly it takes very long to publish when it used to take seconds.  I'll plant the site?  Is there a limit I push here w concerning the size of the file?

    Thank you very much.

    D

    Hello

    Are you still facing this problem?

    If the file is large, so it may take time to get downloaded, there is as such no limit to add files, but its always good to divide if the file size is too large to load on the page.

    Thank you

    Sanjit

  • Stor.E TV + don't transfer large file or large selection of files

    Hello world

    I just bought a Stor.E TV + 2 TB and I found a very noisy problem with file transfers from the PC to the ditch to drive HARD the LAN (wired & and/or wireless).

    The device is not transfer large file or large selection of files and blocks the process of PC.

    Anyone know if there is a firmware update or a workaround for this problem?
    Can't wait to read of a person.

    Thank you
    G.

    Hello

    As far as I know that this has been resolved by the firmware update
    You can find the firmware on the European driver Toshiba page:
    http://EU.computers.Toshiba-Europe.com/innovation/download_drivers_bios.jsp

    Choose here:
    -Options
    -Drive devices
    -Multimedia hard drives
    -3.5 inch StorE TV +.

  • How to make a record that I downloaded on my computer and to make into smaller files so that I'd be able to send them an existing voice mail? From now on, the file is large to send

    How to make a record that I downloaded on my computer and to make into smaller files so that I'd be able to send them an existing voice mail? From now on, the file is large to send.

    Hi kristieann,

    ·         What version of the operating system is installed on the computer?

    You can search for any third-party application, using your favorite search engine to split the recording file.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • The names of source files are larger than is supported by the file system...

    "The names of source files are larger than is supported by the file system. Try to move to a location that has a shorter path name, or try renaming to name more short (s) before performing this operation. »

    There are about 10 subfolders on the computer. None can be deleted, moved, or renamed without one appearing in the message. I tried UNLOCKER ASSISTANT & DELINVFILE get rid of this file. Once more, none worked. Command prompt did not work as well. Please help me, this issue will not go away on my desk.

    Try first to remove bypassing the Recycle Bin using SHIFT-DEL(thanks, Michael Murphy) rather than just led

    Try to use one of the following free products to remove the file/folder.  Unlocker to: http://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtml or file Assassin http://www.malwarebytes.org/fileassassin.php (with or without forcing the deletion and you have to force the deletion in this case: http://www.mydigitallife.info/2008/12/27/force-delete-cannot-delete-locked-or-in-used-files-or-folders-with-fileassassin/). These programs often work when normal functions remove Vista not work correctly.  Have you tried Unlocker (I don't know if it's the same as Unlocker Assistant) but if this if it is different, gives it a try.

    Here is an article on this topic (related to another topic, but essentially the same problem) with a number of suggestions - which can work for you: http://www.howtogeek.com/forum/topic/how-to-delete-source-file-names-are-larger-than-is.

    I hope that one of these options help.  If this isn't the case, after return and we will see if we can find another answer.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Failed 801 META-INF/RDK. SF: File too big SF

    Hello

    I recently started to test my application in release mode, and I encounter an error during the download of the application.  The error message is:

    result::failure 801 META-INF/RDK. SF: File too big SF

    It seems that I share a similar problem as jetcat33 because my application contains html + 6000 files in the help system (that's why my RDK.) SF file is approximately 1.3 MB).  It's been more than a year, since the problem was discovered, so I wonder if there is an update to this issue.

    FYI: I'm on Momentics IDE 2.0 SDK 10.2.0.1155 if this is useful.

    Thank you
    Josh

    I would recommend as a work around, wrap the files in a zip file and extract to the first round.

  • File too short Error Message Windows 8 plants vs Zombies game

    I bought plants vs. Zombies game of Big Fish a month ago.  Everything was fine until yesterday.  When I try to play the game - I "error reading user file: file too short".  I tried game removal & relocation - the same results.  Any help would be greatly appreciated.

    Hello

    This error message is usually related to a problem with your user data. Maybe your backup data became corrupted or inaccessible.

    You can uninstall the game from the control panel and delete the data mentioned here user folder.

    I suggest you remove all your data from the directory of the game to force the game to create a new clean record at startup.

    Here's the location of plants vs than zombies registration file:

    C:\ProgramData\PopCap Games\Plants vs Zombies\userdata

    Please remove the complete "userdata" folder in the directory.

    In order to access your profiles/game PopCap Games user progresses, you may need to set your Folder Options to allow you to view directories that are hidden by default. To do this, please follow the steps below:

    Follow the steps here to view the folder.

    a. press the Windows key + W key, type: Hidden
    b. click on settings under the search box.
    c. click Show hidden files and folders on the left side of your screen.
    d. then click on Show hidden files, foldersand drives on the view tab.
    e. click OK and apply.

    Once you have deleted the directory, you can reinstall the game and check.

    Hope this information helps.

  • Cannot import the image of the panorama - file too big

    I try to import a panorama image in jpeg format. The size is 437 MB and 49745 x 14786 pixels. When I select the image to be imported, Lightroom 6 fails with the error message: file too big.

    What is the problem? I thought the max image size is much higher? 300000 x 300000 pixels? What can I do to fix this? I am running Windows 7, 64 bit.

    The maximum file size is 64 k pixels from the edge of the longest (so OK there), or a maximum size of 512 million pixels, the lowest being retained. I think that your file is more than 700 million pixels, which makes it too big for Lightroom.

  • If I buy adobe Elements 10 or later what software should I make the DVD to mov files, the files are large and I know they must be compressed and I don't want to lose quality... I know that adobe pro you still need software, but will still work with el

    If I buy adobe Elements 10 or later what software should I make the DVD to mov files, the files are large and I know they must be compressed and I don't want to lose quality... I know that adobe pro you still need software, but will still work with the elements and may itself make the compression... I know it can burn DVDs...

    vidog

    If you burn to a DVD disc in first items 10 and later versions, some choices are

    a. DVD-VIDEO standard screen or 4:3 16:9 on DVD disc

    Both will have the frame size of 720 x 480 pixels. But the big screen comes with a 16:9 flag that extends approximately 856/480 16:9 display video after encoding. The screening is not adjustable by the user... and you end up with the DVD-VIDEO format @ 29.97 images per second interlaced.

    b. format of the AVCHD on DVD

    Here is the video display 1920 x 1080. And, depending on the version, can be 29.97 images interlaced per second, or 23.976 progressive frames per second (if not just 29.97 images per second interlaced). Although you can generate some AVCHD DVD with a regular DVD burner, DVD AVCHD is in need of a blu - ray player that supports supported AVCHD DVD or one of these drives multimedia multi which is also.

    c. If the player allows... you can export your Timeline file saved on a USB Flash drive and then insert this USB Flash drive in the drive to get the reading of the file. On this route, you can set the Premiere Elements avancΘs to customize your choice of export preset.

    Please consult the bulletin and consider then, let us know if we have targeted your question. If this isn't the case, please give more details in the areas where we do not have.

    Thank you.

    RTA

  • Photoshop tells me my file is larger than 2 GB and can not save...?

    Hey guys, I was resizing of images to fit a web template and when I got to a particular image, he gave me notice of the error and told me my file is larger than 2 GB and cannot be saved. The image dimensions are 27 "x 35" PPP 240. I shoot with a full frame D800 and don't have never had this problem before, even if make images larger. IM walking Photoshop CC version, on a fairly powerful iMac.

    Resizing of the process: enlarge the size of the canvas, and then across the layers and images to fit the new size. The canvas size is 27 "x 35". What's not here? Thank you all.

    I do not use PS which, often, but I know that the file extension by default to saving a Photoshop Document is ".psd".  If you save a file size larger than the maximum allowed for this extension, you must save it as a Photoshop (".psb") file.  I don't know if you can save a large file to TIFF («.tif/.tiff') and keep all the attributes that has a native PS file.

  • Can I send a large file of large JPEG files?

    Can I send a large file of large JPEG files? (Do not see this in two types of files included or excluded). I have several folders containing groups 20 MB jpegs. If I can meet you. Thank you

    You can zip to the top of each file and send the zip file.

    For now, it is not possible to select and send entire folders. You will need to select the files in each folder.

Maybe you are looking for