大文件导出方法
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
$ 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
相关文章推荐
- php导出CSV文件时身份证号码显示为科学计数的解决方法
- PHP导入导出mysql为sql文件的方法(已经验证,有实例,很好用)
- 【eclipse】eclipse属性配置(背景色字体等)文件的导入导出方法
- Asp.Net MVC5 使用NPIO导出Excel数据文件方法总结
- C#导出到txt文件的三种方法
- Navicat for Mysql 只导出数据表结构(.sql文件)的方法
- Eclipse导出可直接运行jar类型文件的方法
- SQLserver 2008将数据导出到Sql脚本文件的方法
- c#自带压缩类实现数据库表导出到CSV压缩文件的方法
- springMVC方法,导出/下载文件。
- 导出excel、word、csv文件方法汇总
- WP手机短信导出方法和MSG格式文件阅读器的实现
- 在 SQLplus 下导出导出脚本文件的方法
- three for 3ds max 导出three obj 模型文件,插件安装方法
- Asp.NET导出Excel文件乱码解决若干方法 (转)
- asp.net 导出文件到EXCEL方法
- Oracle导出表(即DMP文件)的两种方法
- datagrid数据导出到excel文件给客户端下载的几种方法
- MySQL执行Select语句将结果导出到文件的方法
- datagrid数据导出到excel文件给客户端下载的几种方法