oracle expdp ora39070,ORACLE ORA-39070: Unable to open the log file

导出测试时,报如下错误:

oracle@pc-centos u01]$ expdp  \'/  as  sysdba\'  directory=backupdir  full=y dumpfile=fullexp.dmp logfile=fullexp.log parallel=2

Export: Release 11.2.0.1.0 - Production on Wed Jan 15 05:03:00 2014

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Mining 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原因:在操作系统未有实际备份目录,创建并授权。一、查看备份目录

SQL> select * from dba_directories;

OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH

------------------------------ ------------------------------ --------------------------------------------------------------------------------

SYS                            BACKUPDIR                      /u01/backupdir/

SYS                            SQLDR                          /u01/oracle/sqldr

SYS                            EXPDIR                         /u01/expdir

SYS                            SUBDIR                         /u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/order_entry//2002/Sep

SYS                            SS_OE_XMLDIR                   /u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/order_entry/

SYS                            LOG_FILE_DIR                   /u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/log/

SYS                            DATA_FILE_DIR                  /u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/sales_history/

SYS                            XMLDIR                         /ade/b/1191423112/oracle/rdbms/xml

SYS                            MEDIA_DIR                      /u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/product_media/

SYS                            DATA_PUMP_DIR                  /u01/app/oracle/admin/orcl/dpdump/

SYS                            ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/11.2.0/dbhome_1/ccr/state

11 rows selected

二、在操作系统上查看目录

root@pc-centos ~]# cd /u01

[root@pc-centos u01]# ls

app  expdir  temp

三、创建目录

[root@pc-centos u01]# mkdir backupdir

[root@pc-centos u01]# ls

app  backupdir  expdir  temp

[root@pc-centos u01]# ls -rlt

total 16

drwxr-xr-x. 4 oracle oinstall 4096 May 10  2012 app

drwxr-xr-x. 2 oracle oinstall 4096 Jul 26 20:40 temp

drwxr-xr-x. 2 oracle oinstall 4096 Jul 27 12:33 expdir

drwxr-xr-x. 2 root   root     4096 Jan 15 05:04 backupdir

四、授权

root@pc-centos u01]# chown -R oracle:oinstall backupdir

[root@pc-centos u01]# ls -rlt

total 16

drwxr-xr-x. 4 oracle oinstall 4096 May 10  2012 app

drwxr-xr-x. 2 oracle oinstall 4096 Jul 26 20:40 temp

drwxr-xr-x. 2 oracle oinstall 4096 Jul 27 12:33 expdir

drwxr-xr-x. 2 oracle oinstall 4096 Jan 15 05:04 backupdir

再执行导出,正常。

阅读(1286) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值