Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use repeat_interval in create_job of dbms_scheduler

Bashish-OracleNov 14 2006 — edited Nov 15 2006
Hi,

Trying to execute a procedure repeatadly using job, but fails to execute.

The procedure, I am trying to execute is
create procedure p1 as
begin
insert into tab1 values ('ashish');
commit;
end;
/

where tab1 table is defined as
create table tab1( a varchar2(100) );

and the job I created as

begin
dbms_scheduler.create_job(
job_name => 'TEST_JOB'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin p1(); end;'
,repeat_interval => 'FREQ=MINUTELY; INTERVAL=2'
,enabled => TRUE
,auto_drop => FALSE
,comments => 'Test job');
end;
/

As I am new to scheduler, any help in details much appreciated.


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2006
Added on Nov 14 2006
5 comments
11,587 views