oracle exp不生成dumpfile,预估出实际导出文件的大小。
来源:互联网 发布:青木原树海 知乎 编辑:程序博客网 时间:2024/06/09 23:25
目的:在不创建dumpfile前预估出需要的导出文件大小。 适用于export 实验步骤如下:
OS: Linux test20 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
ORACLE: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
1、 创建一个管道文件
[oracle@test20 oracle]$ mknod exp.pipe p
[oracle@test20 oracle]$ ll exp.pipe
prw-r--r-- 1 oracle oinstall 0 Mar 1 13:17 exp.pipe
2、dd命令往文件中写入
dd if=/oracle/exp.pipe of=/dev/null bs=1024 &
3、导出需要的对象,设置dumpfile为exp.pipe
[oracle@test20 oracle]$ exp yyf/yyf file=/oracle/exp.pipe tables=yyf
Export: Release 10.2.0.4.0 - Production on Fri Mar 1 13:21:12 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table YYF 807920 rows exported
Export terminated successfully without warnings.
85856+0 records in
85856+0 records out
87916544 bytes (88 MB) copied, 6.24984 seconds, 14.1 MB/s
[1]+ Done dd if=/oracle/exp.pipe of=/dev/null bs=1024
4、估算完后,查看exp.pipe文件大小
[oracle@test20 oracle]$ ll
prw-r--r-- 1 oracle oinstall 0 Mar 1 13:21 exp.pipe <<-------由此看出实际是没有写入数据。原因在于of=/dev/null
5、实际导出,并查看文件dumpfile大小。
[oracle@test20 oracle]$ exp yyf/yyf file=/oracle/yyf.dmp tables=yyf
About to export specified tables via Conventional Path ...
. . exporting table YYF 807920 rows exported
Export terminated successfully without warnings.
[oracle@test20 oracle]$ ll yyf.dmp
-rw-r--r-- 1 oracle oinstall 87916544 Mar 1 11:44 yyf.dmp
ps:现在的磁盘价格,根本用不着估算的这么准确。
OS: Linux test20 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
ORACLE: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
1、 创建一个管道文件
[oracle@test20 oracle]$ mknod exp.pipe p
[oracle@test20 oracle]$ ll exp.pipe
prw-r--r-- 1 oracle oinstall 0 Mar 1 13:17 exp.pipe
2、dd命令往文件中写入
dd if=/oracle/exp.pipe of=/dev/null bs=1024 &
3、导出需要的对象,设置dumpfile为exp.pipe
[oracle@test20 oracle]$ exp yyf/yyf file=/oracle/exp.pipe tables=yyf
Export: Release 10.2.0.4.0 - Production on Fri Mar 1 13:21:12 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table YYF 807920 rows exported
Export terminated successfully without warnings.
85856+0 records in
85856+0 records out
87916544 bytes (88 MB) copied, 6.24984 seconds, 14.1 MB/s
[1]+ Done dd if=/oracle/exp.pipe of=/dev/null bs=1024
4、估算完后,查看exp.pipe文件大小
[oracle@test20 oracle]$ ll
prw-r--r-- 1 oracle oinstall 0 Mar 1 13:21 exp.pipe <<-------由此看出实际是没有写入数据。原因在于of=/dev/null
5、实际导出,并查看文件dumpfile大小。
[oracle@test20 oracle]$ exp yyf/yyf file=/oracle/yyf.dmp tables=yyf
About to export specified tables via Conventional Path ...
. . exporting table YYF 807920 rows exported
Export terminated successfully without warnings.
[oracle@test20 oracle]$ ll yyf.dmp
-rw-r--r-- 1 oracle oinstall 87916544 Mar 1 11:44 yyf.dmp
ps:现在的磁盘价格,根本用不着估算的这么准确。
- oracle exp不生成dumpfile,预估出实际导出文件的大小。
- oracle数据泵impdp远程导入,无需生成dumpfile文件
- oracle的exp导出
- oracle数据库exp导出的dmp文件存放在哪儿
- Oracle imp&&exp 导入导出.dmp文件
- oracle 11G exp命令不导出空表的解决办法
- Oracle导出程序Exp的使用【转载】
- Oracle导出程序Exp的使用
- imp exp oracle 数据的导入导出
- oracle导入/导出imp,exp的应用
- oracle的导入导出imp/exp
- Oracle EXP导出指定的一个表
- oracle exp导出缺少表的处理
- ORACLE EXP导出说明
- Oracle exp 导出工具
- oracle,exp导出数据
- imp/exp文件的导入导出
- imp/exp文件的导入导出
- 设计师为何做不出产品经理想要的设计
- C++中虚函数工作原理和(虚)继承类的内存占用大小计算
- Linux(Centos )的网络内核参数优化来提高服务器并发处理能力
- 内核层关机重启
- 0013算法笔记——【动态规划】最大子段和问题,最大子矩阵和问题,最大m子段和问题
- oracle exp不生成dumpfile,预估出实际导出文件的大小。
- java调用存储过程同时获取[返回参数]和[结果集]
- Android App 开发 设计模式第八篇:抽象工厂模式
- opencms8.5.0-新建自定义结构化类型(Structured contents)
- Java Review 12 Exception
- CentOS 安装中文输入法
- 如何成为强大的程序员?
- java解析xls
- C++ static成员变量与static成员函数