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时,最佳手动指定所有约束的名字,这是个好的习惯。
[DBA手记]IMP-00093错误的解决方法
最新推荐文章于 2023-03-29 12:43:26 发布