Wait°¡ °¡Àå ¸¹Àº »ç¿ëÀÚ ¹× ÇØ´ç Sql Á¶È¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2006-11-15 20:31:31
 

-- wait°¡ °¡Àå ¸¹Àº »ç¿ëÀÚ Á¶È¸

select se.sid, p.spid,ss.status, ss.machine, ss.program, ss.terminal,

        ss.username, ss.sql_hash_value, se.event, se.time_waited,

        so.block_gets, so.consistent_gets, so.physical_reads

from v$session_event se, v$session ss, v$process p, v$sess_io so

where 1=1

and event like '%db file %'

and se.sid = ss.sid

and ss.paddr = p.addr

and ss.sid = so.sid

order by time_waited desc;



-- ÇØ´ç sql Á¶È¸

select *

from v$sqltext

where hash_value = '984118682'

order by piece;



-- wait¸¦ ¹ß»ý½ÃŲ ¼¼¼Ç°ú À̺¥Æ® Á¶È¸

select sid,event,p1,p2,p3,seconds_in_wait from v$session_wait
where event not like '%SQL*Net%'
and event not like '%timer%'
and event not like '%message%'
order by event;



select sid,event,p1,p2,p3,seconds_in_wait from v$session_wait
where event ='enqueue';



select event,count(*) from v$session_wait
group by event
order by count(*);


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦