ITPub博客

首页 > 数据库 > Oracle > expdp exclude/include 命令出错

expdp exclude/include 命令出错

原创 Oracle 作者:like052629 时间:2015-02-09 14:35:38 0 删除 编辑
expdp rtms/rtms directory=dump_dir dumpfile=XXX exclude=TABLE:"IN ('AA','BB','CC','EE','EE')"


Export: Release 11.2.0.1.0 - Production on Mon Feb 9 11:38:24 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39071: Value for EXCLUDE is badly formed.
ORA-00936: missing expression

经查,为在Linux系统中转义字符的问题,在win下应该正常

>写上了 table:in('XXX'),table:in('ZZZ') 发现还必须大写
因为使用了单引号,类似于SQL语句中的IN写法。

>还不能连着写??TABLE:IN('XXX','ZZZ')??
可以连着写。如果在命令行中使用,而不使用PARFILE选项将条件写在参数文件中,一定要注意特殊字符的转义。
EXCLUDE=TABLE:\"IN\(\'T\',\'T_TEST\'\)\"

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28258625/viewspace-1431235/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-18

  • 博文量
    120
  • 访问量
    551569