Oracle 求回滚段正在处理的事务

Linux大全评论2.5K views阅读模式

Oracle 求回滚段正在处理的事务:

 

  1.  select a.name, b.xacts, c.sid, c.serial#, d.sql_text  
  2.    from v$rollname    a,  
  3.         v$rollstat    b,  
  4.         v$session     c,  
  5.         v$sqltext     d,  
  6.         v$transaction e  
  7.   where a.usn = b.usn  
  8.     and b.usn = e.xidusn  
  9.     and c.taddr = e.addr  
  10.     and c.sql_address = d.address  
  11.     and c.sql_hash_value = d.hash_value  
  12.   order by a.name, c.sid, d.piece;  

企鹅博客
  • 本文由 发表于 2019年8月5日 02:49:14
  • 转载请务必保留本文链接:https://www.qieseo.com/184323.html

发表评论