当前位置: 移动技术网 > IT编程>数据库>Oracle > expdp 中ORA-39002、ORA-39070错误详解及解决办法

expdp 中ORA-39002、ORA-39070错误详解及解决办法

2017年12月08日  | 移动技术网IT编程  | 我要评论

使用expdp时,遇到”ora-39002、ora-39070......”连续报错。

1、  遇到的问题

c:\users\administrator>expdp 'sys/system as sysdba' directory=backup full=y dumpfile=fullexp.dmp logfile=fullexp.log;

    export: release 10.2.0.3.0 - production on wednesday, 18 april, 2012 12:13:15

    copyright (c) 2003, 2005, oracle. all rights reserved.

    connected to: oracle database 10g enterprise edition release 10.2.0.3.0 - production

    with the partitioning, olap and data mining 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 475

ora-29283: invalid file operation

2、  问题解决

google了一下,发现了问题原因:

(1)、查看directory 对象

sys@ tsid > select * from dba_directories;

owner directory_name            directory_path

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

sys   backup                    e:\oradata\backup

而操作系统上,e:\oradata下,没有backup目录。因为目录不存在,所以会出现” ora-39070: unable to open the log file.”错误。

   (2)、创建”e:\oradata\backup”目录,或者修改directory 对象,问题解决。

3、导致问题出现的潜在原因。

   oracle 10g 下创建directory对象,即使所引用的目录不存在,该命令也可以正常执行,这样就容易造成这样的错误。

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网