查詢等待事件及處理指令碼

tolywang發表於2012-05-10

select event,count(*) from gv$session_wait group by event order by count(*) desc;
 
SELECT s.sid,s.serial#,p.spid, t.sql_text FROM v$session s, v$sql t, v$process p
WHERE s.event LIKE 'row cache lock' AND t.sql_id = s.sql_id AND s.PADDR = p.ADDR ;

Alter system kill session 'SID,SERIAL#'  ; 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-734574/,如需轉載,請註明出處,否則將追究法律責任。

相關文章