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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: import from 8i to 9i /IMP-00003:ORA-02298

RE: import from 8i to 9i /IMP-00003:ORA-02298

From: <Surendra.Tirumala_at_mail.state.ky.us>
Date: Tue, 08 Jul 2003 13:21:05 -0700
Message-ID: <F001.005C3E54.20030708130955@fatcity.com>


Yes, I am sure. Just to make sure, I have compared the counts from export log file and import log file. Also I compared it with import log file I did in to 8i database.

What I did with two pass import is..first I have imported with constarints=n then I imported with ROWS=N & CONSTARINTS=Y. So I am not doing any truncates.

And to make sure again... I have tried troubleshooting one of the failed constraints with smallest table:

Table TWESVS is having FK, FK_OF_VS_SYSID on column TWESVS.VS_OFF_SYSID referring to TWESOF.OF_OFF_SYSID.

  1. The Error:

IMP-00003: ORACLE error 2298 encountered ORA-02298: cannot validate (CMS.FK_OF_VS_SYSID) - parent keys not found

2) The constraint definition:

ALTER TABLE CMS.TWESVS ADD CONSTRAINT FK_OF_VS_SYSID  FOREIGN KEY (VS_OFF_SYSID)
  REFERENCES CMS.TWESOF (OF_OFF_SYSID) ON DELETE CASCADE; 3) The user_constarints entry
SQL> select constraint_name, status from user_constraints

     where constraint_name='FK_OF_VS_SYSID';

CONSTRAINT_NAME                STATUS
------------------------------ --------
FK_OF_VS_SYSID                 ENABLED

4) And I tried disabling and then enabling manually, it gave ORA-02298 error.
Also I tried to catch the bad data into excetions. The data in TWESVS.VS_OFF_SYSID ranges from values 1 to 107 (with some values missing)
and the data in TWESOF.OF_OFF_SYSID ranges from 1 to 109.

And the following query returned no rows.

Please help me what could be the reason.

Thanks,
Surendra

-----Original Message-----
Sent: Tuesday, July 08, 2003 3:54 PM
To: Multiple recipients of list ORACLE-L

Are your sure that the parent table data is getting imported fully? Number of exported rows match
the number of imported rows?
During your subsequent import attempts, are you truncating the table?


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Kirtikumar Deshpande
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jul 08 2003 - 15:21:05 CDT

Original text of this message

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