expdp時報ORA-31693 ORA-31617 ORA-195錯誤
今天導數據時報錯,發現提示有類似權限的錯誤,但是修改過權限後還是一直的報錯,搜了一下有網友也遇到同樣的錯誤
不過可能是我的rac環境只開啟了一個節點,可能跟 cluster集群的有關系
剛開始一度懷疑是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 system/system directory=backup dumpfile=db_full.dump cluster=n logfile=db_full_20180307.log parallel=8
執行後導出正常。沒有報錯
expdp時報ORA-31693 ORA-31617 ORA-195錯誤