Hi All..
I have a table 'Test_Vij_2' with 2 columns:
1) XML_FILE ( xmltype )
2) ID ( varchar2(2) )
I am trying to insert the below xml file into the column XML_FILE ..
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetPossibleSearchCriteriaResponse xmlns="http://www.creditsafe.com/globaldata/operations">
<GetPossibleSearchCriteriaResult xmlns:q1="http://www.creditsafe.com/globaldata/datatypes">
<q1:Schemas>
<q1:Schema>
<q1:Id Optional="false" MinLength="18" MaxLength="18">
<q1:ValidationRegExp>^(DE)\d{3}/(0|1)/DE\d{8}$</q1:ValidationRegExp>
</q1:Id>
</q1:Schema>
<q1:Schema>
<q1:SafeNumber Optional="false" MinLength="10" MaxLength="10">
<q1:ValidationRegExp>DE\d{8}</q1:ValidationRegExp>
</q1:SafeNumber>
</q1:Schema>
<q1:Schema>
<q1:VatNumber Optional="false" MinLength="11" MaxLength="11">
<q1:ValidationRegExp>DE\d{9}</q1:ValidationRegExp>
</q1:VatNumber>
</q1:Schema>
<q1:Schema>
<q1:Type Optional="true">
<q1:AllowedValues>
<q1:AllowedValue>Ltd</q1:AllowedValue>
<q1:AllowedValue>NonLtd</q1:AllowedValue>
</q1:AllowedValues>
</q1:Type>
<q1:RegistrationNumber Optional="false" MinLength="1">
<q1:ValidationRegExp>^(?!^\s*HR\s*$)(?!^\s*HRB\s*$)(?!^\s*HRA\s*$)(?!^\s*GnR\s*$)(?!^\s*PR\s*$)(?!^\s*IN\s*$).*$</q1:ValidationRegExp>
</q1:RegistrationNumber>
<q1:Address>
<q1:City Optional="true" />
</q1:Address>
</q1:Schema>
<q1:Schema>
<q1:Name Optional="true" MinLength="2">
<q1:AllowedMatchTypes>
<q1:AllowedMatchType>MatchBeginning</q1:AllowedMatchType>
<q1:AllowedMatchType>MatchBlock</q1:AllowedMatchType>
<q1:AllowedMatchType>ExactValue</q1:AllowedMatchType>
<q1:AllowedMatchType>MatchWords</q1:AllowedMatchType>
</q1:AllowedMatchTypes>
</q1:Name>
<q1:Type Optional="true">
<q1:AllowedValues>
<q1:AllowedValue>Ltd</q1:AllowedValue>
<q1:AllowedValue>NonLtd</q1:AllowedValue>
</q1:AllowedValues>
</q1:Type>
<q1:Status Optional="true">
<q1:AllowedValues>
<q1:AllowedValue>Active</q1:AllowedValue>
<q1:AllowedValue>Active, NonActive</q1:AllowedValue>
</q1:AllowedValues>
</q1:Status>
<q1:Address>
<q1:Street Optional="true" />
<q1:City Optional="true" />
<q1:PostalCode Optional="true" />
</q1:Address>
<q1:PhoneNumber Optional="true" />
</q1:Schema>
<q1:Schema>
<q1:Name Optional="true" MinLength="2">
<q1:AllowedMatchTypes>
<q1:AllowedMatchType>ClosestKeywords</q1:AllowedMatchType>
</q1:AllowedMatchTypes>
</q1:Name>
<q1:Address>
<q1:Street Optional="true" />
<q1:City Optional="true" />
<q1:PostalCode Optional="true" />
</q1:Address>
</q1:Schema>
</q1:Schemas>
<q1:CustomData />
<q1:Countries>
<q1:Country>DE</q1:Country>
</q1:Countries>
</GetPossibleSearchCriteriaResult>
</GetPossibleSearchCriteriaResponse>
</s:Body>
</s:Envelope>
But i am getting error as below:
INSERT INTO "NAMRGST"."TEST_VIJ_2" (XML_FILE, ID) VALUES (NULL, '1')
UPDATE "NAMRGST"."TEST_VIJ_2" SET ID=? WHERE ROWID=:sqldevrowid AND ORA_ROWSCN=:sqldevrowscn
ORA-19011: Character string buffer too small
One error saving changes to table "NAMRGST".:
Row 1: ORA-19011: Character string buffer too small
I tried to google for solution for this problem but dint seem to understand what exactly has to be done..
So please help me out on this..