Error in extracting records having CLOB datatype.

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
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Error in extracting records having CLOB datatype.

Post by deepu_n55 »

Hi All,
I have a problem , i hope you guys could help me on this. I am having problem in extracting records from Oracle table where one of the column has CLOB datatype. I am using Oracle Enterprise stage . Target column also has the datatype as CLOB. I tried using longVarchar in datastage still wouldnt work . Do you guys have any idea.
thanks in advance . i appreciate your help
Regards,
Deepu
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

as you might know that datastage doesn't support clob datatypes and there is no default conversion from clob to any other datatype.

You have to convert it to some other datatype in your SQL query itself say varchar2 or something else.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Cut and pasting the error message here would help as well.
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Post by deepu_n55 »

The Error i See is as below. can anyone suggest me any solution?

: Error when checking operator: Caught parsing exception during wrapDescribeOperator(): Could not find type: oratype:112
Regards,
Deepu
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

What version of DataStage are you using? The Oracle Connector has the ability to reference an LOB data type -- at least in 8.5 and above. I can't remember if 8.0 or 8.1 had this capability.
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Post by deepu_n55 »

I am using 8.1 version and Oracle Enterprise stage . this doesn't have CLOB datatype
Regards,
Deepu
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

I knew from your previous you are using the Oracle Enterprise Stage. Do you have the Oracle Connector and could you try that instead? Your requirement is to move data, not to move it with a particular stage.
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Post by deepu_n55 »

No i don't have Oracle Connector stage available. any solutions ??
Regards,
Deepu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, try casting the column to a supported datatype. Or upgrade DataStage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Post by deepu_n55 »

I tried using LongVarchar ,LongNvarchar, LongVarBInary too .. still doesnt work . do i have to make any changes in the size field? i appreciate ur help, guys
thank you
Regards,
Deepu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to do more than change the datatype in the job, you need to do something like CAST on the field in your source query as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
deepu_n55
Participant
Posts: 15
Joined: Thu Mar 15, 2012 9:19 pm

Post by deepu_n55 »

Thanks Craig,
Im not soo good at Queries can you tell me how to do that? I appreciate you.
Regards,
Deepu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Talk to someone you work with that can help - DBA, Architect, whomever.

Google can also help as well. For example, a search for "oracle cast clob to varchar2" returns many results, including this one from the perennial favorite Ask Tom.
-craig

"You can never have too many knives" -- Logan Nine Fingers
svga
Participant
Posts: 73
Joined: Thu Aug 07, 2008 6:31 am
Location: Syracuse

Post by svga »

Pls try using VARCHAR(999999999) datatype..
Post Reply