-- Job 생성
BEGINDBMS_SCHEDULER.CREATE_JOB(JOB_NAME=>'test_job',JOB_TYPE=>'STORED_PROCEDURE',JOB_ACTION=>'test_procedure',START_DATE=>SYSDATE,REPEAT_INTERVAL=>'FREQ=SECONDLY;INTERVAL=30',COMMENTS=>'테스트 잡');END;-- Job 활성화
BEGINDBMS_SCHEDULER.ENABLE('JBT_SEARCH_TRUCK_FLTER');END;
Oracle Scheduler Job에 로그 레벨 세팅하기
Logging Level
Description
DBMS_SCHEDULER.LOGGING_OFF
No logging is performed.
DBMS_SCHEDULER.LOGGING_FAILED_RUNS
A log entry is made only if the job fails.
DBMS_SCHEDULER.LOGGING_RUNS
A log entry is made each time the job is run.
DBMS_SCHEDULER.LOGGING_FULL
A log entry is made every time the job runs and for every operation performed on a job, including create, enable/disable, update (with SET_ATTRIBUTE), stop, and drop.