ORA-01502: An index or partition of such an index is in an unusable state

Source: Internet
Author: User

In Oracle, the ROWID example performs a

Alter Table ACTOR move tablespace users;

An error was later executed when inserting a statement on the actor table

INSERT  into "SAKILA". " ACTOR "(" First_Name "," last_name "," last_update ")VALUES(' Zhang '' three  ', sysdate);
Error message

ORA-01502: An index or partition of such an index is in an unusable state

Reason

This problem may occur when someone moves over the table, or disable the index.
1. ALTER TABLE XXXXXX move tablespace xxxxxxx Command, the index will be invalidated.
2. Alter index index_name unusable, the command invalidates the indexes.

Workaround:

Rebuilding indexes

Alter index index_name rebuild online;

ORA-01502: An index or partition of such an index is in an unusable state

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.