EXPDP 这个参数是排队某个特定的对象
使用说明:
EXCLUDE=object_type[:name_clause] [,….]
Object_type用于指定要排除的对象类型,name_clause用于指定要排除的具体对象.EXCLUDE和INCLUDE不能同时使用
Object_type用于指定要排除的对象类型,name_clause用于指定要排除的具体对象.EXCLUDE和INCLUDE不能同时使用
今天测试了这个命令,刚开始我是这样写的
[oracle@jkj ~]$ expdp system/oracle full=y directory=exp_dir dumpfile=bbb.dmp exclude=TABLEs:EMP
Export: Release 11.2.0.1.0 - Production on 星期四 10月 24 17:15:31 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: 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: 参数值无效
ORA-39038: 对象路径 "TABLES" 在 FULL 作业中不受支持。
怎么测都会提示这个,后来仔细看了下这个使用说明,才发现,必须要用使用IN 再转义下才行,命令如下:
expdp scott/tiger directory=exp_dir dumpfile=bAbb.dmp EXCLUDE=TABLE:\"IN\(\'EMP\',\'DEPT\'\)\"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/18762014/viewspace-774976/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/18762014/viewspace-774976/