DBA Hub

📋Steps in this guide1/1

Check open cursors

Current open cursor

oracle configurationintermediate
by OracleDba
12 views
1

Check open cursors

Current open cursor Max allowed open cursor and total open cursor

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
select a.value, s.username, s.sid, s.serial#
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';
select max(a.value) as highest_open_cur, p.value as max_open_cur
from v$sesstat a, v$statname b, v$parameter p
where a.statistic# = b.statistic# and b.name = 'opened cursors current'
and p.name= 'open_cursors'
group by p.value;

Comments (0)

Please to add comments

No comments yet. Be the first to comment!