stored procedure error

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
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

stored procedure error

Post by India2000 »

Hi,

I have a scenario where I need to call an transform stored procedure(oracle) with In and Out parameters.These parameters are CLOB type. But Datastage 8.7 has the longvarchar equivalent to CLOB. If I use lonavarchar it gives an error datatype not supported.. If I use varchar It gives me value/numeric error in the value..Can any one please give me a direction if DataStage can handle this scenario.

Thanks
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

CLOB can hold up tp 4gb but can you judge what will be the length of input column, Varchar should hold good. Check whether the error is during call of procedure or within procedure

Try with Unknown datatype.
Last edited by prasannakumarkk on Wed Mar 20, 2013 9:04 pm, edited 1 time in total.
Thanks,
Prasanna
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

I get the following errosr fr varchar in datastage

Stored_Procedure_0,0: Fatal Error: Fatal: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "Store_proc",

If I use unknown datatype:

Stored_Procedure_0,0: Error: Output link column definitions failed validation. Refer to previous messages for details.
DSTAGE-STP-0133`:`The SQL type (VarChar) of input link column Request must match the SQL type (Char) of output link column Request.

Store_proc is already defined with IN and OUT parameters as CLOB. I cannot change the store proc as its the existing one..

Since there is a priviege to change the datae type for IN and OUT.. I tried with varchar

if run the store proc directly with varchar in and out.. it gives the error

ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Last edited by India2000 on Sat Mar 23, 2013 8:18 pm, edited 2 times in total.
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Can you check code.at line mentioned in error 167.
I have successfully implemented with varchar.
Thanks,
Prasanna
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

One more question. Do you have Oracle native installed?
Thanks,
Prasanna
India2000
Participant
Posts: 274
Joined: Sun Aug 22, 2010 11:07 am

Post by India2000 »

I have oracle connector and not EE stage.DS version is 8.7
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

prasannakumarkk wrote:I have successfully implemented with varchar.
Only because your CLOB value was small, i.e. 4K or less.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In your shoes I'd be contacting your official support provider, see if the stage even supports CLOBs.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Yes craig it was less than 4k. But the error shown is reverse of what is happening.
Thanks,
Prasanna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Because theirs isn't.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

My first question was that what is the length, but didnt hear anything from OP.
But why the error is thrown at some other line?
Thanks,
Prasanna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Some other line than what? It's clear they have a true "Large OBject" they are dealing with, hence the errors when it tries to shove it into a VARCHAR. And hence my suggestion to check to see of the stage even supports those objects.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Ok let me ask like this
CLOB parameter is IN OUT,
what is the value that is actually being passed (IN)
what is the derived Output value (OUT)
or it is both same?
Thanks,
Prasanna
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Am curious about the solution that you used.
Thanks,
Prasanna
Post Reply