I have multiple schedules and I want to supply all of them to the repeat_interval of a job. However, I can't find a way to do this - Oracle documentation says it's possible, but I can't find any examples. Any help is appreciated. This is what I tried, but it doesn't work:
ORA-06512: at line 2 27418. 00000 - "syntax error in repeat interval or calendar"
*Cause: The repeat interval or calendar definition was not recognized as valid syntax.
begin
dbms_scheduler.create_schedule('SCHED1',
repeat_interval => 'FREQ=DAILY;BYHOUR=9;BYMINUTE=55');
dbms_scheduler.create_schedule('SCHED2',
repeat_interval => 'FREQ=DAILY;BYHOUR=15;BYMINUTE=15');
DBMS_SCHEDULER.CREATE_JOB(
JOB_NAME => 'SCHED_TEST_JOB',
JOB_TYPE => 'STORED_PROCEDURE',
JOB_ACTION => 'SCHED_TEST_JOB_PROCEDURE',
START_DATE => SYSDATE,
REPEAT_INTERVAL => 'FREQ=SCHED1,SCHED2;',
AUTO_DROP => FALSE,
ENABLED => FALSE);
end;
/