Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> does dbms_job.submit work?
I wrote a procedure as follows:
create or replace procedure guguck as
begin
insert into debug_log (text, timestamp) values 'this record is inserted by guguck', sysdate; commit;
The procedure gets compiled just fine (I have created table debug_log
prior to that). Then
I entered:
declare
v_JobNo binary_integer;
begin
dbms_job.submit(v_jobNo, 'guguck;', sysdate+1/(24*60)); end;
The message "PL/SQL procedure successfully completed." is returned. Also user_jobs showed a new job scheduled for the next minute.
But when I checked debug_log after the scheduled time (several times) I never found the record I mean to insert in procedure GUGUCK.
I tested this on Oracle7 and 8. Neither worked.
Any hint/explanation will be greatly appreciated.
Received on Wed Jun 30 1999 - 16:31:32 CDT