Return-Path: <ml-errors@fatcity.com>
Received: from air189.startdedicated.com (root@localhost)
 by orafaq.com (8.11.6/8.11.6) with ESMTP id hBOK7Q125346
 for <oracle-l@orafaq.com>; Wed, 24 Dec 2003 14:07:26 -0600
X-ClientAddr: 66.27.56.212
Received: from www3.fatcity.com (rrcs-west-66-27-56-212.biz.rr.com [66.27.56.212])
 by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id hBOK7I425335
 for <oracle-l@orafaq.com>; Wed, 24 Dec 2003 14:07:26 -0600
Received: (from root@localhost)
 by www3.fatcity.com (8.11.6/8.11.6) id hBOK1LL23995
 for oracle-l@orafaq.com; Wed, 24 Dec 2003 12:01:21 -0800
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005DB071; Wed, 24 Dec 2003 12:04:24 -0800
Message-ID: <F001.005DB071.20031224120424@fatcity.com>
Date: Wed, 24 Dec 2003 12:04:24 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: anu <anu_77_d@yahoo.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: anu <anu_77_d@yahoo.com>
Subject: RE: Export/Import issue.
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1930731197-1072296106=:71126"
--0-1930731197-1072296106=:71126
Content-Type: text/plain; charset=us-ascii
--0-1930731197-1072296106=:71126
Content-Type: text/html; charset=us-ascii

<DIV>I think data will never change like that. Are the owners the same. Or are you doing fromuser touser.</DIV>
<DIV>You can use the show option to see the contents of the export dump&nbsp;file. Then make sure all objects are dropped. <BR><BR><B><I>Avnish.Rastogi@providence.org</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I am 100% positive . I tried this process 2-3 times using different approach but same output. I tried to create objects first using no data. I also tried to create objects as part of loading data but no difference. I enabled 10046 trace for the import process but that also didnt help, it showing err=1 at several places but I couldnt figure out why.<BR><BR>-----Original Message-----<BR>Mercadante, Thomas F<BR>Sent: Wednesday, December 24, 2003 11:09 AM<BR>To: Multiple recipients of list ORACLE-L<BR><BR><BR>Avnish,<BR><BR>Are you absolutely sure that the target table is either gone before the<BR>import, or empty? You should not be getting a unique constraint violation<BR>if the table does not exists before import.<BR><BR>The step that Oracle import follows for importing is:<BR>Create the table<BR>import the data<BR>create constraints<BR>create triggers<BR>apply grants.<BR><BR>I!
f you are
 getting a unique constraint violation during import, then the<BR>constraints exist before the table is being imported which leads me to<BR>believe everthing is not as clean as you think. Either that, or the uniqe<BR>constraint in the source database has been disabled, and you have bad data.<BR><BR>Make sure you drop the target table before you start the import. And look<BR>at the source data table's constraints to make sure they are all enabled.<BR><BR>Good Luck!<BR><BR>Tom Mercadante<BR>Oracle Certified Professional<BR><BR><BR>-----Original Message-----<BR>[mailto:Avnish.Rastogi@providence.org]<BR>Sent: Wednesday, December 24, 2003 1:44 PM<BR>To: Multiple recipients of list ORACLE-L<BR><BR><BR><BR><BR>I am trying to export a table from one database to another. Table in target<BR>database is dropped before importing and is being created as part of import<BR>process. During import process data Oracle is complaining Unique constraint<BR>violated and throwing out following mes!
sages.
 Its complaining on index<BR>abhset1 which is on columns [asset, book, yr_end_date]. I tried to compare<BR>data in source and target. Somehow yr_end_date for year 2003 is changing to<BR>2002 while importing data. Table doesnt have any triggers. Indexes in both<BR>source and target are same. Table definition is exactly same and created<BR>during import. Tried to export 2-3 times but same result. Anybody ran into<BR>this issue before. How should I approach to troubleshoot. Thanks<BR><BR>Error Message<BR>Column 1 101536<BR>Column 2 SL<BR>Column 3 5<BR>Column 4 31-DEC-2002:00:00:00<BR>Column 5 53.29<BR>Column 6 0<BR>Column 7 4.84<BR>Column 8 96<BR>Column 9 01-JAN-1700:00:00:00<BR>IMP-00019: row rejected due to ORACLE error 1<BR>IMP-00003: ORACLE error 1 encountered<BR>ORA-00001: unique constraint (LDDEV.ABHSET1) violated<BR>Column 1 101537<BR>Column 2 SL<BR>Column 3 5<BR>Column 4 31-DEC-2002:00:00:00<BR>Column 5 38.75<BR>Column 6 0<BR>Column 7 4.84<BR>Column 8 96<BR>Column 9
 01-JAN-1700:00:00:00<BR>IMP-00019: row rejected due to ORACLE error 1<BR>IMP-00003: ORACLE error 1 encountered<BR>ORA-00001: unique constraint (LDDEV.ABHSET1) violated<BR><BR><BR>Data in Source<BR>ASSET BOOK COMPANY YR_END_DA DEPR_YTD DEPR_LTD<BR>BEG_DEPR_LTD LIFE METH_SW_D<BR>---------- ---------- ---------- --------- ---------- ----------<BR>------------ ---------- ---------<BR>101536 SL 5 31-DEC-02 4.84 0<BR>0 96 01-JAN-00<BR>101536 SL 5 31-DEC-03 53.29 0<BR>4.84 96 01-JAN-00<BR><BR>ASSET BOOK COMPANY YR_END_DA DEPR_YTD DEPR_LTD<BR>BEG_DEPR_LTD LIFE METH_SW_D<BR>---------- ---------- ---------- --------- ---------- ----------<BR>------------ ---------- ---------<BR>101537 SL 5 31-DEC-02 4.84 0<BR>0 96 01-JAN-00<BR>101537 SL 5 31-DEC-03 38.75 0<BR>4.84 96 01-JAN-00<BR><BR>Data in Target.<BR><BR>ASSET BOOK COMPANY YR_END_DA DEPR_YTD DEPR_LTD<BR>BEG_DEPR_LTD LIFE METH_SW_D<BR>---------- ---------- ---------- --------- ---------- ----------<BR>------------ ----------
 ---------<BR>101536 SL 5 31-DEC-02 4.84 0<BR>0 96 01-JAN-00<BR><BR>ASSET BOOK COMPANY YR_END_DA DEPR_YTD DEPR_LTD<BR>BEG_DEPR_LTD LIFE METH_SW_D<BR>---------- ---------- ---------- --------- ---------- ----------<BR>------------ ---------- ---------<BR>101537 SL 5 31-DEC-02 4.84 0<BR>0 96 01-JAN-00<BR>-- <BR>Please see the official ORACLE-L FAQ: http://www.orafaq.net<BR>-- <BR>Author: <AVNISH.RASTOGI@PROVIDENCE.ORG<BR>INET: Avnish.Rastogi@providence.org<BR><BR>Fat City Network Services -- 858-538-5051 http://www.fatcity.com<BR>San Diego, California -- Mailing list and web hosting services<BR>---------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing list you want to be removed from). You may<BR>also send the HELP command for other inform!
ation
 (like subscribing).<BR>-- <BR>Please see the official ORACLE-L FAQ: http://www.orafaq.net<BR>-- <BR>Author: Mercadante, Thomas F<BR>INET: thomas.mercadante@labor.state.ny.us<BR><BR>Fat City Network Services -- 858-538-5051 http://www.fatcity.com<BR>San Diego, California -- Mailing list and web hosting services<BR>---------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing list you want to be removed from). You may<BR>also send the HELP command for other information (like subscribing).<BR>-- <BR>Please see the official ORACLE-L FAQ: http://www.orafaq.net<BR>-- <BR>Author: <AVNISH.RASTOGI@PROVIDENCE.ORG<BR>INET: Avnish.Rastogi@providence.org<BR><BR>Fat City Network Services -- 858-538-5051 http://www.fatcity.com<BR>San Diego, California -- !
Mailing
 list and web hosting services<BR>---------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing list you want to be removed from). You may<BR>also send the HELP command for other information (like subscribing).</BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/slv/mailtag/*http://companion.yahoo.com/">Free Pop-Up Blocker - Get it now</a>
--0-1930731197-1072296106=:71126--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: anu
  INET: anu_77_d@yahoo.com

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: ListGuru@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).

