Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable an index.

539772Nov 20 2006 — edited Nov 21 2006
Hi All,

I have one unique index on the empno column and the table name is EMP, so emp table doesn't allowing me to insert duplicate values into empno column then I have tried to disable an index by using the following statement

alter index <index_name> unusable;
The index got altered.

But the problem is when I am trying to insert duplicate values into empno column
oracle showing the following error message.

ERROR at line 1:
ORA-01502: index 'Index Name' or partition of such index is in unusable
state

I am using oracle 10g.

Please any one help me...

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2006
Added on Nov 20 2006
15 comments
2,011 views