Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/11/2012, 08:44
Avatar de h2swider
h2swider
 
Fecha de Ingreso: julio-2007
Ubicación: Ciudad de Buenos Aires
Mensajes: 932
Antigüedad: 16 años, 9 meses
Puntos: 194
Ejecutando un job

Tengo el siguiente job
Código SQL:
Ver original
  1. SYS.DBMS_JOB.SUBMIT
  2.   (
  3.   JOB        => v_job_number
  4.   ,what       => ' UPDATE T_RECEPCION R
  5.    SET R.ID_ESTADO = 1
  6.    WHERE R.ID_ESTADO = 6
  7.    And EXISTS (select 1
  8.      from t_llamado L
  9.      where L.id_num = r.id_num
  10.      AND L.NUM_LLAMADO IN (1,2)
  11.      and    trunc(f_llamado) = trunc(sysdate)
  12.      AND f_llamado + 10/1440 <= sysdate
  13.      and not exists (select 1
  14.         from t_llamado L2
  15.         where L.id_num = l2.id_num
  16.         and    l2.f_llamado > l.f_llamado
  17.         --and L2.NUM_LLAMADO > L.NUM_LLAMADO
  18.      )
  19.    );
  20.    COMMIT;'
  21.   ,next_date  => sysdate
  22.   ,INTERVAL   => sysdate + 5/1440
  23.   ,no_parse   => FALSE
  24. );
  25. COMMIT;
  26. END SET_JOB;

Compilado sin problemas.
El problema es que el job no se esta ejecutando y no se por que puede ser, es la primera vez que hago un job.

Si ejecuto el update por separado fuera del job funciona perfecto.
__________________
Codifica siempre como si la persona que finalmente mantedra tu código sea un psicópata violento que sabe donde vives