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\'\)\"
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博客 ” ,链接:http://blog.itpub.net/28258625/viewspace-1431235/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28258625/viewspace-1431235/