使用expdp並行導出數據的時候報如下錯誤:
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 Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=test directory=expdp_dir dumpfile=test_%u.dmp filesize=10g parallel=4 logfile=expdpfull.log Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 32.85 GB Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE Processing object type SCHEMA_EXPORT/TABLE/TABLE ORA-31693: Table data object "test"."WF_HIST" failed to load/unload and is being skipped due to error: ORA-31617: unable to open dump file "/home/oracle/dump/test_03.dmp" for write ORA-19505: failed to identify file "/home/oracle/dump/test_03.dmp" ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3
原因和解決方法:
在rac環境使用並行導出時,系統會嘗試同時寫文件到rac中的節點。如果導出目錄是本地磁盤的話,導出時候就會報錯,出現上面的現象。
解決方法:導出的時候添加參數cluster=no