expdp 无法打开日志文件

执行如下命令导出数据库:

expdp FS5_5400/FS5_5400@ORCL1 DUMPFILE=20141122.DMP

出现如下错误:

ORA-39002: 操作无效

ORA-39070: 无法打开日志文件。

ORA-29283: 文件操作无效

ORA-06512: 在 "SYS.UTL_FILE", line 536

ORA-29283: 文件操作无效

解决方案如下:

sqlplus system/manager@orcl 1

create or replace directory ora_dir as 'c:\ora_dir'

grant read,write on directory ora_dir to FS5_5400;

exit

然后在c盘根目录下建立ora_dir的文件

然后执行

expdp FS5_5400/FS5_5400@ORCL1 directory=ora_dir DUMPFILE=20141122.DMP

一切OK!

导入方法如下:

impdp FS5_2200/FS5_2200@JLWWDB schemas=FS5_5400 remap_schema=FS5_5400:FS5_2200 dumpfile=20141122.DMP remap_tablespace=FS5_5400:FS5_2200

 

posted @ 2014-11-22 10:10  liuyunfeng  阅读(2674)  评论(0编辑  收藏  举报