ALTER TABLE DROP PRIMARY KEY CONSTRAINT DOES NOT DROP UNDERLYING PK INDEX
(Doc ID 370633.1)
Last updated on MARCH 05, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
After import of a table that contains a primary key constraint and corresponding index, a drop constraint does not drop the corresponding PK index.
When trying to insert a record into the table after dropping constraint, it fails with error
In Enterprise Manager, the index is shown as available even after dropping the constraint.
After dropping the index, we can insert the record without any violation error.
Also, if the table was to be created and not imported then the drop constraint drops the PK index also.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!