DBA Hub

📋Steps in this guide1/1

Find active transactions in db

col name format a10 col username format a8 col osuser format a8 col start_time format a17 col status format a12 tti 'Active transactions'

oracle configurationintermediate
by OracleDba
13 views
1

Find active transactions in db

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
col name format a10
col username format a8
col osuser format a8
col start_time format a17
col status format a12
tti 'Active transactions'
select s.sid,username,t.start_time, r.name, t.used_ublk "USED BLKS",
decode(t.space, 'YES', 'SPACE TX',
decode(t.recursive, 'YES', 'RECURSIVE TX',
decode(t.noundo, 'YES', 'NO UNDO TX', t.status)
)) status
from sys.v_$transaction t, sys.v_$rollname r, sys.v_$session s
where t.xidusn = r.usn
and t.ses_addr = s.saddr
/

Comments (0)

Please to add comments

No comments yet. Be the first to comment!