重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 983|回复: 0
打印 上一主题 下一主题

[参数设置] oracle导入命令impdp中cluster选项的作用

[复制链接]
跳转到指定楼层
楼主
发表于 2023-2-11 15:50:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用命令impdp -help,得到如下解释:

CLUSTER
Utilize cluster resources and distribute workers across the Oracle RAC [YES].


Using PARALLEL During An Export In An Oracle RAC Environment

In an Oracle Real Application Clusters (Oracle RAC) environment, if an export operation has PARALLEL=1, then all Data Pump processes reside on the instance where the job is started. Therefore, the directory object can point to local storage for that instance.

If the export operation has PARALLEL set to a value greater than 1, then Data Pump processes can reside on instances other than the one where the job was started. Therefore, the directory object must point to shared storage that is accessible by all instances of the Oracle RAC.

在cluster=n的时候,多个并行使用的是同一个实例进行导出和导入。但是如果cluster=y的时候,如果没开并行,使用一个实例,如果开了并行,这时候,会使用多个实例。
这个时候进行导入的话,directory并不是在一个共享目录中,因此另外一个实例会因为找不到directory而报错。

参数使用方法:
cluster=n和parallel=10组合,开并行,但是关闭集群导入导出。
cluster=y和parallel=1,关闭并行,可以打开集群导入导出,但是这是没有意义的,即使打开,也没有起效。
cluster=y和parallel=10和directory在共享目录上,可以同时使用集群导入和并行。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-30 20:19 , Processed in 0.081927 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表