Caros,
estou tentando gerar um job onde rode de segunda a sexta mas não estou conseguindo se alguem puder me ajudar …
abs
-- ----------------------------------------------------------------
-- Submit job to begin at 0600 and run every hour, Monday - Friday
-- ----------------------------------------------------------------
declare
jobno number :=0;
instno number:=0;
begin
dbms_job.submit(
jobno,
'statspack.snap;',
trunc(sysdate+1)+1/24,
'trunc(
least(
next_day(SYSDATE,''SEGUNDA_FEIRA''),
next_day(SYSDATE,''TERCA-FEIRA''),
next_day(SYSDATE,''QUARTA-FEIRA''),
next_day(SYSDATE,''QUINTA-FEIRA''),
next_day(SYSDATE,''SEXTA-FEIRA'')
)
+1/24,''HH'')',
TRUE,
instno);
end;
ERRO na linha 1:
ORA-12899: valor muito grande para a coluna "SYS"."JOB$"."INTERVAL#" (real: 417, máximo: 200)
ORA-06512: em "SYS.DBMS_IJOB", line 214
ORA-06512: em "SYS.DBMS_JOB", line 153
ORA-06512: em line 8