Oracle Open Cursors Monitor

Displays a list of currently open cursors in the Oracle database. Useful for monitoring cursor usage and troubleshooting cursor-related performance issues such as ORA-01000 (maximum open cursors exceeded).

oraclesqlmonitoring-alertsv1.0.0
0 stars0 downloads15 views0 comments
By OracleDba • Created

Code

(14 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- -----------------------------------------------------------------------------------
-- File Name    : https://oracle-base.com/dba/monitoring/open_cursors.sql
-- Author       : Tim Hall
-- Description  : Displays a list of all cursors currently open.
-- Requirements : Access to the V$ views.
-- Call Syntax  : @open_cursors
-- Last Modified: 15/07/2000
-- -----------------------------------------------------------------------------------
SELECT a.user_name,
       a.sid,
       a.sql_text
FROM   v$open_cursor a
ORDER BY 1,2
/

General Comments(0)

Tip: Click on a line number in the code to add a line-specific comment

No general comments yet. Be the first to comment!