- Este tópico contém 0 resposta, 1 voz e foi atualizado pela última vez 18 anos, 1 mês atrás por
paribe.
Visualizando 1 post (de 1 do total)
Visualizando 1 post (de 1 do total)
- Você deve fazer login para responder a este tópico.
› Fóruns › Banco de dados Oracle › Criar um job
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
› Fóruns › Banco de dados Oracle › Criar um job