Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: DBMS_JOBS.SUBMIT - DYNAMIC ???

Re: DBMS_JOBS.SUBMIT - DYNAMIC ???

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Sat, 6 Jan 2007 07:31:34 +0100
Message-ID: <459f4244$0$3500$426a74cc@news.free.fr>

"jobs" <jobs_at_webdos.com> a écrit dans le message de news: 1168036855.163491.253060_at_42g2000cwt.googlegroups.com...
| I'm trying to do something like the following so that I can call this
| sp from a vb.net/ado.net and it will schedule an oracle sp, however I
| suspect this will not work as DBMS_JOB.SUBMIT is not going to parse
| procname.. How can I do this, and is this even the smartest way to do
| this?
|
| CREATE OR REPLACE PROCEDURE MYJOB_JOB(procname in varchar)
| IS
| jobno number;
| BEGIN
| DBMS_JOB.SUBMIT(jobno,procname,sysdate);
| commit;
| END;
|

Yes this works.
Just a small change:

DBMS_JOB.SUBMIT(jobno,procname||';',sysdate);

Regards
Michel Cadot Received on Sat Jan 06 2007 - 00:31:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US