大文件导出方法


  1.
$ exp scott/tiger buffer=4096000 file=/(full1.dmp,full2.dmp,full3.dmp,full4.dmp/) filesize=10k
$ imp scott/tiger buffer=4096000 file=(full1.dmp,full2.dmp)  --exp 无%U参数,必须指定文件

2.
导出:
$ mknod /tmp/exp_pipe p
$ compress < /tmp/exp_pipe > export.dmp.z &
$ nohup exp file=/tmp/exp_pipe userid=scott/tiger &
导入:
$ mknod /tmp/exp_pipe p
$ uncompress < export.dmp.z > /tmp/exp_pipe &
$ nohup imp file=/tmp/exp_pipe userid=scott/tiger &

3.
导出:
$ mknod /tmp/exp_pipe p
$ split -b 10k < /tmp/exp_pipe &
$ nohup exp file=/tmp/exp_pipe userid=scott/tiger &
导入:
$ mknod /tmp/exp_pipe p
$ cat xaa xab > /tmp/exp_pipe &  --xaa xab 为导出时生成的文件
$ nohup imp file=/tmp/exp_pipe userid=scott/tiger &

或者:
mknod /oradata/backup/exp_pipe p
nohup exp PCRPT/PCRPT@ETLIDS file=/oradata/backup/exp_pipe owner=PCRPT direct=y &
nohup imp PCRPT/PCRPT file=/oradata/backup/exp_pipe full=y &
--比较吃内存,确认空闲内存在10G 以上,dmp文件在

4. 拆分文件导出:
exp cpiclh/0312#lh log=./log/P_AUTO_FLOAT_$(date '+%Y%m%d').log /
file=/(P_AUTO_FLOAT_$(date '+%Y%m%d')_01.dmp,/
 P_AUTO_FLOAT_$(date '+%Y%m%d')_02.dmp,/
 P_AUTO_FLOAT_$(date '+%Y%m%d')_03.dmp, /
P_AUTO_FLOAT_$(date '+%Y%m%d')_04.dmp/) /
filesize=2000m tables=P_AUTO_FLOAT direct=y

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值