how to retrive the data from CLOB Column through datastage

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
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

how to retrive the data from CLOB Column through datastage

Post by uppalapati2003 »

i have two clob columns in Oracle DB i have to select the data in datastage i am getting error can anyone suggest me how to retrive the data from CLOB Column through datastage
Srini
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please delete your duplicate post before anyone responds to it.

CLOB is not a supported data type but you can usually successfully use a sufficiently large VarChar field.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

Post by uppalapati2003 »

i am using datatype as longvarchar in oracle enterprise stage in datastage but i am getting below error
Internal Error: (colDesc):orautils.C: 1714: getColDesc failed.
i am successfully loading the data but i am not able to retrive the data.
Srini
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Search the forums for "CLOB", it has been discussed here quite a bit.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Vikas Jain
Participant
Posts: 15
Joined: Tue Dec 13, 2005 12:38 am

Re: how to retrive the data from CLOB Column through datast

Post by Vikas Jain »

As told by Ray, If you are using 7.X version of DStage, then using a Long Varchar, can enable to read you using the 'view data' option and will also enable you to process CLOB columns. I have a similar case and I use LongVarchar(4000) for the same.
For 8.0.1 , IBM has provided a patch to fix this, since LongVarchar option to access CLOB din't work there in my case, I think the same fix is applied to the latest versions after 8.0.1
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

THNAKS EVERYBODY WHO RESPONDED TO MY TOPIC

Post by uppalapati2003 »

my problem was solved i am able to read the data using to_char(clob column name)
thnaks all
Srini
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, that can work provided you know that the maximum length of the data in the CLOB is less than (or equal to) 4000.
-craig

"You can never have too many knives" -- Logan Nine Fingers
devanars
Premium Member
Premium Member
Posts: 99
Joined: Thu Nov 30, 2006 6:25 pm

Post by devanars »

Is there any issue writing data in to CLOB in oracle!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, there can be and again it centers around just how much C you need to put into the LOB.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rohit_mca2003
Participant
Posts: 41
Joined: Wed Oct 08, 2008 9:19 am

Post by rohit_mca2003 »

Please try to use Dynamic RDBMS stage to retrieve CLOB data... select datatype of column as Longvarchar but do not menion any column length... it works for lengthy CLOBs also.
devanars
Premium Member
Premium Member
Posts: 99
Joined: Thu Nov 30, 2006 6:25 pm

Post by devanars »

How can we read from db2 stage if the length is varchar 700.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You really need to start your own post for this. :?
-craig

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