ORA-02270: no matching unique or primary key for this
column-list

Answer Posted / pauline wan

You tried to reference a table using a unique key, but the
column that you listed only have unique index instead of
unique constraint. For example, referenced table called A
has PK column a1, another column a2, a2 has unique index
but not unique constraint, child table B has PK column b1
and another column b2. Now if you want to add FK on
table B column b2 which references table A column a2, you
will get ORA-02270.

To solve the problem, you need to drop unique index on
table A column a2 and create unique constraint on table A
column a2, then add FK on table B column b2.

The tricky is unique index has same functionality as unique
constraint which uniquely identify the data on the column,
but it doesn't have information in user_constraints,
all_constraints,dba_constraints.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ORA-26079: file "string" is not part of table string.string

1700


IMG-02003: 2FF03 - incorrect color histogram feature specification

1411


In my project I am using star schema and only diimension tables are loaded and not fact tables any one can help me why it is happening? Plase guide me.

2547


NZE-28868: Peer certificate chain check failed.

2473


if the lengths of two wires are same and the area of cross sections is 4:7 then what will be the ratio of current passing through these wires

2430






ORA-16516: The current state is invalid for the attempted operation.

8419


ORA-26029: index string.string partition string initially in unusable state

1910


when i ran any workflow or session, getting below error: seesion task instance[s_xxx]: Execution terminated unexpecterdly

1946


ORA-26028: index string.string initially in unusable state

3607


ORA-16627: No standby databases support the overall protection mode.

3747


ORA-26030: index string.string had string partitions made unusable due to:

1717


ORA-26094: stream format error: input column overflow

2545


IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1398


ORA-16626: failed to enable specified object

1972


ORA-26027: unique index string.string partition string initially in unusable state

6477