集羣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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章