When I backup Oracle using this statement:
EXPDP userid=scott/tiger@orcl directory=DATA_PUMP_DIR dumpfile=%filename%.DMP
It has this error:
Ora-39002:The operation is invalid Ora-3970:can not open the log file Ora-39087:directory name DATA_PUMP_DIR is invalid
When I run:
select * from dba_directories;
The DATA_PUMP_DIR is
D:\app\Administrator\admin\orcl\dpdump\
More importantly, I created the directory by myself. It still gives the same error and I am very sure the directories exist.