IMP-00019 IMP-00003 ORA-00001

來源:互聯網
上載者:User

time:2008/03/31
author:skate

因為impdp的bug較多,在我匯入資料的時候,有錯誤,我於是用imp工具

imp skate/password fromuser=skate touser=skate_new file=/home/oracle/admin/omovo/dpdump/compassweb.dmp ignore=y
提示下面的錯誤:

IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (MOVO_NEW.COMPASSINDEXPLACE_PK) violated

從錯誤可以看出,是因為有重複的資料,經過google後,瞭解到如果表沒有constraints, 用ignore=y.可以覆蓋表,但如果表
有constriants,那就要先刪除原有的資料,在後在imp.否則會提示上面的錯誤.

我的做法是刪除已經存在的表,然後在imp,結果ok全部匯入

 

---end----
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.