Du kan teste bit 28 i flag
kolonne i v$transaction
[1]
.
SELECT s.sid, s.serial#,
CASE BITAND(t.flag, POWER(2, 28))
WHEN 0 THEN 'READ COMMITTED'
ELSE 'SERIALIZABLE'
END AS isolation_level
FROM v$transaction t, v$session s
WHERE t.addr = s.taddr
AND s.sid = :sid
AND s.serial# = :serial;
Bare husk at v$transaction
viser kun aktive transaktioner [2]
; for eksempel skal du udstede en insert/update/delete/merge, eller bruge "for update"[3]
.