免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 922 | 回复: 0

关于数据库数据导入时的一个报错的解决 [复制链接]

论坛徽章:
0
发表于 2011-12-20 09:48 |显示全部楼层
   在执行一个业务数据库迁移的时候发现导入报告如下错误,常识几次都不能正常执行导入操作。
数据在其他库中导出时使用默认导出dmp包,但在导入到本机时提示如下问题。
Export file created by EXPORT:V10.02.01 via conventional path

Warning: the objects were exported by POST_KF, not by you

import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing POST_KF's objects into POST_CT
. importing POST_KF's objects into POST_CT
. . importing table                       "Z_HEJI"     252974 rows imported
. . importing table                       "Z_XXGD"     104619 rows imported
. . importing table                       "Z_SDDD"     140575 rows imported
. . importing table                       "Z_BKDD"       1370 rows imported
. . importing table                 "R_YYGL_ORDER"     101553 rows imported
. . importing table                   "GTH_AGT_IN"      11326 rows imported
. . importing table                  "GTH_AGT_OUT"       8542 rows imported
. . importing table                    "GTH_AJ_DS"    4891132 rows imported
IMP-00017: following statement failed with ORACLE error 1659:
 "CREATE INDEX "LOGDATE_INDE3" ON "GTH_AJ_DS" ("SYSTEM_DATE" )  PCTFREE 10 IN"
 "ITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4294967294 FREELISTS 1 FREELIST GROUP"
 "S 1 BUFFER_POOL DEFAULT) TABLESPACE "POST_KF" LOGGING"
IMP-00003: ORACLE error 1659 encountered
ORA-01659: unable to allocate MINEXTENTS beyond 270 in tablespace POST_KF
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"LOGDATE_INDE3"',NULL,NULL,NULL,455"
 "5696,16026,2933713,1,1,3420944,2,6); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "POST_CT"."LOGDATE_INDE3" does not exist or insufficient privileges
ORA-06512: at "SYS.DBMS_STATS", line 2124
ORA-06512: at "SYS.DBMS_STATS", line 5473
ORA-06512: at line 1
. . importing table             "GTH_SYS_CALLFAIL"        123 rows imported
 
通过提示信息发现导入时报告ora-01659报错。
oracle官网解释如下
ORA-01659: unable to allocate MINEXTENTS beyond string in tablespace string 
Cause: Failed to find sufficient contiguous space to allocate MINEXTENTS for the segment being created.
 
Action: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with smaller value for MINEXTENTS, NEXT or PCTINCREASE
 
在exp时,如果不加compress=no,那么那些个建表语句就会将他的initial空间指定为现有所有数据空间之和,这也是为了导入的时候空间连续,减少碎片的。加上那个参数再次导出,ini空间不会那么大。这个时候导入不再报上面的错误信息,问题解决!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP