You may get ORA-39087 and ORA-39070 while doing expdp.

 

Actual Error:

[oracle@localhost ~]$ expdp dumpfile=test.dmp directory=DATA_PUMP_DIR logfile=test.log parallel=2 tables=raj.test

Export: Release 12.1.0.2.0 - Production on Thu Aug 27 10:55:36 2015

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

Username: raj/raj@orcl

Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name DATA_PUMP_DIR is invalid

This usually comes , when the user don’t have permission on that directory..

Grant read,write permission to the user:

SQL> grant read,write on directory DATA_PUMP_DIR to RAJ;

Granted;

Now try to take export again. It should work.

[oracle@localhost ~]$ expdp dumpfile=test.dmp directory=DATA_PUMP_DIR logfile=test.log parallel=2 tables=raj.test

Export: Release 12.1.0.2.0 - Production on Thu Aug 27 10:56:31 2015

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

Username: raj/raj@orcl

Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "RAJ"."SYS_EXPORT_TABLE_01":  raj/********@orcl dumpfile=test.dmp directory=DATA_PUMP_DIR logfile=test.log parallel=2 tables=raj.test
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 13 MB
. . exported "RAJ"."TEST"                                10.66 MB   93915 rows
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER

Master table "RAJ"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for RAJ.SYS_EXPORT_TABLE_01 is:
  /home/oracle/DIR1/test_01.dmp
 

Job "RAJ"."SYS_EXPORT_TABLE_01" successfully completed at Thu Aug 27 10:57:09 2015 elapsed 0 00:00:31