出现错误如下:
C:\Users\Administrator>
exp scott/scott@orcl file=D:\testQuery.dmp tables=dept query= "where dname like 'S%'"
LRM-00112: 参数 'query' 不允许有多个值
EXP-00019: 处理参数失败, 请键入 'EXP HELP=Y' 获取帮助信息
EXP-00000: 导出终止失败
经过测试,如下方式可行也是正确的:
C:\Users\Administrator>
exp scott/scott@orcl file=D:\testQuery.dmp tables=dept query= """where dname like 'S%'"""
Export: Release 11.1.0.6.0 - Production on 星期二 1月 8 11:13:43 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
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径...
. . 正在导出表 DEPT导出了 1 行
EXP-00091: 正在导出有问题的统计信息。
EXP-00091: 正在导出有问题的统计信息。
导出成功终止, 但出现警告。