How to Oracle stored procedure in ORACLE 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
RaviM
Participant
Posts: 12
Joined: Thu Aug 19, 2004 4:13 pm

How to Oracle stored procedure in ORACLE stage?

Post by RaviM »

Could plz help me in calling stored procedure,
How to Oracle stored procedure in ORACLE stage?
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

If you just want to call a procedure in the before/after-SQL, then you use the syntax:

Code: Select all

call procname(params);;
You can call many procs this way in the same before/after-SQL, just remember to put a double-semi-colon after each.

You CANNOT call an anonymous PL/SQL block (eg. BEGIN ... END;)
Ross Leishman
arunverma
Participant
Posts: 90
Joined: Tue Apr 20, 2004 8:20 am
Location: MUMBAI
Contact:

Post by arunverma »

Another way to call procedure with PL/SQL / Insert /Update etc .

== First create procedure in Oracle database .
== Create shell script which connect oracle and execute procedure
== Call this shell script from DS Jobs with Before/After job subrouite ( ExecSH) .

Regards
Arun
Arun Verma
Post Reply