导入oracle数据库dmp时,报错ORA-39083: Object type

comela 2010-12-14 05:48:08
我的问题:
Import: Release 10.2.0.3.0 - Production on Tuesday, 14 December, 2010 13:31:31

Copyright (c) 2003, 2005, Oracle. All rights reserved.
;;;
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "NEW"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "NEW"."SYS_IMPORT_FULL_01": new/********@orcl DIRECTORY=DATA_PUMP_DIR DUMPFILE=xxx.dmp REMAP_SCHEMA=old:new REMAP_TABLESPACE=old:new;
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"OLD" already existsProcessing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-00959: tablespace 'NEW;' does not exist


之前已经导入往一个tablespace了一个版本的dump , 它其中有含有Object type USER:"OLD".
现在唯一的办法是把以前的版本Object type USER:"OLD"的dump及空间表都删除,然后重建,再导入。
但是现在的问题是,我想保留以前的版本,新旧两个表空间我都想要,可是我再导入这个升级的dump时(包含OLD)

PS:第二次已经创建好表空间NEW后才运行命令的。
cmd:
impdp username/password@orcl DIRECTORY=DATA_PUMP_DIR DUMPFILE=xxx.dmp MAP_SCHEMA=old:new REMAP_TABLESPACE=old:new

请教高手!!!

PS:在网上找了遍,也没找到问题的根源~
...全文
2060 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
fingerfox 2010-12-21
  • 打赏
  • 举报
回复
why?我每次操作都没有问题呀!
comela 2010-12-21
  • 打赏
  • 举报
回复
谢谢各位!还是没有找到一个好的解决方案, 只有把以前的覆盖掉。
dawugui 2010-12-15
  • 打赏
  • 举报
回复
提供错误的英文解释:

ORA-00959 tablespace 'string' does not exist

Cause: A statement specified the name of a tablespace that does not exist.

Action: Enter the name of an existing tablespace. For a list of tablespace names, query the data dictionary.


fingerfox 2010-12-15
  • 打赏
  • 举报
回复
ORA-00959 tablespace new 没有创建!
fingerfox 2010-12-15
  • 打赏
  • 举报
回复
1 REMAP_SCHEMA=old:new

2 你的user old已经在你的库里面存在了,drop 掉之后,然后再用这个命令就OK了。

这个写法的意思是,在导出的库里面有个用户叫old,导入到现在库里面的时候,需要把原库的old 改为new.

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧