[20190520]exp imp on th fly.txt --//以前做的测试,查找浪费许多时间,做1个记录。 --//注:仅仅linux 操作系统,bash shell版本不能太低就可以实现,现在安装的linux bash shell应该都没有问题。 1.环境: SCOTT@book> @ ver1 PORT_STRING VERSION BANNER ------------------------------ -------------- -------------------------------------------------------------------------------- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production 2.测试exp: exp on the fly, run: create table t as select * from all_objects; $ exp scott/book file=>(gzip>t.dmp.gz) tables=t buffer=8388608 Export: Release 11.2.0.4.0 - Production on Mon May 20 08:58:15 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.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 T 83245 rows exported Export terminated successfully without warnings. $ file t.dmp.gz t.dmp.gz: gzip compressed data, from Unix, last modified: Mon May 20 08:58:15 2019 SCOTT@book> rename t to ty; Table renamed. 3.测试imp: imp on the fly, run: $ imp scott/book full=y file=<(gunzip <t.dmp.gz) buffer=8388608 Import: Release 11.2.0.4.0 - Production on Mon May 20 09:00:42 2019 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Export file created by EXPORT:V11.02.00 via conventional path import done in ZHS16GBK character set and AL16UTF16 NCHAR character set . importing SCOTT's objects into SCOTT . importing SCOTT's objects into SCOTT . . importing table "T" 83245 rows imported Import terminated successfully without warnings. imp scott/book full=y file=<(gunzip <t.dmp.gz) buffer=8388608 SCOTT@book> select count(*) from t union all select count(*) from ty; COUNT(*) ---------- 83245 83245 4.也可以通过管道实现所谓的不落地方式,只要建立将p.dmp.gz建立为管道文件: $ mkfifo p.dmp.gz $ ls -l p.dmp.gz prw-r--r-- 1 oracle oinstall 0 2019-05-20 09:04:27 p.dmp.gz --//再执行如下: $ cat ad.sh #! /bin.bash exp scott/book file=>(gzip>p.dmp.gz) tables=t buffer=8388608 & sleep 5 imp scott/btbtms@192.168.100.33:1521/test full=y file=<(gunzip <p.dmp.gz) buffer=8388608 & wait SCOTT@test> select count(*) from t ; COUNT(*) ---------- 83245 --//注expdp,impdp不支持这样方式,实际上expdp,impdp已经支持数据压缩(早期仅仅支持元数据),没有必要这样做,意义不大。
[20190520]exp imp on th fly.txt
来源:这里教程网
时间:2026-03-03 13:43:32
作者:
编辑推荐:
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- linux下修改mtu值
linux下修改mtu值
26-03-03 - Oracle RAC+DG环境搭建(CentOS 7+Oracle 12C)(八) 安装数据库软件
- Oracle RAC+DG环境搭建(CentOS 7+Oracle 12C)(五)配置共享存储
- Oracle RAC+DG环境搭建(CentOS 7+Oracle 12C)(一)配置实验虚拟机
- Oracle RAC+DG环境搭建(CentOS 7+Oracle 12C)(四) 操作系统参数及环境变量设置
- Debian日志安全分析实战指南(手把手教你进行系统安全日志审计与监控)
Debian日志安全分析实战指南(手把手教你进行系统安全日志审计与监控)
26-03-03 - 1 sql优化大幅度降低系统CPU开销
1 sql优化大幅度降低系统CPU开销
26-03-03 - 宜信DBA实践|全面解析Oracle等待事件的分类、发现及优化
宜信DBA实践|全面解析Oracle等待事件的分类、发现及优化
26-03-03 - Oracle RAC+DG环境搭建(CentOS 7+Oracle 12C)(九) 创建数据库
- Debian自动化部署实战指南(从零开始掌握无人值守安装与批量配置)
Debian自动化部署实战指南(从零开始掌握无人值守安装与批量配置)
26-03-03
