NCLOB data

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

NCLOB data

Post by upscene » Wed 19 May 2010 10:42

Hi,

I get all sorts of errors when trying to work with NCLOB data.

For starters, trying to save UNICODE text fails with:
ORA-22993: specified input amount is greater than actual source amount

If I save the data with UTF8 encoding, I get some strange characters in a data grid. Upon retrieval, it's all like this upside down question marks.


Any idea how to work with this data?

With regards,

Martijn Tonies
Upscene Productions

MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Post by MarkF » Wed 19 May 2010 11:05

Hi Martijn,

I'm working with NCLOB datatype in OCI mode (ora 11 client), D2010, latest ODAC and I don't appear to have any problems. Unicode data inserts and updates of NCLOBs work well. I suspect Devart will need a bit more information about your configuration to help. They'll definitely need to know your ODAC version, if you are using direct mode and also your Oracle Client version (if not using direct mode.) If you are using the Oracle client make sure that it's not older than your server version. They may also need a short code example that shows the problem.

-Mark

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 20 May 2010 11:34

Hello

Please specify your: ODAC version, Delphi version, Oracle client and server version, which connection mode do you use: OCI or Direct, Unicode or not. Also please provide code that converts you text to UTF8 and writes it to NClob field.

You should keep in mind that NClob store text in the UTF16 format. Try not to convert your text to UTF8 manually. Oracle client converts text to the necessary encoding automatically.

Post Reply