Skip to content

Instantly share code, notes, and snippets.

@kelvinewilliams
Created October 28, 2013 02:16
Show Gist options
  • Save kelvinewilliams/7190424 to your computer and use it in GitHub Desktop.
Save kelvinewilliams/7190424 to your computer and use it in GitHub Desktop.
Uncomitted Transactions
create view uncommitted_transactions as
select t.start_time,s.sid,s.serial#,s.username,s.status,s.schemaname,
s.osuser,s.process,s.machine,s.terminal,s.program,s.module,to_char(s.logon_time,'DD/MON/YY HH24:MI:SS') logon_time
from v$transaction t, v$session s
where s.saddr = t.ses_addr
order by start_time;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment