expdp 中cluster=no的参数 导致ORA-31693 ORA-31617 ORA-19505 ORA-27037

                                           cluster=no 的适用场景


这是一个同事的问题,觉得不错,所以贴出来

我也做相类似的操作没有出现报错。不过可能是我的rac环境只开启了一个节点。



刚开始一度怀疑是dir_dp的物理目录权限不够

给了775权限

但是还不行

官方文档这样写道

UsingPARALLEL 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 isstarted. Therefore, the directory object can point to local storage for thatinstance.

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

 

看来是导出文件的目录不是两个节点共享的原因,/backup只在节点1上挂载,节点2上没有。如果/backup在两个节点共享,就不会出现这样的错误。但是现在只能在单实例上操作。查看expdp的help,发现有个参数cluster。这个参数可以控制是否采用多实例导出。设置cluster=n后,即:

expdp test02/test_1 tablespaces=testparallel=4 cluster=n directory=expdp_dirdumpfile=TEST_20140307.dmp logfile=TEST_20140307.log

执行后导出正常。没有报错!


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值