Imp/Exp命令的PARFILE参数
parafile这个参数,可能在imp和exp的命令里,大家很少关注,一般我们的imp exp一行命令都搞定了,还搞什么参数文件嘛
不过如果我们的数据库很大,我们经常会启动filesize这个参数,这个parafile就很实用了。
如下使用
导出语句
exp system/manager@cpzb2006 compress=y filesize=2000M file=(E:/DBBACKUP/exp_cpzb01.dmp,E:/DBBACKUP/exp_cpzb02.dmp,E:/DBBACKUP/exp_cpzb03.dmp,
E:/DBBACKUP/exp_cpzb04.dmp,E:/DBBACKUP/exp_cpzb05.dmp,E:/DBBACKUP/exp_cpzb06.dmp,
E:/DBBACKUP/exp_cpzb07.dmp,E:/DBBACKUP/exp_cpzb08.dmp,E:/DBBACKUP/exp_cpzb09.dmp,
E:/DBBACKUP/exp_cpzb10.dmp) log=E:/DBBACKUP/exp_cpzb.log full=y direct=y recordlength=65535
导入语句
imp system/manager@CFP00_CPZBZHCX PARFILE=e:/dbbackup/imp_full_cfp10/imp_full.par
imp_full.par的内容是
filesize=0
BUFFER=81920
COMMIT=y
IGNORE=y
fromuser=(CP,CP00,CP01,CP02,CP03,CP04,CP05,CP06,CP07,CP08,CP09,CP10,CP11,CP12,CP13,
CP14,CP15,CP16,CP17,CP19,CP20,CP80,CP51,CP52,CP53,CP54,CP55,CP56,CP50,CPZB)
touser=(CP,CP00,CP01,CP02,CP03,CP04,CP05,CP06,CP07,CP08,CP09,CP10,CP11,CP12,CP13,CP14,
CP15,CP16,CP17,CP19,CP20,CP80,CP51,CP52,CP53,CP54,CP55,CP56,CP50,CPZB)
file=(e:/dbbackup/exp_cpzb01.dmp,e:/dbbackup/exp_cpzb02.dmp,e:/dbbackup/exp_cpzb03.dmp,
e:/dbbackup/exp_cpzb04.dmp,e:/dbbackup/exp_cpzb05.dmp,e:/dbbackup/exp_cpzb06.dmp,
e:/dbbackup/exp_cpzb07.dmp,e:/dbbackup/exp_cpzb08.dmp,e:/dbbackup/exp_cpzb09.dmp,
e:/dbbackup/exp_cpzb10.dmp)
log=e:/dbbackup/imp_full_cfp10/imp_full.log
- 提供Oracle管理/故障处理/优化/安装/RAC/备份恢复技术服务,提供专业的Oracle培训和咨询服务。咨询邮件可发至电子[email protected]
-
- 专业论坛 http://www.inthirties.com
- 技术博客 http://blog.csdn.net/inthirties
- 个人站点 http://blog.inthirties.com