The difference between Oracle index unusable and invisible

Source: Internet
Author: User
Tags create index

Excerpts from the official documents of 11g:

     unusable  specify unusable to mark the index or index partition (s) or index subpartition (s) UNUS ABLE. The space allocated for a index or index partition or subpartition is freed immediately when the object is marked UNUSABL E. An unusable index must is rebuilt, or dropped and re-created, before it can be used. While one partition was marked unusable, the other partitions of the index was still valid. You can execute statements that require the index if the statements does 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, which is not a maintained by DML operations and was ignored by the optimizer. All indexes is usable (default) or unusable.

VISIBLE | INVISIBLE Use this clause to specify whether the index are visible or INVISIBLE to the optimizer. An invisible index was maintained by DML operations, but it was not being used by the optimizer during queries unless you expli citly set the parameter optimizer_use_invisible_indexes to TRUE on the session or system level.

unusable index is ignored by the optimizer and is not maintained by DML operations, assuming the index is unusable. Need to be rebuilt.

The invisible index is ignored by the optimizer, but the DML operation still maintains the index. use parameters at session or system level Optimizer_use_invisible_indexes=true. Then the optimizer will consider using invisible index. Applies to see if the index is being used.

The difference between Oracle index unusable and invisible

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.