Skip to Main Content

Oracle Database Discussions

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!

Using UNUSABLE on Unique Index gives "initially in unusable state" error

RichardSquiresMay 14 2006 — edited May 14 2006
I am doing the following:

1. Truncate table
2 Alter PK Index Disable
2. Alter Unique Index Unusable
3. Insert /*+ APPEND NOLOGGING*/ into my table

My problem is, I get an "ORA-26026: unique index ... initially in unusable state" error when I try to do the Insert. If I make the Unique index non-unique it isn't a problem. If I drop the index and recreate it its not a problem - so uniqueness doesn't appear to be the issue. Can you not use UNUSABLE with a Unique index, I couldn't find any reference to this in the 10g docs.

I am using 10.1.0.4.

Thanks

Richard
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2006
Added on May 14 2006
1 comment
1,764 views