Home » RDBMS Server » Server Utilities » Error at the time of Import
Error at the time of Import [message #74167] Sun, 26 September 2004 21:39 Go to next message
Avra
Messages: 65
Registered: July 2004
Member
Hi... I'm importing a .dmp file in Oracle8i by using imp utility... I'm doing user mode import... at the time of import I'm getting the following message... pls help me to solve this error....

Thanks....

Error:

IMP-00017: following statement failed with ORACLE error 2298:
 "ALTER TABLE "TR_OPR_ENTRY" ADD CONSTRAINT "FK_OPR_LC2_NEW" FOREIGN KEY ("LC"
 "") REFERENCES "CBMAST" ("LC") ON DELETE CASCADE"

IMP-00003: ORACLE error 2298 encountered
ORA-02298: cannot validate (FACMC.FK_OPR_LC2_NEW) - parent keys not found
Re: Error at the time of Import [message #74168 is a reply to message #74167] Mon, 27 September 2004 02:19 Go to previous messageGo to next message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
Hi,

Your data is inconsistent or out of step with the parent table. Fix the data in the parent table, and then recreate the constraint.

02298, 00000,"cannot validate (%s.%s) - parent keys not found"
// *Cause: an alter table validating constraint failed because the table has
// orphaned child records.
// *Action: Obvious

Best regards.

Frank
Re: Error at the time of Import [message #74169 is a reply to message #74168] Mon, 27 September 2004 03:33 Go to previous messageGo to next message
Avra
Messages: 65
Registered: July 2004
Member
Hi.. Thanks for yout reply... Just a question... So it's not a error of import...right??
Re: Error at the time of Import [message #74170 is a reply to message #74169] Mon, 27 September 2004 06:24 Go to previous message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
Hi,

It is most likely a procedural mistake. Best is to export both tables with CONSISTENT=YES on the source database, then import both of them on the destination database. If you do it with CONSISTENT=YES, these tables cannot get out of sync.

Best regards.

Frank
Previous Topic: access oracle 9i only from Application and not thru SQLprompt
Next Topic: Import error while enabling constraints
Goto Forum:
  


Current Time: Wed Jul 03 01:37:52 CDT 2024