Live Transactions

We can use view to check current running transactions.

RAC / Cloud RDS: transactions running more than 5 minutes.

SELECT s.inst_id,l.ORACLE_USERNAME,object_name, l.SESSION_ID,s.last_call_et,  l.LOCKED_MODE,t.xidusn, t.used_urec, t.used_ublk,s.saddr, t.ses_addr from   gv$locked_object l, dba_objects d, gv$session s, gv$transaction t where  d.OBJECT_ID=l.OBJECT_ID and s.sid=l.SESSION_ID and s.last_call_et > 300 and s.saddr = t.ses_addr;


NON-RAC / Cloud RDS: transactions running more than 5 minutes.

SELECT l.ORACLE_USERNAME,object_name, l.SESSION_ID,s.last_call_et,  l.LOCKED_MODE,t.xidusn, t.used_urec, t.used_ublk,s.saddr, t.ses_addr from   v$locked_object l, dba_objects d, v$session s, v$transaction t where  d.OBJECT_ID=l.OBJECT_ID and s.sid=l.SESSION_ID and s.last_call_et > 300 and s.saddr = t.ses_addr;

Comments

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 11g Physical Standy Setup

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Oracle to Postgres

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation

OEM patches & vulnerabilities