Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What's the difference between XMLType and CLOB(or NCLOB)

719812Aug 28 2009 — edited Sep 10 2009
Hi,

I've met a strange problem in my C# project. I create a table , which includes a XMLType column. Then when I insert some data to it, a ORA-01461 ( can bind LONG only ...balabala... ) error occurs. I've already use OracleParameter to build OracleCommand, and assign the corresponding parameter to Oracle.CLOB type( there is no XMLType in my VS2008 ).

I don't know how to fix it. But I try to modify the column type to CLOB, to my surprise, it works. And then I tried NCLOB, because I need to storage some Chinese characters.

So I wonder to know what's the difference between XMLType and CLOB(or NCLOB), why my code can works after change the column type?


My environment:
Server : Oracle 10.2
Client : Oracle Client 10.2
Language: C# with .Net framework 2.0
Data : some xml string with 5000+ ANSI characters

Thanks a lot .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2009
Added on Aug 28 2009
2 comments
3,496 views