欢迎光临
我们一直在努力

[DBA手记]IMP-00093错误的解决方法-数据库专栏,SQL Server

建站超值云服务器,限时71元/月

今天现场工作人员报告在imp一个dmp文件时报超出最大游标数的错误,ora-01000: maximum open cursors exceeded。
询问了一下基本情况,上metalink查了一下,imp中根本就没有提及任何有关ora-01000的错误,这就有些纳闷了。这时候,通过邮件收完了dmp文件,自己模拟测试了一下,发现其实错误的原因根本不是ora-01000,而是imp-00093,只是由于太多的imp-00093错误消耗了大量的cursor,导致一个session中的cursor数超过了定义的300,所以在最后就开始报ora-01000错误了。

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时,最好手动指定所有约束的名字,这是一个好的习惯。

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » [DBA手记]IMP-00093错误的解决方法-数据库专栏,SQL Server
分享到: 更多 (0)

相关推荐

  • 暂无文章