About oracle unusual job running time setting

During this time I've been on the job is set according to the actual situation, but according to the literature spent a lot of effort to guess the desired effect of which two are of particular note to the home I share the hope that useful

 1: every day at midnight integral execution

TRUNC (SYSDATE + 1) + (0 * 60 + 10) / (24 * 60) - over 10 minutes every morning job execution

2. A few minutes after every hour job execution

trunc (sysdate, '' hh '') + (60 + 5) / (24 * 60) - this requires special attention to this hh family four single quotes job through execution of 5 per hour 

In addition to the above two Personally, I think the following literature rarely mentioned outside of conventional I also posted:

About job running time

1: Executive per minute
Interval => TRUNC (sysdate, ' mi') + 1 / (24 * 60)


2: Timing daily execution
example: everyday 1:00 perform
Interval => TRUNC (sysdate) + 1 + 1 / (24)


3: regular weekly execution
example: Monday at 1 a.m.
Interval => TRUNC (next_day (sysdate , ' Monday')) + 1/24


4: Monthly regular implementation
example: every month at 1:00 on the 1st execution
Interval => TRUNC (LAST_DAY (SYSDATE )) + 1 + 1/24


5: execution timing of each quarter
e.g. the first quarter of each day at 1 a.m.
Interval => TRUNC (ADD_MONTHS (SYSDATE , 3), 'Q') + 1/24


6: regular implementation every six months
, for example: the annual July 1 and at 1:00 on January 1
Interval => ADD_MONTHS (trunc (sysdate , 'yyyy'), 6) +1/24


7: annual regular implementation
example: every year at 1:00 on January 1 performs
Interval => ADD_MONTHS (trunc (sysdate , 'yyyy'), 12) +1/24

The operating frequency setting job

1. The operation of a fixed time every day, such as 8:10 am min: Trunc (Sysdate + 1) + (8 * 60 + 10) / 24 * 60

2.Toad provided:
day: trunc (sysdate + 1)
Weekly: trunc (sysdate + 7)
Monthly: trunc (sysdate + 30)
every Sunday: next_day (trunc (sysdate), ' Sunday')
6 day point: trunc (sysdate + 1) +6/24
half hour: sysdate + 30 / (24 * 60)

Guess you like

Origin www.cnblogs.com/COMEmyHome/p/12133966.html