EXCLUDE参数的作用:Enables you to filter the metadata that is exported by specifying objects and object types that you want excluded from the export operation.
因为转义符的问题,所以EXCLUDE参数的用户在Windows与Linux系统下是有区别的。
Windows:
C:> EXPDP SYSTEM/ORACLE DIRECTORY=TEST DUMPFILE=SCOTT.DMP LOGFILE=SCOTT.LOG EXCLUDE=TABLE:IN('EMP') SCHEMAS=SCOTT
或者
C:> EXPDP SYSTEM/ORACLE DIRECTORY=TEST DUMPFILE=SCOTT.DMP LOGFILE=SCOTT.LOG EXCLUDE=TABLE:"IN('EMP')" SCHEMAS=SCOTT
Linux
[root@lonion ~]$expdp system/oracle directory=BACKUP dumpfile=scott.dmp logfile=scott.log exclude=table:"in('EMP')" schemas=scott
EXCLUDE多个表的写法(Windows&Linux都是一样的写法)
[root@lonion ~]$expdp system/oracle directory=BACKUP dumpfile=scott.dmp logfile=scott.log exclude=table:"in('EMP','BONUX')" schemas=scott
参考该贴[25]楼
引用如下:
>写上了 table:in('XXX'),table:in('ZZZ') 发现还必须大写
因为使用了单引号,类似于SQL语句中的IN写法。
>还不能连着写??TABLE:IN('XXX','ZZZ')??
可以连着写。如果在命令行中使用,而不使用PARFILE选项将条件写在参数文件中,一定要注意特殊字符的转义。
EXCLUDE=TABLE:"IN('T','T_TEST')"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24389441/viewspace-1057857/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24389441/viewspace-1057857/