Skip to content

Instantly share code, notes, and snippets.

@gregrahn
Created February 27, 2012 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregrahn/1924911 to your computer and use it in GitHub Desktop.
Save gregrahn/1924911 to your computer and use it in GitHub Desktop.
col CURSOR_TYPE for a15
col PROGRAM for a36
select
s.program,
o.sql_id,
o.sql_exec_id,
o.cursor_type,
o.sql_text
from
v$open_cursor o,
v$session s
where
o.sid = s.sid and
o.user_name = 'SCOTT' and
o.sql_id = 'apdcq2s3sxn9y' and
o.cursor_type like 'OPEN%'
order by
o.sql_exec_id,
o.cursor_type,
s.program
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment