CLOB / BLOB

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vss
Participant
Posts: 10
Joined: Mon Oct 10, 2005 12:31 am

CLOB / BLOB

Post by vss »

Hi,

I need to read BLOB/CLOB columns from and Table and insert them in another table.
I dont find any way to read the CLOB/BLOB columns using Oracle Enterprise Stage.
Any inputs will be highly appreciated.

Thanks in advance,
Vss
RamonaReed
Participant
Posts: 26
Joined: Fri Feb 27, 2004 7:23 am
Location: WI, USA

Post by RamonaReed »

When you write your query from the Oracle table, you will need to do the following:

select (to_char(BLOB_FIELD)) as BLOB_TXT from SrcTable

And have your column defines as LongVarChar (4000)
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

As per me, you can't move BLOB datatypes using Oracle OCI. You can move CLOB datatypes by reading it as a LongVarchar(4000).
Kris

Where's the "Any" key?-Homer Simpson
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For recent versions of Oracle, check out the DBMS_LOB package. I've found it helps with handling data of this nature more than using a large (or Long) Varchar datatype by itself does.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply