bonjour je cherche a cedule une job a chaque heure de 45 min genre
1h45
2h45
3h45 .. etc
voici ou j en suis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'ARCHIVE_JOB;'
,next_date => to_date('20-10-2011 18:45:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'trunc(sysdate)+45/86400'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/ |
il est presentement 18:h40 donc je voudrais qu elle parte a 18h45
mais j ai comme message
ORA-23420: l'intervalle doit évaluer un délai du futur
ORA-06512: à "SYS.DBMS_JOB", ligne 60
ORA-06512: à "SYS.DBMS_JOB", ligne 138
ORA-06512: à ligne 4
et si j'ajoute un
,interval => 'trunc(sysdate+1)+45/86400'
ca va le partir mais le resultat ca va pas du tout.
est ce qu il y aune personne qui a une solution merci d avance
Partager