Exported jobs
This commit is contained in:
parent
baad469e1f
commit
b2d2240bd3
@ -13,13 +13,15 @@ BEGIN
|
|||||||
job_name => in_job_name,
|
job_name => in_job_name,
|
||||||
job_type => 'STORED_PROCEDURE',
|
job_type => 'STORED_PROCEDURE',
|
||||||
job_action => 'app.purge_logs',
|
job_action => 'app.purge_logs',
|
||||||
|
number_of_arguments => 0,
|
||||||
start_date => SYSDATE,
|
start_date => SYSDATE,
|
||||||
repeat_interval => 'FREQ=DAILY; BYHOUR=2; BYMINUTE=0', -- 02:00
|
repeat_interval => 'FREQ=DAILY; BYHOUR=2; BYMINUTE=0',
|
||||||
enabled => FALSE,
|
enabled => FALSE,
|
||||||
|
auto_drop => TRUE,
|
||||||
comments => 'Purge old records from LOGS table and related tables'
|
comments => 'Purge old records from LOGS table and related tables'
|
||||||
);
|
);
|
||||||
--
|
--
|
||||||
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 5); -- lower priority
|
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 5);
|
||||||
DBMS_SCHEDULER.ENABLE(in_job_name);
|
DBMS_SCHEDULER.ENABLE(in_job_name);
|
||||||
COMMIT;
|
COMMIT;
|
||||||
--
|
--
|
||||||
@ -30,3 +32,4 @@ BEGIN
|
|||||||
END;
|
END;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -13,13 +13,15 @@ BEGIN
|
|||||||
job_name => in_job_name,
|
job_name => in_job_name,
|
||||||
job_type => 'STORED_PROCEDURE',
|
job_type => 'STORED_PROCEDURE',
|
||||||
job_action => 'app.refresh_mviews',
|
job_action => 'app.refresh_mviews',
|
||||||
|
number_of_arguments => 0,
|
||||||
start_date => SYSDATE,
|
start_date => SYSDATE,
|
||||||
repeat_interval => 'FREQ=DAILY; BYHOUR=0; BYMINUTE=2', -- 00:02
|
repeat_interval => 'FREQ=DAILY; BYHOUR=0; BYMINUTE=2',
|
||||||
enabled => FALSE,
|
enabled => FALSE,
|
||||||
|
auto_drop => TRUE,
|
||||||
comments => 'Refresh all existing materialized views'
|
comments => 'Refresh all existing materialized views'
|
||||||
);
|
);
|
||||||
--
|
--
|
||||||
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 3); -- normal priority
|
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 3);
|
||||||
DBMS_SCHEDULER.ENABLE(in_job_name);
|
DBMS_SCHEDULER.ENABLE(in_job_name);
|
||||||
COMMIT;
|
COMMIT;
|
||||||
--
|
--
|
||||||
@ -30,3 +32,4 @@ BEGIN
|
|||||||
END;
|
END;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,14 +15,15 @@ BEGIN
|
|||||||
job_action => 'app.sync_logs',
|
job_action => 'app.sync_logs',
|
||||||
number_of_arguments => 1,
|
number_of_arguments => 1,
|
||||||
start_date => SYSDATE,
|
start_date => SYSDATE,
|
||||||
repeat_interval => 'FREQ=MINUTELY;INTERVAL=1', -- every minute
|
repeat_interval => 'FREQ=MINUTELY;INTERVAL=1',
|
||||||
enabled => FALSE,
|
enabled => FALSE,
|
||||||
|
auto_drop => TRUE,
|
||||||
comments => 'Sync SCHEDULER results and DML errors to LOGS table'
|
comments => 'Sync SCHEDULER results and DML errors to LOGS table'
|
||||||
);
|
);
|
||||||
--
|
--
|
||||||
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE(in_job_name, argument_position => 1, argument_value => 1/24);
|
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE(in_job_name, argument_position => 1, argument_value => .0416666666666666666666666666666666666667);
|
||||||
--
|
--
|
||||||
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 5); -- lower priority
|
DBMS_SCHEDULER.SET_ATTRIBUTE(in_job_name, 'JOB_PRIORITY', 5);
|
||||||
DBMS_SCHEDULER.ENABLE(in_job_name);
|
DBMS_SCHEDULER.ENABLE(in_job_name);
|
||||||
COMMIT;
|
COMMIT;
|
||||||
--
|
--
|
||||||
@ -33,3 +34,4 @@ BEGIN
|
|||||||
END;
|
END;
|
||||||
/
|
/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user