ORA-00910 when insert large xml from resource_view to structured table
64982Dec 14 2009 — edited Dec 15 2009Dear all,
I've got a problem when insert the xml data which node value > 4000 char.
I've create a XML schema when table which reference to this schema, when I try to insert the xml from resource_view which the <content> value > 4000 characters, then following messeage appeared:
ORA-00910: specified length too long for its datatype
P.S. if the value < 4000 chars, it's fine.
here is the part of the .xsd fiel:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element ref="item"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="item">
<xs:complexType>
<xs:sequence>
<xs:element ref="content"/>
</xs:sequence>
<xs:attribute name="create_time" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="content" type="xs:string"/>
</xs:schema>
Is it because the type "string" does not support more then 4000 characters? it yes, how can I fixed it? As I'm really newbee of XMLDB.
Thanks and Regards
Ray