EXPDP exclue query参数使用实例

下面为使用11gr2数据泵两个参数的实际例子:

EXPDP test/test directory=dumpdir dumpfile=1.dp  logfile=expdp_1.log exclude=TABLE:"IN('T1''T2')"  reuse_dumpfiles=true  version=10.2.0.1

使用exclude参数排除了T1 T2 表,如果出错可以使用exclude=TABLE:\"IN('T1','T2')\" 这样的方式,在小型机上得使用后者。

 

 

EXPDP test/test  directory=dumpdir dumpfile=1.dp  logfile=expdp_1.log tables=t1,t2 reuse_dumpfiles=true query=t1:\"WHERE RQ='2011-12'\",t2:\"WHERE RQ='2011-12'\"

 

看来数据泵的条件子句更加灵活了,可以针对不同的表设置不同的条件。

 

 

另外需要注意的是,从小型机上面FTP上传文件,要使用bin 或者binary以二进制的方式传送文件,默认是ASCII码的,否则会出现ora-36169 错误

 

 

ORA-31619: invalid dump file "string"

Cause: Either the file was not generated by Export or it was corrupted.

Action: If the file was indeed generated by Export, report this as an Import bug and submit the export file to Oracle Customer Support.

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7177735/viewspace-734549/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7177735/viewspace-734549/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值