v$transaction——列出系统的活动事务处理


首先用u1用户构造一个事务:

  1. SQL> show user  
  2. USER 为 "U1"  
  3. SQL> update t1 set id = 1 where name = 'a';  
  4.   
  5. 已更新 1 行。  
用sys用户查看:
  1. SQL> show user  
  2. USER 为 "SYS"  
  3. SQL> select s.username,t.status from v$transaction t,v$session s where t.addr = s.taddr;  
  4.   
  5. USERNAME                       STATUS  
  6. ------------------------------ ----------------   
  7. U1                             ACTIVE  

相关内容