Problem with bigger XML-Documents in TORAXMLField?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
adeptus
Posts: 7
Joined: Fri 12 Aug 2005 12:22
Location: Hamburg, Germany

Problem with bigger XML-Documents in TORAXMLField?

Post by adeptus » Thu 18 Aug 2005 11:38

Hi,
me again...

It looks like there are some issues regarding TOraXMLFields of a certain size. Using your XML-Demo (XMLType.dpr) i am able to update the Fields of type XMLTYPE without problems. But as soon as the Size of the XMLCode exceeds 4096 bytes I get the following error:

ORA:03118: Two-Task Coroutine not valid (since I use the german version of oracle the english Message may be slightly different).

This can´t be a problem of oracle since using the following PL/SQL-Proc I was able to import XML-files into Records in the database wich sizes were 12 KB and more...

DBMS_LOB.createtemporary (l_clob, TRUE);

DBMS_LOB.fileopen(l_bfile);
DBMS_LOB.loadfromfile(l_clob, l_bfile, DBMS_LOB.getlength(l_bfile));
DBMS_LOB.fileclose(l_bfile);

INSERT INTO sev.xml_tab (
XML_ID,
XML_Filename,
XML_XMLCode,
XML_VERARBEITET
)
VALUES (
xml_tab_seq.NEXTVAL,
p_filename,
XMLTYPE.createXML(l_clob),
'Nein'
);
COMMIT;

DBMS_LOB.freetemporary (l_clob);

Can anyone help me on this?

Thanks!

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Thu 18 Aug 2005 13:18

This is a known problem of Client 9.2.0.1.0, Server 9.2.0.1.0. This problem is fixed in 9.2.0.3.0 version.
You can pass XMLType as Lob parameter in your example.

adeptus
Posts: 7
Joined: Fri 12 Aug 2005 12:22
Location: Hamburg, Germany

Post by adeptus » Fri 19 Aug 2005 09:25

Paul wrote:This is a known problem of Client 9.2.0.1.0, Server 9.2.0.1.0. This problem is fixed in 9.2.0.3.0 version.
You can pass XMLType as Lob parameter in your example.
I just tried it with Server 9.2.0.6 but unfortunately still with Client 9.2.0.1 and it didn´t work. Do I really have to update both Client and Server?

adeptus
Posts: 7
Joined: Fri 12 Aug 2005 12:22
Location: Hamburg, Germany

Post by adeptus » Fri 19 Aug 2005 11:25

adeptus wrote:
Paul wrote:This is a known problem of Client 9.2.0.1.0, Server 9.2.0.1.0. This problem is fixed in 9.2.0.3.0 version.
You can pass XMLType as Lob parameter in your example.
I just tried it with Server 9.2.0.6 but unfortunately still with Client 9.2.0.1 and it didn´t work. Do I really have to update both Client and Server?
Yes it has to be... I got it to work with both server and client 9.2.0.6!

Thanks for the tip!

Post Reply