Solved

Using Delphi 7 to insert XML into an Oracle 10g XMLTYPE field gives ora_21500 Internal Error

Posted on 2006-06-15
3
825 Views
Last Modified: 2010-07-07
Hi Experts,

We have an urgent one here:

Using Delphi 7 with Direct Oracle Access 4.0.7.1, we are trying to insert an XML string into an Oracle 10g XMLTYPE data field and it is returning the errors:
"ORA-21500 Internal Error" and then it gives "OCI-21500 Internal Error".

Your immediate help would be very much appreciated.

Cheers,
Alex
0
Comment
Question by:alexapostolou
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
Comment Utility
well no experience using this via doa,

but i usual do prestore the xml-doc into a clob-field,
there is included a after insert-trigger on the table,
which does then a validation of the doc against a schema
and transfers it, if valid, into the xmltype-field,
otherwise a invalid-flag will be set on the table

of course this is only a workaround in your case

meikl ;-)
0
 

Author Comment

by:alexapostolou
Comment Utility
We have found that Oracle's XMLTYPE field (10g) does not permit ascii chars 17 through 22 so these have to be removed from the XML before trying an insert into the field. Thanks for your time.

Alex
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
glad you got it solved :-))

never guessed this with this special charcters

meikl ;-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now