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!

Paralell in enable unique constraint

626620Sep 12 2008 — edited Jun 12 2009
TO use the feature of EXCEPTION into when creating unique index, I run the folllwing command to enable a unique constraints:

alter table TEST_DUP2 enable constraint UNQ_TEST_DUP2
using index tablespace EDWSALESINDEX nologging
EXCEPTIONS into exceptions

This will create the unique index and when duplicate uniqe key encountered, the command fails and store the rowid of the duplicating row to exceptions table.

Now I want to run this commnad in parallel to enhance performance. I tried
alter table TEST_DUP2 enable constraint UNQ_TEST_DUP2
using index tablespace EDWSALESINDEX nologging PARALLEL
EXCEPTIONS into exceptions

and I got SQL Error: ORA-00933: SQL command not properly ended.

Can this be done, or are there any worka around ?

I do not want create unique index explicitly as that does not have the EXCEPTION into feature.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2009
Added on Sep 12 2008
21 comments
5,493 views