Show Sessions With High I/O

Database Performance Tuning & Optimization
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

Show Sessions With High I/O

Post by jimb »

set linesize 120
col os_user format a10
col username format a15

col pid format 9999999999
SELECT OSUSER os_user,
username,
PROCESS pid,
ses.SID sid,
SERIAL#,
PHYSICAL_READS,
BLOCK_CHANGES
FROM v$session ses,
v$sess_io sio
WHERE ses.SID = sio.SID
AND username IS NOT NULL
AND status ='ACTIVE'
ORDER BY PHYSICAL_READS;


Sample Output:

Code: Select all

OS_USER    USERNAME        PID                 SID    SERIAL# PHYSICAL_READS BLOCK_CHANGES
---------- --------------- ------------ ---------- ---------- -------------- -------------
oracle     SYS             7639                159         26              0             0
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: Show Sessions With High I/O

Post by xaeresis »

xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: Show Sessions With High I/O

Post by xaeresis »

Post Reply