Wednesday, 1 April 2015

ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-29283: invalid file operation ORA-06512: at “SYS.UTL_FILE”, ORA-29283: invalid file operation

When doing export occur above error, let’s check directories:
SQL> select directory_name, directory_path from dba_directories
DIRECTORY_NAME     DIRECTORY_PATH
——————————————————————————–
DUMP_DIR       /u02/dump_dir


Two thing’s that hadn’t done is:

1) given correct permissions for that user to acccess the logical directory for export:
SQL> GRANT read, write on directory dump_dir TO ika; <-- username
2) create the physical directory
[oracle@oel6]$ mkdir -p /u02/dump_dir
After that our export run successfully;



I hope this article helped you. Your suggestions/feedback are most welcome.

Keep learning... Have a great day!!!

1 comment:

  1. Hey,

    I am running the below command for impdp and keeps on getting the same error.

    [oracle@alvd-carddb1803 alvd-carddb1803.manhdev.com]$ impdp import_export/impexpus3r@orclpdb directory=DATAPUMP dumpfile=WMS41Q_wmlm_wmmda_20191113085853_01.dmp,WMS41Q_wmlm_wmmda_20191113085853_02.dmp,WMS41Q_wmlm_wmmda_20191113085853_03.dmp,WMS41Q_wmlm_wmmda_20191113085853_04.dmp,WMS41Q_wmlm_wmmda_20191113085853_05.dmp,WMS41Q_wmlm_wmmda_20191113085853_06.dmp,WMS41Q_wmlm_wmmda_20191113085853_07.dmp,WMS41Q_wmlm_wmmda_20191113085853_08.dmp logfile=import_CARD2019NLCWMSDN-CARD2019NLCMDASDN_04122019.log remap_schema=WMLM:CARD2019NLCWMSDN,WMMDA:CARD2019NLCMDASDN transform=oid:n

    Import: Release 18.0.0.0.0 - Production on Wed Dec 4 04:41:12 2019
    Version 18.3.0.0.0

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

    Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
    ORA-39002: invalid operation


    NOTE - I get only the above error, its not followed by any errors.


    Action items -
    I have created the directory in the DB as well as DB level.
    Provided "grant imp_full_database to xyz;:
    Also, checked if the directory is existing in both DB and OS level and also provided the permission to the folders that required permissions.

    Still every time, I get the same error.

    Kindly help me on this.



    Thanks

    ReplyDelete