oracle数据库中导入DMP时ORA-00959错误的解决方法

  用imp命令从库A导出dmp再导入到,另外一个库B时报错:

  
IMP-00017: 由于 ORACLE 错误 959, 以下语句失败:
"CREATE TABLE "BS_T_FORM_TEMPLATE_VERSIONS" ("PID" VARCHAR2(50) NOT NULL ENA"
"BLE, "TEMPLATEID" VARCHAR2(50), "VERSION" VARCHAR2(10), "VERSIONNAME" VARCH"
"AR2(20), "CREATETIME" NUMBER(15, 0), "CREATOR" VARCHAR2(50), "TEMPLATEDATA""
" CLOB, "TEMPLATEPARSERDATA" CLOB, "DTROWS" NUMBER(15, 0), "DTCOLS" NUMBER(1"
"5, 0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 13107"
"2 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "ULTRAEOMS4"
"" LOGGING NOCOMPRESS LOB ("TEMPLATEPARSERDATA") STORE AS (TABLESPACE "ULTR"
"AEOMS4" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE LOGGING STO"
"RAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)) LOB "
"("TEMPLATEDATA") STORE AS (TABLESPACE "ULTRAEOMS4" ENABLE STORAGE IN ROW C"
"HUNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE(INITIAL 65536 FREELISTS 1 "
"FREELIST GROUPS 1 BUFFER_POOL DEFAULT))"
IMP-00003: 遇到 ORACLE 错误 959
ORA-00959: 表空间 'A' 不存在
成功终止导入, 但出现警告。

  遇到此类情况,一般是发生有clob字段在表上。

  解决方法:

  1.先建表,在导入dmp时加ignore=y 的参数。

  2.新建对应的表空间A,或者将原表空间B改为A。

posted @ 2012-06-01 14:00  shouma  阅读(9084)  评论(0编辑  收藏  举报