Details of error are as follows.

ALTER INDEX MSDBA.TEST_INDEX DISABLE

Error at line 1

ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option

ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option.

Cause: An option other than INITRANS, MAXTRANS,or STORAGE is specified in an ALTER INDEX statement or in the USING INDEX clause of an ALTER MATERIALIZED VIEW statement.

Action: Specify only legal option

 

 

 

ORA-02243

The ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option error is related with the function-based index, because Oracle doesn’t allow to disable index.

 

 

invalid ALTER INDEX or ALTER MATERIALIZED VIEW option

To solve this problem you may drop the index as follows.

DROP INDEX MSDBA.TEST_INDEX;

 

If the index is local index on the partition, you can disable it as follows.

alter table   MSDBA.TEST_INDEX modify partition TINDEXP1 unusable local indexes;

 

Or you can allow for unusable indexes as follows.

alter session set skip_unusable_indexes = true;

 

Or you can rebuild the index as follows to solve this ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option error.

ALTER INDEX MSDBA.TEST_INDEX REBUILD;

 

 

Recent Posts

Start typing and press Enter to search