加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用expdp时遇到ORA-39002、ORA-39070错误

发布时间:2020-12-12 18:46:49 所属栏目:百科 来源:网络整理
导读:使用 expdp 时,遇到 ”ORA-39002 、 ORA-39070......” 连续报错。 1、 遇到的问题 C:UsersAdministratorexpdp 'sys/system as sysdba' directory=backup full=y dumpfile=fullexp.dmp logfile=fullexp.log; Export: Release 10.2.0.3.0 - Production on

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

1、遇到的问题

C:UsersAdministrator>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

2、问题解决

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

1)、查看directory对象

SYS@ tsid > select * from dba_directories;

OWNER DIRECTORY_NAMEDIRECTORY_PATH

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

SYSBACKUPE:oradatabackup

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

2)、创建”E:oradatabackup”目录,或者修改directory对象,问题解决。

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读