Question: I am running expdp from the command
line without any regiments and I get this error:
oracle> expdp
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39145: directory
object parameter must be specified and non-null
How do I fix the ORA-39146 error?
Answer: The expdp invocation is different
in the older export (exp) and the data pump export (expdp because
expdp
requires the directory argument).
The
oerr utility shows this for the ORA-39145 error:
ORA-39145: directory object parameter must be specified and non-null
Cause: No directory object was provided in
either an
dbms_datapump.add_file
API call or to the directory parameter used by the Data Pump command
line clients.
Action: Correct the directory object parameter
and retry the operation
The fix for the ORA-39146 is to grant exp_full_database,
create an export directory and use it in the command line argument
to expdp:
- grant exp_full_database to user:
SQL> connect
oracle/mypass;
Connected.
SQL > grant
exp_full_database to fred;
Grant succeeded.
- In SQL*Plus, create the directory with the
create directory command:
SQL> create directory exp_dir as
‘/u01/app/oracle/mysid/exports’;
- From the UNIX/Linux/DOS prompt, add the directory
argument when invoking expdp:
>
expdp directory=exp_dir
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
Burleson is the American Team

Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|