jlcox
Member³
Consider:
Execute this in a command window, then query dba_scheduler_schedules and examine the REPEAT_INTERVAL column. Everything is good.
Now edit this schedule through the Scheduler window in PL/SQL Developer. Make a minor modification to the comments to enable the Apply button, then click it. Now query dba_scheduler_schedules again and look at the REPEAT_INTERVAL.
Uh-oh. A developer tool should not do damage like this.
Code:
begin
dbms_scheduler.create_schedule(schedule_name => 'SCHD_2011_PLANT_HOLIDAYS',
start_date => to_timestamp_tz('01/01/2011 00:00:00 AMERICA/NEW_YORK',
'dd/mm/yyyy hh24:mi:ss tzr'),
end_date => to_timestamp_tz('31/12/2011 23:59:59 AMERICA/NEW_YORK',
'dd/mm/yyyy hh24:mi:ss tzr'),
repeat_interval => 'freq=DAILY;bydate=20110422,20110530,20110704,20110705,20110905,
20111124,20111125,20111223,20111226,20111230',
comments => 'Plant Holidays 2011');
end;
Execute this in a command window, then query dba_scheduler_schedules and examine the REPEAT_INTERVAL column. Everything is good.
Now edit this schedule through the Scheduler window in PL/SQL Developer. Make a minor modification to the comments to enable the Apply button, then click it. Now query dba_scheduler_schedules again and look at the REPEAT_INTERVAL.
Uh-oh. A developer tool should not do damage like this.