Monitoring total cursors open, by username & machine

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:

Monitoring total cursors open, by username & machine

Post by jimb »

SELECT SUM(a.value) total_cur,
AVG(a.value) avg_cur,
MAX(a.value) max_cur,
s.username,
s.machine
FROM v$sesstat a,
v$statname b,
v$session s
WHERE a.statistic# = b.statistic#
AND s.sid =a.sid
AND b.name = 'opened cursors current'
GROUP BY s.username,
s.machine
ORDER BY 1 DESC;
Oracle Database Administration Forums
http://www.oracle-forums.com/
xaeresis
Posts: 195616
Joined: Wed Oct 04, 2023 2:39 pm

Re: Monitoring total cursors open, by username & machine

Post by xaeresis »

Post Reply