본문 바로가기
Oracle/운영

DBA_SCHEDULER_JOB_LOG

by 취미툰 2021. 1. 29.
반응형

Oracle에서 등록된 스케줄러에 대해서 성공/실패 로그를 볼 수 있는 테이블입니다.

 

SQL> desc dba_scheduler_job_log;
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 LOG_ID                                    NOT NULL NUMBER
 LOG_DATE                                           TIMESTAMP(6) WITH TIME ZONE
 OWNER                                              VARCHAR2(30)
 JOB_NAME                                           VARCHAR2(260)
 JOB_SUBNAME                                        VARCHAR2(260)
 JOB_CLASS                                          VARCHAR2(30)
 OPERATION                                          VARCHAR2(30)
 STATUS                                             VARCHAR2(30)
 USER_NAME                                          VARCHAR2(30)
 CLIENT_ID                                          VARCHAR2(64)
 GLOBAL_UID                                         VARCHAR2(32)
 CREDENTIAL_OWNER                                   VARCHAR2(260)
 CREDENTIAL_NAME                                    VARCHAR2(260)
 DESTINATION_OWNER                                  VARCHAR2(512)
 DESTINATION                                        VARCHAR2(512)
 ADDITIONAL_INFO                                    CLOB

 

컬럼 중 OPERATION,STATUS 컬럼에 대해서 들어오는 값들에 대한 설명을 아래에 하겠습니다.

 

OPERATION

  • CREATE - JOB이 생성됨

  • UPDATE - JOB의 특성이 하나이상 변경됨

  • ENABLE - JOB이 활성화 됨

  • DISABLE - JOB이 비활성화 됨

  • COMPLETED - 반복 JOB의 경우에 종료날짜 또는 최대 실행 수에 도달했음

  • BROKEN - JOB이 최대 실패수에 도달했음

STATUS

  • SUCCEEDED - JOB의 수행이 성공했을때
  • FAILED - JOB의 수행이 실패했을때
  • STOPPED JOB의 수행이 종료되었을때

FAILED과 STOPPED의 경우에 OPERATION에는 아래 중 하나가 적힙니다.

  • RUN - 정상적으로 JOB이 수행됨

  • RETRY_RUN -이전 JOB 실행으로 오류가 발생하고 RESTARTABLE이 TRUE로 설정되어 JOB이 재시도 중

  • RECOVERY_RUN - DB가 down되었거나 job slave가 clashed되어서 stop된 JOB에 RESTARTABLE이 TRUE로 설정되어 JOB이 재 실행중

 

DBA_SCHEDULER_JOB_LOG의 실제 테이블

 

QL> select * from DBA_SCHEDULER_JOB_LOG;

LOG_ID      LOG_DATE                               OWNER                          JOB_NAME                                                                                                                                                                                                                                                             JOB_SUBNAME                                                                                                                                                                                                                                                          JOB_CLASS                      OPERATION                      STATUS                         USER_NAME                      CLIENT_ID                                                        GLOBAL_UID                       CREDENTIAL_OWNER                                                                                                                                                                                                                                                     CREDENTIAL_NAME                                                                                                                                                                                                                                                      DESTINATION_OWNER                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DESTINATION                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ADDITIONAL_INFO                                                                 
----------- -------------------------------------- ------------------------------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------------------------------------------------------------- -------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------
        244 2020/11/19 22:00:00.254648 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     STOP_ON_WINDOW_CLOSE="TRUE", PREVIOUS_VALUE="TRUE"                              
        245 2020/11/19 22:00:00.256282 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     USER_OPERATIONS_CALLBACK="DBMS_STATS.CLEANUP_STATS_JOB_PROC", PREVIOUS_VALUE="NU
        246 2020/11/19 22:00:00.257782 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     USER_CALLBACK_CONTEXT="1", PREVIOUS_VALUE="NULL"                                
        247 2020/11/19 22:00:00.261708 -05:00      SYS                            ORA$AT_SA_SPC_SY_2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_SA                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     STOP_ON_WINDOW_CLOSE="TRUE", PREVIOUS_VALUE="TRUE"                              
        248 2020/11/19 22:00:00.266050 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                ENABLE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     REASON="manually enabled"                                                       
        249 2020/11/19 22:00:00.269417 -05:00      SYS                            ORA$AT_SA_SPC_SY_2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_SA                ENABLE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     REASON="manually enabled"                                                       
        251 2020/11/19 22:00:26.278525 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                RUN                            SUCCEEDED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
        266 2020/11/19 22:00:26.279168 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                COMPLETED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  REASON="Max runs reached"                                                       
        267 2020/11/19 22:00:26.279695 -05:00      SYS                            ORA$AT_OS_OPT_SY_1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ORA$AT_JCNRM_OS                DROP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       REASON="Auto drop job dropped", PROGRAM_NAME=""SYS"."GATHER_STATS_PROG"", JOB_TY
      12322 2020/12/20 10:05:53.900674 -05:00      SYS                            ORA$AT_OS_OPT_SY_199                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                RUN                            SUCCEEDED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
      12326 2020/12/20 10:05:53.901138 -05:00      SYS                            ORA$AT_OS_OPT_SY_199                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                COMPLETED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  REASON="Max runs reached"                                                       
      25860 2021/01/23 22:09:34.177118 -05:00      SYS                            ORA$AT_SA_SPC_SY_356                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_SA                DROP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       REASON="Auto drop job dropped", PROGRAM_NAME=""SYS"."AUTO_SPACE_ADVISOR_PROG"", 
      26063 2021/01/24 10:01:41.225736 -05:00      SYS                            ORA$AT_OS_OPT_SY_377                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     STOP_ON_WINDOW_CLOSE="TRUE", PREVIOUS_VALUE="TRUE"                              
      26064 2021/01/24 10:01:41.227563 -05:00      SYS                            ORA$AT_OS_OPT_SY_377                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     USER_OPERATIONS_CALLBACK="DBMS_STATS.CLEANUP_STATS_JOB_PROC", PREVIOUS_VALUE="NU
      26065 2021/01/24 10:01:41.229061 -05:00      SYS                            ORA$AT_OS_OPT_SY_377                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     USER_CALLBACK_CONTEXT="1", PREVIOUS_VALUE="NULL"                                
      26066 2021/01/24 10:01:41.232961 -05:00      SYS                            ORA$AT_SA_SPC_SY_378                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_SA                UPDATE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     STOP_ON_WINDOW_CLOSE="TRUE", PREVIOUS_VALUE="TRUE"                              
      26067 2021/01/24 10:01:41.237316 -05:00      SYS                            ORA$AT_OS_OPT_SY_377                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_OS                ENABLE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     REASON="manually enabled"                                                       
      26068 2021/01/24 10:01:41.238969 -05:00      SYS                            ORA$AT_SA_SPC_SY_378                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ORA$AT_JCNRM_SA                ENABLE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     REASON="manually enabled"                                                       
      
      ...생략

 

스케줄러의 실행이 실패했을 때 확인할 수 있는 로그입니다. 이런 기능이 oracle이 좋은것 같네요.

 

 

** Tibero에서도 같은 테이블이 있는지 확인했지만...없네요ㅠ

 

 

참고 : www.devdoc.net/database/OracleDoc_11gR2/server.112/e25513/statviews_2044.htm#i1587038

반응형

댓글