表空间的Oracle导出/导入问题 [英] Oracle Export/Import issues with Tablespace

查看:244
本文介绍了表空间的Oracle导出/导入问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个本地oracle数据库的转储,如下所示:

I created a dump of a local oracle database like this:

expdp mydb/passwd -schemas=myschema -dumpfile=mydumpfile.dmp -logfile=oralog.log

我已将转储发送给应该导入文件的人在他的oracle服务器中转储。现在,他告诉我,由于与表空间相关的某些错误(例如,表空间XYZ不可用,-数据库XYZ与各自的数据库无关),导入失败。此外,他要求我提供一些有关表空间的转储信息。

I sent the dump to someone who is supposed to import the dump in his oracle server. Now, he tells me, the import fails due to some errors related to tablespaces (like tablespace XYZ is not available, - the database XYZ is in no relation to the respective database). Besides, he asks me to give some information about the dump concerning the tablespaces.

由于我通常使用MySQL,并且对这些Oracle-Tablespace的知识知之甚少:我非常感谢能提供一些建议。

Since I am usually working with MySQL and have limited knowledge about these Oracle-Tablespace things: I would really appreciate to get some advise.

推荐答案

使用 REMAP_TABLESPACE 参数。

例如,

REMAP_TABLESPACE=(source1:destination1,source2:destination1,source3:destination1,source4:destination1)

浏览有关数据泵导入。一个小引用-

Go through the documentation about Data Pump Import. A small quote -


可以指定多个REMAP_TABLESPACE参数,但是
不能有两个相同的源表空间。目标架构必须在目标表空间中具有
足够的配额。

Multiple REMAP_TABLESPACE parameters can be specified, but no two can have the same source tablespace. The target schema must have sufficient quota in the target tablespace.

请注意,使用REMAP_TABLESPACE参数是
重新映射表空间的唯一方法在数据泵导入中。这是一种比原始Import实用程序中提供的方法更简单,更干净的
方法。该
方法受到许多限制(包括
表空间子句的数量),有时会导致某些
DDL命令失败。

Note that use of the REMAP_TABLESPACE parameter is the only way to remap a tablespace in Data Pump Import. This is a simpler and cleaner method than the one provided in the original Import utility. That method was subject to many restrictions (including the number of tablespace subclauses) which sometimes resulted in the failure of some DDL commands.

相反,使用REMAP_TABLESPACE
参数的数据泵导入方法适用于所有对象,包括用户,并且不管$ D $语句中有多少个表空间子句,它都适用于


By contrast, the Data Pump Import method of using the REMAP_TABLESPACE parameter works for all objects, including the user, and it works regardless of how many tablespace subclauses are in the DDL statement.

这篇关于表空间的Oracle导出/导入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆