设为首页 加入收藏

TOP

不用index monitor usage获得索引使用情况的脚本
2014-11-24 08:19:14 来源: 作者: 【 】 浏览:2
Tags:不用 index monitor usage 获得 索引 使用 情况 脚本
不用index monitor usage获得索引使用情况的脚本
[sql] 
col c1 heading 'Object|Name' format a30  
col c2 heading 'Operation' format a15  
col c3 heading 'Option' format a15  
col c4 heading 'Index|Usage|Count' format 999,999  
break on c1 skip 2  
break on c2 skip 2  
  
select p.object_name c1, p.operation c2, p.options c3,count(1) c4  
from dba_hist_sql_plan p, dba_hist_sqlstat s  
where p.object_owner <> 'SYS'  
and p.operation like '%INDEX%'  
and p.sql_id = s.sql_id  
group by p.object_name,p.operation, p.options order by 1,2,3;  


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇如何高效能拆分一个字段为多行 下一篇mongodb入门-1windows上安装mongo..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis on AWS:Elast (2025-12-27 04:19:30)
·在 Spring Boot 项目 (2025-12-27 04:19:27)
·使用华为开发者空间 (2025-12-27 04:19:24)
·Getting Started wit (2025-12-27 03:49:24)
·Ubuntu 上最好用的中 (2025-12-27 03:49:20)