« 见过这么高并发( logons current)的数据库么? | Blog首页 | HDS Truecopy实现原理及项目的选择 »
IMP-00009 abnormal end of export file
作者:eygle |【转载时请以超链接形式标明文章出处和作者信息及本声明】链接:http://www.eygle.com/archives/2009/05/imp_00009_abnormal_end.html
这周有客户咨询一个导入的小问题,导出文件在异机导入时出现了IMP-00009错误。
提示导出文件异常:
IMP-00009: abnormal end of export file
中文版提示类似如下:
IMP-00009: 导出文件异常结束
IMP-00028: 上一个表的部分导入已回退: 回退 29050 行
这中情况通常是因为导出文件异常,当导如最后发现异常时,会回退所有操作。
回退在数据库处理是正常的,因为导出文件异常可能导致局部数据丢失,数据的一致性和完整性是无法确保的。
可是在用户环境下,数据是为了导入测试环境进行测试,而且导入据说花费了4个小时,漫长等待得到的是回退的答案,这在用户看来是不可接受的。
如果充分了解数据,可以再导入是加入一个commit=yes参数,那么成功imp的数据会被提交,可以用于进行测试,而可以舍弃部分数据。
在Unix上,我使用如下命令导入,nohup将任务提交到后台去运行:
nohup imp abc/abc file=report_data.dmp tables=report_data_h ignore=yes buffer=300000000 comit=yes feedback=1000 &
这样最终的结果是,完好的数据被成功导入,nohup记录的日志如下:
Import: Release 9.2.0.6.0 - Production on Mon May 11 11:10:44 2009Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - ProductionExport file created by EXPORT:V09.00.01 via conventional path
Warning: the objects were exported by CFS, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
export server uses UTF8 NCHAR character set (possible ncharset conversion)
. importing CFS's objects into AAA
. . importing table "CFSREPORT_TXN_DATA_H"
...........................................................................
...........................................................................
...........................................................................
............................
IMP-00009: abnormal end of export file
IMP-00018: partial import of previous table completed: 5803800 rows imported
Import terminated successfully with warnings
我没有遇到过这类的问题导出,不过看情况很多和导出时使用Query子句有关。
记录一下,仅供参考!
-Then End-
历史上的今天...
>> 2008-05-14文章:
>> 2007-05-14文章:
>> 2006-05-14文章:
------
这篇 【IMP-00009 abnormal end of export file】来自 eygle.com | CSDN网摘| del.icio.us|Google订阅 | 鲜果订阅 | 抓虾订阅
By eygle on 2009-05-14 16:04 | Comments (2) | Posted to Backup&Recovery | Edit |
留言 (2)
感谢分享
Posted by: 淘宝天堂 at May 15, 2009 7:17 PM
谢谢分享 记住了 commit=yes
Posted by: Simon at May 18, 2009 10:07 AM
