使用expdp导出时遇到如下错误:
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operation
解决:
导出语句:
create or replace directory dpump_dir AS '/home/xxx/admin/dpump';
grant read, write on directory dpump_dir to system;
expdp userid=\'sys as sysdba\' DUMPFILE=Tester_2_19.dmp DIRECTORY=dpump_dir transport_tablespaces = TEST_DATA
/home/xxx/admin/dpump 在操作系统中不存在!
cd /home/xxx/admin
mkdir dpump
再次导入发现就OK了