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')"