OS환경 : Oracle Linux6.8(64bit)
DB 환경 : Oracle Database 10.2.0.4
쿼리 : 자동통계수집 job 돌고 있는지 확인(10g)
select schedule_name, j.program_owner, j.program_name
, p.program_action, p.number_of_arguments
, cast(j.last_start_date as timestamp with local time zone) last_start_date
, last_run_duration, stop_on_window_close
from dba_scheduler_jobs j, dba_scheduler_programs p
where j.job_name = 'GATHER_STATS_JOB'
and p.program_name = j.program_name ;
결과값 :
set lines 200
set pages 1000
col SCHEDULE_NAME for a25
col program_owner for a10
col program_name for a20
col program_action for a20
col NUMBER_OF_ARGUMENTS for 9
col last_start_date for a30
col last_run_duration for a26
select schedule_name, j.program_owner, j.program_name
, p.program_action, p.number_of_arguments
, cast(j.last_start_date as timestamp with local time zone) last_start_date
, last_run_duration, stop_on_window_close
from dba_scheduler_jobs j, dba_scheduler_programs p
where j.job_name = 'GATHER_STATS_JOB'
and p.program_name = j.program_name ;
SCHEDULE_NAME PROGRAM_OW PROGRAM_NAME PROGRAM_ACTION NUMBER_OF_ARGUMENTS LAST_START_DATE LAST_RUN_DURATION STOP_
------------------------- ---------- -------------------- -------------------- ------------------- ----------------------------------- ------------------------- -----
MAINTENANCE_WINDOW_GROUP SYS GATHER_STATS_PROG dbms_stats.gather_da 0 14-MAY-18 10.00.01.228057 PM +000000000 00:21:43.51167 TRUE
tabase_stats_job_pro 0
c
참조 :
'ORACLE > Sql' 카테고리의 다른 글
오라클 패치 정보를 조회할 수 있는 뷰 DBA_REGISTRY_SQLPATCH (0) | 2018.05.15 |
---|---|
oracle 10g 자동통계정보수집 table lock , unlock (0) | 2018.05.15 |
index 명으로 table 찾기 (0) | 2018.05.09 |
오라클 11gR2 Blevel 확인 및 REBUILD 할 INDEX 대상 조회 (0) | 2018.05.04 |
오라클 With절 (0) | 2018.05.03 |