zoukankan      html  css  js  c++  java
  • Oracle index unusable和invisible的差别

    摘录自11g的官方文档:

         UNUSABLE Specify UNUSABLE to mark the index or index partition(s) or index subpartition(s) UNUSABLE. The space allocated for an index or index partition or subpartition is freed immediately when the object is marked UNUSABLE. An unusable index must be rebuilt, or dropped and re-created, before it can be used. While one partition is marked UNUSABLE, the other partitions of the index are still valid. You can execute statements that require the index if the statements do not access the unusable partition. You can also split or rename the unusable partition before rebuilding it. Refer to CREATE INDEX ... UNUSABLE for more information.

          An index that is not maintained by DML operations and is ignored by the optimizer. All indexes are usable (default) or unusable.

         VISIBLE | INVISIBLE  Use this clause to specify whether the index is visible or invisible to the optimizer. An invisible index is maintained by DML operations, but it is not be used by the optimizer during queries unless you explicitly set the parameter OPTIMIZER_USE_INVISIBLE_INDEXES to TRUE at the session or system level.

         unusable index 是被优化器所忽略,而且不被dml操作维护,假设索引被unusable后。须要重建。

         invisible index会被优化器所忽略,可是dml操作仍然会维护索引。在session或者system级别使用參数OPTIMIZER_USE_INVISIBLE_INDEXES=true。那么优化器会考虑使用invisible index。适用于查看索引是否被正在的使用上。

  • 相关阅读:
    xp系统
    如何进去bios设置
    MySQL快捷键
    显示数据库中的所有表和所有数据库
    Codeforces Round #375 (Div. 2) B
    Codeforces Round #375 (Div. 2) A
    2015 AlBaath Collegiate Programming Contest B
    2015 AlBaath Collegiate Programming Contest A
    AIM Tech Round 3 (Div. 2) B
    AIM Tech Round 3 (Div. 2) A
  • 原文地址:https://www.cnblogs.com/brucemengbm/p/6852892.html
Copyright © 2011-2022 走看看