因为表中已有记录,并且已建有主键,如果再写入记录,就会违反唯一性约束。所以您把表删除,在IMP的时候就可以。

解决方案 »

  1.   

    我刚刚查看了一下ORACLE的帮助,
    IMP-00019:
    *Cause: All licenses are in use.
    *Action: Increase the value of the LICENSE MAX SESSIONS initialization
             parameter.
    IMP-0001:
     *Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
             For Trusted Oracle configured in DBMS MAC mode, you may see
             this message if a duplicate entry exists at a different level.
     *Action: Either remove the unique restriction or do not insert the key.
    不知对你是否有帮助!
      

  2.   

    与参数ignore有关,IMP默认为N:
    imp system/mangager file=dmpname.dmp ignore=y
    这样试试,注意主键重复了