This script looks at X$KSQST, which contains a breakdown of enqueue gets and enqueue waits by lock type. Unfortunately, there is no indication of the relative duration of these waits, so care must be taken when interpreting the output.

 

 

select
  q.ksqsttyp type,
  q.ksqstget gets,
  q.ksqstwat waits
from
  sys.x_$ksqst  q
where
  q.inst_id = userenv('Instance') and
  q.ksqstget > 0
/

 

posted on 2009-03-12 09:15  Oracle  阅读(249)  评论(0编辑  收藏  举报