下面为使用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/
5928

被折叠的 条评论
为什么被折叠?



