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: unique constraint violation on 8i import but not on 9i

RE: unique constraint violation on 8i import but not on 9i

From: <Joel.Patterson_at_crowley.com>
Date: Thu, 5 Jul 2007 09:51:44 -0400
Message-ID: <02C2FA1C9961934BB6D16DE35707B27B031C2E6B@jax-mbh-01.jax.crowley.com>


Or apply the constraint exceptions into exceptions and find the duplicates.

I would then look them up in the 9i database. You say there is no nls funny stuff, but the character set point (in another email answer) seemed like a good lead.

Joel Patterson
Database Administrator
joel.patterson_at_crowley.com
x72546
904 727-2546

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Alexander Fatkulin Sent: Wednesday, July 04, 2007 8:26 PM
To: ganstadba_at_hotmail.com
Cc: oracle-l_at_freelists.org
Subject: Re: unique constraint violation on 8i import but not on 9i

>The export taken from an 8i database fails on import into the same
(newly
>rebuilt 8i database) with primary key violation.

Do the import with the ignore=y option then.

As Alex already said - PK is enabled AFTER table data is loaded.

After you load everything up you will end up without that violated PK and some related FK's.

Do the "select col1, col2 from that_nasty_table group by having count(*) > 1" and see what is causing duplicates. Maybe this will give some clue.

HTH

-- 
Alexander Fatkulin
--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jul 05 2007 - 08:51:44 CDT

Original text of this message

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