Hi All,
Is it possible to call a PL/SQL Procedure after a datastage job is executed? pls let me know.
Thanks
PL/SQL Procedure to be called after datastage job.
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 34
- Joined: Fri May 16, 2008 6:24 am
-
- Premium Member
- Posts: 34
- Joined: Fri May 16, 2008 6:24 am
Are you serious??shreya27 wrote:varaprasad wrote:yes it is
Can you pls provide the syntax to wrap the plsql code in unix shell script?
Okay, Firstly you have not provided the full details of your environment mainly the Database.
But the below snippet may help you, if your database is Oracle.
#!/bin/sh
sqlplus -s username/password<<END
execute procedure_name( ..parameters..)
commit;
exit;
END
I think very simply we can call the SP after the job.
Make one job with some table def. stage, pass some dummy column and the SP being called in the after sql part of it. then just link it to some dummy seq file.
Now in a sequencer, link this job after the main job. I hope this can solve the purpose.
Make one job with some table def. stage, pass some dummy column and the SP being called in the after sql part of it. then just link it to some dummy seq file.
Now in a sequencer, link this job after the main job. I hope this can solve the purpose.