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)1234567891011121314
-- -----------------------------------------------------------------------------------
-- 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
/