ITPub博客

首页 > Linux操作系统 > Linux操作系统 > analyze index時, validate structure和compute statistics的區別?

analyze index時, validate structure和compute statistics的區別?

原创 Linux操作系统 作者:qiaoruzhi78 时间:2008-03-27 10:41:18 0 删除 编辑

validate structure和compute statistics的區別?

analyze  index index1 validate structure:
analyze  index index1 compute statistics:

在分析索引的時候,一般會用到以上二個命令,那么這二個命令是用來干嘛呢?
analyze index index1 validate structure:
是用來分析索引的數據塊是否有壞塊,以及根據分析得到的數據(存放在index_stats)來判斷索引是否需要重新建立。
見:http://space.itpub.net/26684/viewspace-207197,
validate structure有二中模式: online, offline, 默認是offline模式。
以offline模式分析時, 會對表加一個4級別的鎖(表共享),對run系統可能趙成一定的影響。
而online模式則沒有表lock的影響,但當以online模式分析時, 在視圖index_stats沒有統計信息。

analyze  index index1 compute statistics:是用來統計index的分析信息,來為CBO服務的。從9i開始,Oracle以建議使用dbms_stats package代替 analyze 了。

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26684/viewspace-218004/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: rsh配置
请登录后发表评论 登录
全部评论

注册时间:2008-01-23

  • 博文量
    31
  • 访问量
    69918