Oracle and DataStage

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
jman
Participant
Posts: 19
Joined: Mon Jan 10, 2005 12:45 pm

Oracle and DataStage

Post by jman »

How can I use the Oracle function DBMS_APPLICATION_INFO.SET_MODULE(...) In a DataStage OracleOci8 Stage???

Or maybe somebody know another why to use this function in DataStage.

Thanks in advance.

Jman 8)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The OCI stage only uses SQL. So, if you can specify how you'd use it in SQL, you can use it in the OCI stage. Presumably as a "before" command rather than every row.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's a procedure, so you'd need to call it directly in the Before (or After) SQL tab. Search the forum for examples of using Stored Procedures with the OCI stages.
-craig

"You can never have too many knives" -- Logan Nine Fingers
wdudek
Participant
Posts: 66
Joined: Mon Dec 08, 2003 10:44 am

Post by wdudek »

In the before (or after) tab put the following line

Code: Select all

 CALL DBMS_APPLICATION_INFO.SET_MODULE(...) 
If CALL doesn't work try execute, but for some reason I think datastage likes call better. I tried looking for an example of how we do this but couldn't find one.
jman
Participant
Posts: 19
Joined: Mon Jan 10, 2005 12:45 pm

Post by jman »

Thanks to all


jman 8)
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Stored procedure can be called from Before/After tabs available in OCI stage.

Regards
Saravanan
Post Reply