expdp ORA-39070:Unable to open the log file


Oracle中,當執行expdp或impdp的時候,有時候會出現錯誤:

[oracle@bi-dw ~]$ expdp dp_user/dp_password@dw directory=expdp_dir dumpfile=odi_work_dw.dmp logfile=odi_work.log  schemas=odi_work

Export: Release 12.1.0.2.0 - Production on Thu Dec 10 11:36:18 2015

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

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-29283: invalid file operation

ORA-06512: at "SYS.UTL_FILE", line 536

ORA-29283: invalid file operation

產生這個錯誤的原因通常有兩個:

     1、對存放dmp文件或log文件的路徑不存在,或者沒有權限,
      2、對dmp文件沒有權限。

所以,遇到這個問題,首先去檢查數據泵目錄對應的操作系統目錄和權限。

SQL> create or replace directory expdp_dir as '/bi/oradata_export';

經過檢查,發現數據泵目錄expdp_dir 對應的操作系統路徑/bi/oradata_export不存在,新建即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM