Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created August 26, 2010 21:41
Show Gist options
  • Save ejhayes/552314 to your computer and use it in GitHub Desktop.
Save ejhayes/552314 to your computer and use it in GitHub Desktop.
select s.sid, s.serial#, s.status, p.spid
from v$session s, v$process p
where s.username = 'myuser'
and p.addr (+) = s.paddr;
-- alter system kill session '<sid>,<serial#>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment