Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to determine what session is using lot of Oracle resources
Rick,
The following should give you enough information to diagnose which is the problem session, and the info to kill that session.
select s.sid sid, s.username session_user, s.program program, s.osuser osuser, s.terminal terminal, p.pid pid, p.spid spid, p.username process_user, i.block_gets + i.consistent_gets logrds, i.physical_reads phyrds, i.block_changes + i.consistent_changes writes, 1.0 * w.seconds_in_wait / 1.0 seconds_in_wait from v$session s, v$process p, v$sess_io i, v$session_wait w where s.paddr = p.addr and s.sid = i.sid
HTH Mark