想从数据库中导出一个表的部分数据出来exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\"
where filed1 like '00%'\";但总是报错,说是query语句不允许有多个值。
请高手帮助解决一下,谢谢!

解决方案 »

  1.   

    C:\>exp scott/wellhope@orcl102  file=d:\daochu.dmp query=\"where ename like 'S%'\" tables=empExport: Release 10.1.0.2.0 - Production on 星期四 1月 6 11:01:00 2011Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in ZHS16GBK character set and AL16UTF16 NCHAR character setAbout to export specified tables via Conventional Path ...
    . . exporting table                            EMP          2 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.C:\>
      

  2.   

    exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\"
    where filed1 like \'00\%\'\";
    这样修改下。试下。。
      

  3.   

    已经可以导出了。但有个警告EXP-00091: 正在导出有问题的统计信息。
    导出成功终止, 但出现警告。
      

  4.   

    写query时,我用了3个双引号,或者用/" 都是可以成功导出的。但有个警告EXP-00091。
      

  5.   

    正常,
    Export terminated successfully with warnings.
    minitoy 的也是一样的 
      

  6.   

    统计信息没关系你导入以后使用
    analyze table table1 compute statistics分析下表就可以了。。
      

  7.   

    原创  EXP-00091:正在导出有问题的统计信息 收藏今天在到处某个分区表的时候报了如下错误:EXP-00091:正在导出有问题的统计信息。
    G了下,在使用exp命令时候加上statistics=none,即不导出表的统计相关信息(注意导入后相关统计信息为空)。
    如果忽略这个错误在imp的时候也没有影响。-The End-