This error may be returned if you are trying to export or import using oracle data pump,
but invalid directory name has been provided during this process.
[oracle@ora-dev EXPDP]$ expdp system/*****@TEST schemas=test1 directory=EXPDP dumpfile=test1.dmp log=test1.log
Export: Release 12.2.0.1.0 - Production on Thu Oct 29 16:40:44 2020
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c EE High Perf Release 12.2.0.1.0 - 64bit Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name EXPDP is invalid
Solution :-
In case you are sure that you have specified a valid directory name, same error would be returned if “oracle” user doing the export or import does not have read/write rights on the directory at OS or oracle level.
You must make sure following for a successful expdp or impdp without ORA-39087
- Directory exists at OS level.
- Oracle software owner has read/write privileges on the OS level directory.
- The user doing export/import has been granted rights on directory created at oracle level, as follows
You need to grant read, write on directory MY_DATA_PUMP_DIRECTORY to system and your myschema.
Here are the two steps you must take to prepare the directory:
Grant "create any directory" privilege to the export/import administrator.
Login as sysdba
SQL> grant create any directory to system;
Grant succeeded.
Create a directory for dump file set and log file.
SQL> create directory EXPDP as '/u01/oracle/EXPDP';
Directory created.
Retest issue.
No comments:
Post a Comment