My Oracle Support Banner

Adding Primary Key on Unique Index Ora-01418 or ORA-14196 (Doc ID 577253.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 12.2]
Information in this document applies to any platform.
Information in this document applies to any platform.


Customer wants to add a PK based only on two of three columns of an UNIQUE index, and this fails with:

ORA-1418 ORA-01418: specified index does not exist.  in 9.2 and 12c

ORA-14196: Specified index cannot be used to enforce the constraint. in 10.2


Index created.

SQL> alter table er.er_party_trn_components
     add constraint pty_tc_pk
     primary key (pty_trn_uid, transaction_component)
     using index er.pty_tc_id_comp_amt_idx
     enable novalidate

ERROR at line 1:
ORA-14196: Specified index cannot be used to enforce the constraint.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.