ORACLE10g及以后的版本expdp错误

最近在学习oracle11g的expdp逻辑备份数据库,遇到以下问题:

bash-4.1$ expdp yjj/123456 dumpfile=dir:yjj.dmp logfile=dir:yjj.log

Export: Release 12.1.0.2.0 - Production on Tue Apr 21 09:49:21 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

在讲解错误原因以及 解决办法之前,先说一下expdp备份需要做的工作:

  1. 首先创建目录对象
SQL> create or replace directory dir as '/home/yjj/oraclebackup';

Directory created.
  1. 给目录对象赋予权限
SQL> grant read,write on directory dir to yjj;

Grant succeeded.
  1. 导出(直接在终端中运行)
bash-4.1$ expdp yjj/123456 dumpfile=dir:yjj.dmp logfile=dir:yjj.log

Export: Release 12.1.0.2.0 - Production on Tue Apr 21 09:51:01 2015

Copyright (c) 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值