Ora-00604, ora-02429: The index used to force a unique/primary key cannot be deleted.

Source: Internet
Author: User
When tablespace in the database is deleted today, it is found that it cannot be deleted, the error message is: quot; ora-00604, ora-02429: Unable to delete the index used to force a unique primary key. Quot; most

When tablespace in the database is deleted today, it is found that it cannot be deleted all the time, the error message is: quot; ora-00604, ora-02429: Unable to delete the index that is used to force the unique/primary key. Quot; most

When tablespace in the database is deleted today, it is found that it cannot be deleted, the error message is: "ora-00604, ora-02429: Unable to delete the index used to force a unique/primary key. "

In the end, it is found that another user did not notice the tablespace settings when creating the index, and directly specified the tablespace of the index to this tablespace. Therefore, the table is deleted and re-created to other tablespaces. fault contact.

Operation Syntax:
Select 'alter table' | owner | '.' | table_name | 'drop constraint' | constraint_name | ';'
From dba_constraints
Where constraint_type in ('U', 'P ')
And (index_owner, index_name) in
(Select owner, segment_name
From dba_segments
Where tablespace_name = 'enesys0922 ');

For more information about Oracle, see the Oracle topic page? Tid = 12

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.