集群RAC数据泵导入的2个问题

集群环境,数据泵导入的2个问题


问题1:tnsnames中的连接串有负载均衡



Import: Release 11.2.0.4.0 - Production on Tue Sep 9 10:46:08 2014


Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation


原因可能:
1.是directory创建有问题
2.directory权限问题
3.tnsnames有负载均衡,连接到了另1个实例,而另1个实例中没有创建相关目录。解决的方法是使用只能连接到当前实例的连接串。






问题2:并行未关闭集群特性

  
ORA-31693: Table data object "PERA"."ERM_FUNCPRIVILEGETPL" failed to load/unload and is being skipped due to error:
ORA-31640: unable to open dump file "/home/oracle/dump/ZSH161_20140905.DMP" for read
ORA-19505: failed to identify file "/home/oracle/dump/ZSH161_20140905.DMP"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


原因:


在impdp时指定了parallel,这时,数据泵会将一部任务交到另1个实例上去执行,而另1个实例如果没有创建目录,并存放文件的话,就会报上面的错。
解决的方法是加参数:cluster=N


修改后可以参考的导入写法:


impdp system/oracle@zsgl1 directory=DUMPDIR dumpfile=ZSH161_20140905.DMP logfile=impdp_pera_20140909.log  schemas=pera parallel=10 cluster=N
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值