cat >exp.par<<EOF
directory=dmp
dumpfile=expBig.dmp
tables=(py.order,py.transation)
query=(py.order:"where id<=14000 or id>=134520000",
py.transation:"where id<=15000 or id>=8817147")
EOF
# 使用parfile文件,一些符号的转义即可省略
expdp \'/ as sysdba\' parfile=exp.par
# 使用sys用户泵出该用户两表的部分数据
该技巧的实质是数据泵的 tables和query 参数的联合使用技巧
也可以使用 tables 参数指定分区表的某个分区来泵出分区表的部分数据
tables=(t1:p201805,t1:p201806,t2:p201805,t2:p201806)