您的位置:首页 > Web前端

大文件导出方法

2010-04-18 00:36 120 查看
  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

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  float file date buffer