Skip to content

Instantly share code, notes, and snippets.

@sytkov
Created June 26, 2013 06:07
Show Gist options
  • Save sytkov/5865089 to your computer and use it in GitHub Desktop.
Save sytkov/5865089 to your computer and use it in GitHub Desktop.
Oracle. Current session longops
SELECT s.username,
sl.sid,
sq.executions,
sl.last_update_time,
sl.sql_id,
sl.sql_hash_value,
opname,
target,
elapsed_seconds,
time_remaining,
sq.sql_fulltext
FROM
v$session_longops sl, v$sql sq, v$session s
where
sq.sql_id = sl.sql_id and
sl.SID = s.SID and
sl.serial# = s.serial# and
time_remaining > 0
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment