日期:2014-05-17  浏览次数:21231 次

数据泵导出数据报错50分求大神解救
我的命令是这样的:
expdp jdcz6/ufgov@ZS DIRECTORY=dpump_dir DUMPFILE=jdcz6_20120109.dmp LOGFILE=jdcz6_20120109.log EXCLUDE=TABLE:\"IN('AS_FILE')\" PARALLEL=4
本人已经用sys用户创建了目录和授权,在win7命令行模式下执行该命令报错如下(此命令在本地环境可以使用,但是一用来导服务器数据库就不行了):
ORA-39002:invalid operation
ORA-39070:unable to open the log file
ORA-29203:invalid file operation
ORA-06512:at "SYS.UTL_FILE",line 488
ORA-29283:invalid file operation
求帮助解决,我们有一张附件表太大了,所以不得不这样导
数据库 oracle

------解决方案--------------------
引用:
引用:
引用:引用:引用:引用:这是目录的读写权限问题。。更改DUMP_DIR目录的权限
我已经授予读写权限了,没用的

但是要确定你的磁盘剩余空间够大,并且不影响当前的系统运行.最后删掉导出的文件就是了
这个文件岂不……


1)expdp是可以在客户端上生成转储文件的
2)impdp是可以在不同的实例之间进行数据的迁移复制的

练习1:
1)将远程数据库WSJB用户使用expdp命令导出到本地磁盘的D:\下

Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\windows\system32>sqlplus system/system

SQL*Plus: Release 11.1.0.6.0 - Production on 星期四 1月 10 13:49:34 2013

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


连接到: 
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> input
  1   create public database link wsjb
  2   connect to wsjb identified by wsjbcs
  3   using 'xagxsi_16';
数据库链接已创建。

SQL> select 1 from dual@wsjb;
 1
----------
 1

SQL> create directory chenzw as 'D:\';
目录已创建。

SQL> grant read,write on directory chenzw to public;
授权成功。

SQL> commit; 
提交完成。

SQL>expdp system/system@orcl directory = chenzw dumpfile=wsjb20130110.dmp network_link=wsjb logfile=exp20130110.log schemas=wsjb

 从 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

C:\windows\system32>expdp system/system@orcl directory = chenzw dumpfile=wsjb20130110.dmp network_link=wsjb logfile=exp20130110.log schemas=wsjb

Export: Release 11.1.0.6.0 - Production on 星期四, 10 1月, 2013 13:54:23

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/********@orcl directory = chenzw dumpfile=wsjb20130110.dmp network_link=wsjb logfile=exp20130110.log schemas=wsjb 
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA