call buildin prceodure 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
Veni
Participant
Posts: 45
Joined: Fri Oct 21, 2005 2:51 am

call buildin prceodure from oci stage

Post by Veni »

Hi all,

how to call build in procedure from oracle oci stage , i want to run following pl/sql code from oci stage

begin DBMS_MVIEW.REFRESH('Test_VW'); end;

Thanks
rv
klarson88
Participant
Posts: 9
Joined: Wed Jan 28, 2004 11:37 am
Contact:

Re: call buildin prceodure from oci stage

Post by klarson88 »

Veni wrote:Hi all,

how to call build in procedure from oracle oci stage , i want to run following pl/sql code from oci stage

begin DBMS_MVIEW.REFRESH('Test_VW'); end;

Thanks
rv
I am not sure if you wish to do this as a before or after proc. Assuming you wish to refresh your view after you insert data into a table, on the SQL/After tab, insert:

CALL DBMS_MVIEW.REFRESH('Test_VW')

I looked for a siminar post last night and found one that used CALL instead of BEGIN ... END;
Post Reply