Script:查找表或索引增长的历史信息

利用AWR查找空间增长信息
本文介绍如何通过Oracle的AWR(自动工作负载资料库)来查找数据库段对象(如堆表和索引)在特定时间段内的空间增长情况。自Oracle 10g起,DBA_HIST_SEG_STAT视图可用于获取快照期间段级别的历史统计信息。
有同学在Oracle ALL STARS群中提问 如何通过AWR来查找一段时间内,数据库段对象(堆表、索引)等的空间增长信息。   在Oracle 10g开始awr自动负载仓库引入了dba_hist_seg_stat视图,该视图记录了快照时间内segment-level段级的历史统计信息:DBA_HIST_SEG_STAT displays historical information about segment-level statistics. This view captures the top segments based on a set of criteria and captures information from V$SEGSTAT. The total value is the value of the statistics since instance startup. The delta value is the value of the statistics from the BEGIN_INTERVAL_TIME to the END_INTERVAL_TIME in the DBA_HIST_SNAPSHOT view.   我们可以通过以下SQL脚本来列出相关段对象在 快照时间内的使用空间的历史变化信息:    
 
 

select



本文转自maclean_007 51CTO博客,原文链接:
http://blog.51cto.com/maclean/1278297

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值