• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

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

发布: 2007-7-02 11:08 | 作者: admin | 来源: | 查看: 14次 | 进入软件测试论坛讨论

领测软件测试网 今天现场工作人员报告在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时,最好手动指定所有约束的名字,这是一个好的习惯。


文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网