Home » SQL & PL/SQL » SQL & PL/SQL » alter index problem
alter index problem [message #173763] Wed, 24 May 2006 06:21 Go to next message
deepak samal
Messages: 29
Registered: February 2005
Junior Member
i want to alter a index to Disable . i got the syntax as
ALTER INDEX INDEX_NAME DISABLE .

but this is not working . i am getting the error as
(ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option)

can you please help me how to disable a index .
Re: alter index problem [message #173766 is a reply to message #173763] Wed, 24 May 2006 06:29 Go to previous messageGo to next message
Littlefoot
Messages: 21822
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Index can not be disabled; drop it instead.

[EDIT]
Did you, perhaps, mix terms "index" and "constraint"? If there's, for example, a primary key constraint and index on this column, you could disable primary key constraint, but index should be dropped.

[Updated on: Wed, 24 May 2006 06:32]

Report message to a moderator

Re: alter index problem [message #173777 is a reply to message #173766] Wed, 24 May 2006 07:05 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Or the OP might be talking about the unusable indexes?
sql> alter index myindex unusable;

Regards
Re: alter index problem [message #173884 is a reply to message #173777] Thu, 25 May 2006 01:47 Go to previous messageGo to next message
deepak samal
Messages: 29
Registered: February 2005
Junior Member
thanks for this . this is working . but again i am not able to make this active , after giving the comand unusable .
after setting the "alter index myindex unusable", how can i make this enabled .

regards
Re: alter index problem [message #173893 is a reply to message #173884] Thu, 25 May 2006 02:44 Go to previous message
Littlefoot
Messages: 21822
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Using

ALTER INDEX myindex REBUILD;
Previous Topic: Passing string as argument to explicit cursor.
Next Topic: SIGNATURE (parameter names) MISMATCH
Goto Forum:
  


Current Time: Thu Nov 14 12:21:07 CST 2024