[DBA手记]IMP-00093错误的解决方法

imp-00093: inconsistency between dumpfile constraint definition for table account with columns ("acctid" , "currencyid")

首先查错误文件,基本上没有什么有意义的提示。
 imp-00093 inconsistency between dumpfile constraint definition for table string with columns (string)

cause: import failed to locate a base table for a constraint that was defined in the dump file and statistics were not imported.

action: check to see if the table and constraint exist. if the table and constraint exist, then report this to oracle support services as an import internal error.

再次查metalink,果然,又是个bug。

bug 2834541 - imp-93 on import when using the touser parameter
 
bug no. 2834541

这个bug在9.2.0.6和10.1.0.3中被修复,起因是在导入的过程中要导入系统生成的约束,类似sys_c0027639, 不过metalink上只提到了这个原因,不过以前非常多次的imp应该都是有这样系统生成的约束名,并没有报错过,所以应该还是有另外的因素参杂其中的,比如统计信息的生成。没有继续研究。

解决方法:在imp时使用indexes=no或statistics=none参数,当然后者比较好一些。

问题是解决了,不过多说一点,在设计schema时,最佳手动指定所有约束的名字,这是个好的习惯。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值