文件名称:查看存储过程执行情况
文件大小:1KB
文件格式:TXT
更新时间:2014-02-03 09:43:34
存储过程
2、登陆数据库,执行如下语句,查看当前进行io操作的进程和模块名称: SELECT se.sid,se.serial#,pr.SPID,se.username,se.status,se.terminal,se.program, se.MODULE,se.sql_address,st.event,st.p1text,si.physical_reads,si.block_changes FROM v$session se,v$session_wait st,v$sess_io si,v$process pr WHERE st.sid=se.sid AND st.sid=si.sid AND se.PADDR=pr.ADDR and se.username is not null AND se.sid>6 AND st.wait_time=0 AND st.event NOT LIKE '%SQL%' ORDER BY physical_reads DESC