我的命令是这样的:
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

解决方案 »

  1.   

    expdb命令只能用在数据库的服务端,exp可以用在客户端的。
      

  2.   

    这是目录的读写权限问题。。更改DUMP_DIR目录的权限
      

  3.   

    丢掉DIRECTORY=dpump_dir参数,然后导出,最后在
    APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\RDBMS\LOG\
    或者其他地方找一下导出的文件.
      

  4.   


    此外,你需要登录到服务器端来执行刚才的命令.或者,使用逻辑备份exp xxx/xxx@xxx file=xxx\xxx\xxx.dmp tables=(xxxx) query=""" where  xxxx  """这个速度会慢.
      

  5.   


    官网中明确说明:
    This means thatfor unprivileged users, the database administrator (DBA) must create directoryobjects for the Data Pump files that are read and written on that server filesystem. expdp导出的文件是在服务器上,在服务器上,然后ftp move到本地就可以了哦
      

  6.   


    RE:http://www.itpub.net/thread-710188-2-1.html
    试一下,这个貌似可行
      

  7.   


    1)expdp是可以在客户端上生成转储文件的
    2)impdp是可以在不同的实例之间进行数据的迁移复制的练习1:
    1)将远程数据库WSJB用户使用expdp命令导出到本地磁盘的D:\下Microsoft Windows [版本 6.1.7600]
    版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\windows\system32>sqlplus system/systemSQL*Plus: Release 11.1.0.6.0 - Production on 星期四 1月 10 13:49:34 2013Copyright (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 optionsSQL> 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
    ----------
     1SQL> 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=wsjbExport: Release 11.1.0.6.0 - Production on 星期四, 10 1月, 2013 13:54:23Copyright (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
    使用 BLOCKS 方法的总估计: 93.31 MB
    处理对象类型 SCHEMA_EXPORT/USER
    处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
    处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
    处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
    处理对象类型 SCHEMA_EXPORT/TABLESPACE_QUOTA
    处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    处理对象类型 SCHEMA_EXPORT/SYNONYM/SYNONYM
    处理对象类型 SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    处理对象类型 SCHEMA_EXPORT/TABLE/TABLE
    处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
    处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    处理对象类型 SCHEMA_EXPORT/TABLE/COMMENT
    处理对象类型 SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
    处理对象类型 SCHEMA_EXPORT/FUNCTION/FUNCTION
    处理对象类型 SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
    处理对象类型 SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
    处理对象类型 SCHEMA_EXPORT/VIEW/VIEW
    处理对象类型 SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    处理对象类型 SCHEMA_EXPORT/TABLE/TRIGGER
    处理对象类型 SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . 导出了 "WSJB"."IRAA07"                             34.21 MB       5 行
    ......此处省略N多行
    已成功加载/卸载了主表 "SYSTEM"."SYS_EXPORT_SCHEMA_01" 
    ******************************************************************************
    SYSTEM.SYS_EXPORT_SCHEMA_01 的转储文件集为:
      D:\WSJB20130110.DMP
    作业 "SYSTEM"."SYS_EXPORT_SCHEMA_01" 已于 14:04:08 成功完成
    练习2:
    1)将远程数据库WSJB用户使用impdp命令导入到本地的test用户下impdp system/system@orcl directory = chenzw network_link = wsjb schemas = wsjb remap_schema=wsjb:test