使用expdp时遇到ORA-39002、ORA-39070错误(转)
2014-10-17 09:32
351 查看
使用expdp时,遇到”ORA-39002、ORA-39070......”连续报错。
1、
遇到的问题
C:\Users\Administrator>expdp'sys/system as sysdba' directory=backup full=y dumpfile=fullexp.dmplogfile=fullexp.log;
Export:Release 10.2.0.3.0 - Production on Wednesday, 18 April, 2012 12:13:15
Copyright(c) 2003, 2005, Oracle. All rightsreserved.
Connectedto: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With thePartitioning, 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;
OWNERDIRECTORY_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对象,即使所引用的目录不存在,该命令也可以正常执行,这样就容易造成这样的错误。
转自:http://blog.itpub.net/25744374/viewspace-721515
ps:创建目录
其语法为:
CREATE [OR REPLACE] DIRECTORY directory AS 'pathname';
本案例具体创建如下:
create or replace directory exp_dir as '/tmp';
目录创建以后,就可以把读写权限授予特定用户,具体语法如下:
GRANT READ[,WRITE] ON DIRECTORY directory TO username;
例如:
grant read, write on directory exp_dir to eygle;
1、
遇到的问题
C:\Users\Administrator>expdp'sys/system as sysdba' directory=backup full=y dumpfile=fullexp.dmplogfile=fullexp.log;
Export:Release 10.2.0.3.0 - Production on Wednesday, 18 April, 2012 12:13:15
Copyright(c) 2003, 2005, Oracle. All rightsreserved.
Connectedto: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With thePartitioning, 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;
OWNERDIRECTORY_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对象,即使所引用的目录不存在,该命令也可以正常执行,这样就容易造成这样的错误。
转自:http://blog.itpub.net/25744374/viewspace-721515
ps:创建目录
其语法为:
CREATE [OR REPLACE] DIRECTORY directory AS 'pathname';
本案例具体创建如下:
create or replace directory exp_dir as '/tmp';
目录创建以后,就可以把读写权限授予特定用户,具体语法如下:
GRANT READ[,WRITE] ON DIRECTORY directory TO username;
例如:
grant read, write on directory exp_dir to eygle;
相关文章推荐
- 使用expdp时遇到ORA-39002、ORA-39070错误
- Oracle使用expdp时遇到ORA-39002、ORA-39070错误
- 使用expdp时遇到ORA-39002、ORA-39070错误
- 使用expdp时遇到ORA-39002、ORA-39070错误
- 使用expdp时遇到ORA-39002、ORA-39070错误
- 【IMPDP】使用工具IMPDP导入数据时ORA-39002、ORA-39070错误排查
- 【IMPDP】使用工具IMPDP导入数据时ORA-39002、ORA-39070错误排查
- 使用 ASM 存储 expdp 导出文件(ORA-39070)
- Linux下执行expdp导出语句时提示 ora-39002 ora-29283等错误
- 【翻译自mos文章】使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。
- oracle expdp导入时 提示“ORA-39002: 操作无效 ORA-39070: 无法打开日志文件 ”
- expdp导出报错ORA-39002、ORA-39070解决办法
- Windows环境下Oracle10g使用DBCA创建数据库时遇到ORA-12560协议适配器错误
- 【翻译自mos文章】使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方式。
- EXPDP遇到的ORA-39005和ORA-39095错误
- 使用IMP导入数据时遇到ORA-20005的错误
- expdp数据库时报ora-39002错误问题的处理01
- expdp 中ORA-39002、ORA-39070错误详解及解决办法
- 关于在使用rowid和rownum时遇到ORA-01446错误的原因即解决方法。
- 重温expdp时遇到ORA-27054的错误