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: Weid exp/imp problem

Re: Weid exp/imp problem

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Wed, 19 Dec 2001 02:30:49 -0800
Message-ID: <F001.003DFC2C.20011219015522@fatcity.com>

nlzanen1_at_EY.NL wrote:
>
> Hi
>
> You are most likely importing a table with foreign key prior to importing
> the primary key that it points to.
> you can do export with constraints N (I think) . Recreate the constraints
> after import.
> Or export your tables in the right order so the primary keys get imported
> first (use a parfile)
>
> Jack

  Normally, the export dumps table CREATE statements, data, CREATE INDEX, CHECK, UNIQUE and PRIMARY KEY constraints, and foreign keys come at the very end, after ALL tables. It looks indeed like some primary keys were not defined on the target box in the first place. Helmut, you should take a look to DBA_CONSTRAINTS.  

> "Daiminger, Helmut" <Helmut.Daiminger_at_KirchGruppe.de>@fatcity.com on
> 19-12-2001 09:25:20
>
> Please respond to ORACLE-L_at_fatcity.com
>
> Sent by: root_at_fatcity.com
>
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> cc: (bcc: Jack van Zanen/nlzanen1/External/MEY/NL)
>
> Hi!
>
> I'm experiencing a weird problem here... I'm about to move one user's
> object from the development box to a test box. The user's rights on both
> boxes are identical.
>
> What I do is this:
> - export user (using exp) from development. Works flawlessly.
> - import user into the other box (user setup and tablespaces are identical)
>
> An I get the following errors which doesn't make a lot of sense to me...
> ...
> . . importing table "TABELLEN" 37 rows imported
>
> . . importing table "TABELLEN_ZUORDNUNGEN" 28 rows imported
>
> . . importing table "TMP$TEST" 1 rows imported
>
> . . importing table "TMP_FUNKTIONS_PARAMETER" 0 rows imported
>
> . . importing table "TMP_FUNKTIONS_SPALTEN" 0 rows imported
>
> . . importing table "USEREXIT" 5 rows imported
>
> . . importing table "USEREXIT_TYPE" 3 rows imported
>
> . . importing table "ZYKLUS" 7 rows imported
>
> IMP-00017: following statement failed with ORACLE error 2270:
> "ALTER TABLE "BENUTZER_GRUPPEN_ZUORD" ADD CONSTRAINT "BNGRZ_BNGR_FK"
> FOREIGN"
> " KEY ("BNGR_ID") REFERENCES "BENUTZER_GRUPPEN" ("ID") ENABLE NOVALIDATE"
> IMP-00003: ORACLE error 2270 encountered
> ORA-02270: no matching unique or primary key for this column-list
> IMP-00017: following statement failed with ORACLE error 2270:
> "ALTER TABLE "BENUTZER_GRUPPEN_ZUORD" ADD CONSTRAINT "BNGRZ_OW_FK" FOREIGN
> K"
> "EY ("OW_ID") REFERENCES "OWNER" ("ID") ENABLE NOVALIDATE"
> IMP-00003: ORACLE error 2270 encountered
> ORA-02270: no matching unique or primary key for this column-list
> ...
>
> Any ideas why this is happening?
>
> This is 8.1.7 on Sun Solaris.
>
> Thanks,
> Helmut
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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 Wed Dec 19 2001 - 04:30:49 CST

Original text of this message

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