BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'delete_partition',
job_type => 'STORED_PROCEDURE',
start_date => '28-APR-08 07.00.00 PM Australia/Sydney',
repeat_interval => 'FREQ=MONTHLY;INTERVAL=1', /* every month */
end_date => '20-NOV-08 07.00.00 PM Australia/Sydney',
comments => 'Running on the 17th of every month');
END;
/
Idea is to create a scheduled job which will run a package that drops partitions that are older than 6 months.
Question is how can I create another package in PL/SQL Developer which will include the dbms_scheduler job?
Any help is highly appreciated.