计算索引碎片的一个脚本
2011-12-06 12:35
281 查看
今天在网上看到了一个估计索引碎片的方法,所以写了个小过程,对用户下的所有索引进行一次计算,挑选二元高度大于4的或者碎片率大于10%的索引进行输出。 需要说明的是,这种估计索引碎片的方法来自网上,还没有查询官方文档上的相关部分,仅供参考,我不对分析出的结果负责。
我在一些OCP的教材上看到了有关analyze validate的说明,据称可以分析出碎片数,但是现在还没在官方文档上找到确切的证据,希望知道的人给我讲一下,以下是我从官方文档上找到的一些关于analyze validate的说明:
For an index, Oracle Database verifies the integrity of each data block in the index and checks for block corruption. This clause does not confirm that each row in the table has an index entry or that each index entry points to a row in the table. You can perform these operations by validating the structure of the table with the CASCADE clause.
Oracle 验证每一个索引的数据块完整性以及检查block corruption。
我在一些OCP的教材上看到了有关analyze validate的说明,据称可以分析出碎片数,但是现在还没在官方文档上找到确切的证据,希望知道的人给我讲一下,以下是我从官方文档上找到的一些关于analyze validate的说明:
For an index, Oracle Database verifies the integrity of each data block in the index and checks for block corruption. This clause does not confirm that each row in the table has an index entry or that each index entry points to a row in the table. You can perform these operations by validating the structure of the table with the CASCADE clause.
Oracle 验证每一个索引的数据块完整性以及检查block corruption。
相关文章推荐
- 计算索引碎片的一个脚本
- 一个计算MD5的脚本
- 微软MSDN提供的索引碎片整理脚本
- 分享一个SQL SERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间)
- SQL Server 2005:索引碎片整理脚本
- 一个计算网络流量的shell脚本
- openstack folsom 一个日本同行的脚本安装(多结点,计算结点)
- 索引碎片情况,表行数,批整理脚本
- cmd脚本写一个小学生计算习题
- 一个计算的小脚本
- SQLSERVER索引碎片整理脚本
- 在线整理索引碎片脚本
- 一个计算数组长度的perl脚本
- 一个计算数组长度的perl脚本
- 一个计算日期连续性的脚本
- 怎么计算一个具体InnoDB的索引大小
- 一个计算脚本运行时间的类
- (转)分享一个SQLSERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间)
- [5月6日的脚本] 检测指定数据库的索引碎片百分比 (SQL)
- 2种方法发现一个索引是否碎片过多,而需要rebuild