首页 > 数据库技术 > 详细

sql 抓取脚本

时间:2015-04-27 13:09:07      阅读:296      评论:0      收藏:0      [点我收藏+]

select *
     from  v$sql s
where s.last_active_time >
            (select sysdate-1/24/60/60*8 from dual)
        and s.last_active_time <
              (select sysdate-1/24/60/60*1 from dual)
        and s.executions >0
        and s.executions <100
        and s.parsing_schema_name=‘数据库名‘;

select * from v$sql_bind_capture t where t.sql_id=‘xxxxx‘;

sql 抓取脚本

原文:http://www.cnblogs.com/vicky24k/p/4459792.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!