Exported jobs
This commit is contained in:
parent
baad469e1f
commit
b2d2240bd3
@ -13,13 +13,15 @@ BEGIN
|
||||
job_name => in_job_name,
|
||||
job_type => 'STORED_PROCEDURE',
|
||||
job_action => 'app.purge_logs',
|
||||
number_of_arguments => 0,
|
||||
start_date => SYSDATE,
|
||||
repeat_interval => 'FREQ=DAILY; BYHOUR=2; BYMINUTE=0', -- 02:00
|
||||
repeat_interval => 'FREQ=DAILY; BYHOUR=2; BYMINUTE=0',
|
||||
enabled => FALSE,
|
||||
auto_drop => TRUE,
|
||||
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);
|
||||
COMMIT;
|
||||
--
|
||||
@ -30,3 +32,4 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
|
||||
@ -13,13 +13,15 @@ BEGIN
|
||||
job_name => in_job_name,
|
||||
job_type => 'STORED_PROCEDURE',
|
||||
job_action => 'app.refresh_mviews',
|
||||
number_of_arguments => 0,
|
||||
start_date => SYSDATE,
|
||||
repeat_interval => 'FREQ=DAILY; BYHOUR=0; BYMINUTE=2', -- 00:02
|
||||
repeat_interval => 'FREQ=DAILY; BYHOUR=0; BYMINUTE=2',
|
||||
enabled => FALSE,
|
||||
auto_drop => TRUE,
|
||||
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);
|
||||
COMMIT;
|
||||
--
|
||||
@ -30,3 +32,4 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
|
||||
@ -15,14 +15,15 @@ BEGIN
|
||||
job_action => 'app.sync_logs',
|
||||
number_of_arguments => 1,
|
||||
start_date => SYSDATE,
|
||||
repeat_interval => 'FREQ=MINUTELY;INTERVAL=1', -- every minute
|
||||
repeat_interval => 'FREQ=MINUTELY;INTERVAL=1',
|
||||
enabled => FALSE,
|
||||
auto_drop => TRUE,
|
||||
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);
|
||||
COMMIT;
|
||||
--
|
||||
@ -33,3 +34,4 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user