Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> ORA-02298: How to find the orphan rows ?

ORA-02298: How to find the orphan rows ?

From: rockcogar <rock_cogarNOroSPAM_at_my-deja.com.invalid>
Date: Tue, 08 Feb 2000 10:07:09 -0800
Message-ID: <00321b16.0f99360b@usw-ex0103-019.remarq.com>


Hi,

I just got a

ORA-02298: cannot validate (schema.fk) - parent keys not found

error when I try to create a foreign key.

These orphaned records are common enough and usually easy to find and fix in DBs that come out of Access 97/Excel/whatever from questionable sources. What makes this one so difficult is that the table has nearly a million rows and the primary key of the parent table is made up out of 8 columns !

QUESTION: Does anyone out there know a technique to find the orphans in foreign key creations where the keys are multi-column and the rowcount is very large ?

Thanks,
Rock.

Received on Tue Feb 08 2000 - 12:07:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US