How to call a stored proc from OCI stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

How to call a stored proc from OCI stage

Post by datisaq »

Can we call a stored proc from oracle OCI stage?
If it's then pls tell me clearly since i'm new to Datastage.

I heard we can call from Oracle EE in parallel edition.


Pls help me out...
IBM Certified - Information Server 8.1
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Yes, from OCI stage's Before box, issue "call stp.name();".
paddu
Premium Member
Premium Member
Posts: 232
Joined: Tue Feb 22, 2005 11:14 am
Location: California

Post by paddu »

You can call stored procedure in before or after sql TAB in OCI stage .


CALL STPName(Input paramters if you have any);
COMMIT

Probably need a COMMIT if you do not have a implicit commit in stored procedure.
There is nothing good or bad, but thinking makes it so. --William Shakespeare
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

Thanks for the help i'll try it...
IBM Certified - Information Server 8.1
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

Thanks again, i'm able to call from OCI..
One clarification i need it, performance wise which is the best method of calling a script through script or call from the OCI stage since the proc which we call will inturn call some other 20 procs in it..

Which is the best suitable method?


Pls help me...
IBM Certified - Information Server 8.1
Post Reply