SQL> conn sys/root 
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 
Connected as SYSSQL> create directory dump_test as '/u01/oracle11g';Directory createdSQL> grant read, write on directory dump_test to test;Grant succeededSQL> commit;Commit complete
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\anonymous>expdp test/joyce directory=dump_test dumpfil
e=user.dmpExport: Release 11.1.0.7.0 - Production on 星期五, 28 8月, 2009 11:27:26Copyright (c) 2003, 2007, Oracle.  All rights reserved.连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: 操作无效
ORA-39070: 无法打开日志文件。
ORA-29283: 文件操作无效
ORA-06512: 在 "SYS.UTL_FILE", line 536
ORA-29283: 文件操作无效Oracle 11g为什么用EXPDP备份,老是出错,我刚学的,还有impdp能覆盖原有的数据吗?希望好心人帮忙下解答下,是不是哪里错了或是没弄了,谢谢了,在线等,急 急

解决方案 »

  1.   

    是啊!就是在服务端使用,可是为什么还是出错,怎么指定导出的日志文件,希望有用EXPDP和IMPDP的高手指导下我,谢谢!不会备份和还原,怎么做DBA,帮帮我把详细的步骤写下来,我反应慢,谢谢你们。在线等
     
      

  2.   

    directory=data_pump_dir 然后在 C:\oracle\product\10.2.0\admin\yingda\dpdump可以找到该文件 。impdp有exist_table_action参数,可以设置为replace。这样可以覆盖导入。 
    ps:听说只能在服务器上进行impdp/expdp,可是以前试过在客户端好像也可以进行操作
      

  3.   

    修正   :TABLE_EXISTS_ACTION=replace
      

  4.   

    你是在服务端使用?那么为什么你的
    create directory dump_test as '/u01/oracle11g'
    这个明显是unix系统的路径格式
    可是你在windows上使用
      

  5.   

    刚试了几次,一直都是认为在客户端不能使用,结果只要权限设置正确,真能在客户端使用......真F了......楼主用expdp help=y可以看到帮助
    +日志,你可以在命令中用logfile=......还有就是你没指定要导出什么tables,tablespaces,schemas或full至少要指定一个
    如果你在客户端连接,你的连接应该跟个@net服务名
      

  6.   


    Export: Release 10.2.0.1.0 - Production on 星期五, 28 8月, 2009 15:51:32Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    ;;; 
    连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01":  scott/********@test directory=dump dumpfile=test_08.dm
    p logfile=test_08.log schemas='scott'parallel=3 
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 640 KB
    . . exported "SCOTT"."TEST2"                             204.0 KB   12002 rows
    . . exported "SCOTT"."TEST1"                             7.742 KB      12 rows
    . . exported "SCOTT"."DEPT"                              5.656 KB       4 rows
    . . exported "SCOTT"."EMP"                               7.742 KB      12 rows
    . . exported "SCOTT"."SALGRADE"                          5.585 KB       5 rows
    . . exported "SCOTT"."BONUS"                                 0 KB       0 rows
    . . exported "SCOTT"."TEST3"                                 0 KB       0 rows
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/VIEW/VIEW
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
      /database/oracle/expdp/test_08.dmp
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at 15:51:46这是第8次在客户端测试使用expdp的日志,为什么很多资料都说只能在服务端使用,不能在客户端使用,莫名其妙......
      

  7.   

    实际问题是你没有在相应盘下建立实体目录,你这里是'/u01/oracle11g',DATA_PUMP_DIR 是系统自带的一个目录,当然可以用