analyze index 时validate structure和compute statisti
来源:互联网 发布:淘宝补差价 编辑:程序博客网 时间:2024/05/21 10:25
analyze index index1 validate structure:
analyze index index1 compute statistics:
在分析索引的时候,一般会用到以上二个命令,那么这二个命令是用来干什么呢?
analyze index index1 validate structure:是用来分析索引的数据块是否有坏块,以及根据分析得到的数据(存放在index_stats)來判断索引是否需要重新建立。
什么样的index需要rebuild?
当一个table经常进行DML操作时,它的索引会存在许多block空间的浪费,这是因为index block中的记录只有在全部表示为不可用时, block 才能被加入到freelist中去被重新利用。所以我们需要寻找那些浪费空间很严重的index。
方法是: 1) analyze index index_name validate structure;
2) select del_lf_blk_len/lf_blk_len from index_stats where name = :index_name;
3) 如果结果大于20%, 那你的Index就可以被rebuild了。
validate structure有二中模式: on
而on
analyze index index1 compute statistics:是用来统计index的分析信息,来为CBO服务的。从9i开始,Oracle以建议使用dbms_stats package代替 analyze 了。
- analyze index 时validate structure和compute statisti
- analyze index 时validate structure和compute statistics的区别?
- analyze index 时validate structure和compute statistics的区别
- Difference to between COMPUTE STATISTICS and VALIDATE STRUCTURE for ANALYZE INDEX
- analyze index...
- COMPUTE 和 COMPUTE BY
- Compute 和Compute By
- compute和compute by
- Data Structure: Binary Index Tree
- Kgraph-how to compute index file size
- compute和compute by的用法
- sql中的compute和compute by
- DBMS_STATS.GATHER_TABLE_STATS 和 analyze
- dbms_stats和analyze汇总
- COMPUTE 和 GROUP BY
- ANALYZE
- Innodb 索引结构了解 - Innodb Index Structure
- 【转】 观察analyze table compute statistics 都对什么对象统计了信息
- 笔试:删除字符串中的数字并压缩字符串
- 游戏开发中的坐标系
- MVC 如何防止XSS、SQL注入攻击
- IOS6.0以后APP对内存警告的处理
- 环形双链表与蛋疼的链表反转
- analyze index 时validate structure和compute statisti
- yum省时省力的grouplist和groupinstall
- iOS中XML解析汇总
- javascript分页源代码
- web前端笔试题整理
- Oracle 分析及动态采样
- 又一批共17种"问题食品"曝光!国人要睁大眼、闭紧嘴巴哦
- 老生常谈:微博,QQ,淘宝三种开发平台对比 笔记
- 如何在Google成为一名优秀的产品经理?