日期:2014-05-16 浏览次数:20796 次
begin
DBMS_SCHEDULER.CREATE_SCHEDULE (
schedule_name =>'FETCH_P_SCHED',
start_date =>sysdate,
repeat_interval =>'freq=hourly; byminute=30'
);
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name =>'FETCH_P_PRO',
program_type =>'STORED_PROCEDURE',
program_action =>'fetch_current_product',
number_of_arguments =>0,
enabled =>TRUE
);
DBMS_SCHEDULER.CREATE_JOB (
job_name =>'FETCH_P_JOB',
program_name =>'FETCH_P_PRO',
schedule_name =>'FETCH_P_SCHED',
enabled =>TRUE,
auto_drop =>FALSE
);
end;
begin
DBMS_SCHEDULER.CREATE_SCHEDULE (
schedule_name =>'FETCH_P_SCHED',
start_date =>systimestamp,
repeat_interval =>'freq=hourly; byminute=30; BYSECOND=0'
);
...
end;