捕获长时间不提交的SQL语句

时间:2014-05-23 12:32:00   收藏:0   阅读:345
  1. /* Formatted on 2014/5/19 17:16:16 (QP5 v5.240.12305.39476) */
    SELECT s.sid, s.serial#, ss.sql_text
    FROM v$session s, v$sql ss
    WHERE s.prev_hash_value != 0
    AND s.sql_hash_value = 0
    AND s.prev_hash_value = ss.hash_value
    AND (ss.sql_text LIKE ‘%insert%‘)
    ORDER BY s.sid, s.serial#;

捕获长时间不提交的SQL语句,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!