Page 1 of 1

How to load CLOB Column?

Posted: Mon Feb 25, 2013 9:26 am
by sohasaid
Hi,

At my project, we had to migrate CLOB data including Arabic data and we've successed. I thought of sharing my experience, it could be useful for anybody.

We've followed these steps to load CLOB:

1. Source stage is Oracle connector or DRS connector stage.
If Oracle connector stage is used, don't enable LOB references.

2. Define CLOB column at source and destination stages as LongVarChar without specifying length, also don't define it as 'Unicode'.

3. For English data, I didn't find a problem loading it using default project NLS which is 'ISO-8859-1'.

To migrate Arabic data also successfully, we had to try different NLS and it has worked with 'ISO8859-6' and 'UTF8'.
4. Array Size and Transaction Size have to set as 1 and bulk load will not work of course with CLOB or LONG data type.

Source and destination database is Oracle and NLS_CHARACTERSET for both is AL32UTF8.

I didn't try this solution with LONG datatype, but it could work.

Hope this helps.
Regards.

Posted: Mon Feb 25, 2013 2:22 pm
by chulett
Thanks for posting that!

Posted: Tue Feb 26, 2013 2:47 am
by sohasaid
Good news for LONG as well! :)

It has worked with the same configuration except that source stage has to be Oracle connector stage because it's a MUST to 'Enable LOB references' to make it works.

Also it has loaded Arabic data with NLS of 'ISO8859-6'

Regards.

Posted: Tue Feb 26, 2013 3:51 am
by vamsi.4a6
Could you please clarify below doubt.

Suppose If in a single Job we are using both english and Arabic data ,which NLS Settings we have to use and also could you please explain why you selected the following NLS(with 'ISO8859-6' and 'UTF8').

Posted: Tue Feb 26, 2013 7:08 am
by sohasaid
vamsi.4a6 wrote: which NLS Settings we have to use?
'ISO8859-6' suppose to work fine.

For second point, I've tried multiple NLS until it has worked with 'ISO8859-6' on one schema and 'UTF8' on another one.

I think choosing the right NLS is dependent on your database's NLS character set.

Regards.

Posted: Tue Feb 26, 2013 3:08 pm
by ray.wurlod
ISO8859-x (for any x) includes "ASCII" characters.