오라클

Oracle Wait Interface

끄적끄적 2008. 12. 8. 17:16

* v$event_name
: wait event의 종류를 볼 수 있다. 10g에서는 878개의 event가 있다.
 oracle 버전간 값을 일치시키기 위해 event_id, wait_class_id 같은 hash값을 보관한다.

* v$system_event
 : 인스턴스 구동 이후 대기이벤트의 누적 값으로 total_waits는 대기횟수, time_waited는 대기시간으로  1/100초(centisecond) 단위이다.

select b.wait_class, a.*, c.startup_time
from v$system_event a, v$event_name b, v$instance c
where a.event = b.name
order by b.wait_class, a.time_waited desc

* v$session_event
 : v$system_event와 칼럼구성이 동일하며 세션 생성이후의 누적 값이다.

select b.sid, b.username, b.program,
       a.event,      
       a.total_waits,      
       a.total_timeouts,      
       a.time_waited,      
       a.average_wait,      
       a.max_wait,      
       a.time_waited_micro
from   v$session_event a, v$session b
where  b.sid = a.sid
order by 1, 7 desc;      

* v$active_session_history 에 v$session_event의 매초마다의 이력을 보관(30분간)

* v$session_wait
  : 현재시점에서의 sid별 wait event정보를 보관하며, 10g에서는 v$session 뷰에 통합되었다.
  v$session_wait_history에 최근 10개 대기이벤트의 히스토리가 저장되어 있다.

* v$system_wait_class, v$session_wait_class
 : 시스템과 세션에 대해 이벤트 class별로 wait횟수와 시간을 저장해 둔다. system-> session순으로 문제되는 wait 종류를 확인할 수 있다.

* v$event_histogram
 : event별로 < 1ms, < 2ms, <4ms, <8ms, < 16ms 등으로  누적 횟수를 히스토그램으로 보관. ms(1/1000초)

 * 기타 중요 다이나믹 뷰
   v$session : 세션정보
   v$active_session_history : 세션 히스토리정보
   v$process : 프로세스 정보
   v$transaction : 트랜잭션 정보
   v$latch, v$latch_parent, v$latch_children, v$latch_holder : 래치정보
   v$lock, v$locked_object, v$enqueue_lock : 락정보
   v$sql : SQL정보
   v$librarycache, x$kgllk, x$kglpn : Library Cache 정보
   v$rowcache, v$rowcache_parent : Row Cache 정보
   v$sgastat : SGA정보
   v$segment_statistics : 세그먼트 레벨 통계정보
   v$sess_time_model, v$sys_time_model : Time Model 정보
   v$bh, x$bh : 버퍼 캐시 정보


그림출처 : http://wiki.ex-em.com/performance_in_depth/

반응형