Oracle 利用管道压缩逻辑备份
熟悉利用管道压缩逻辑备份的大致过程: 1、创建命名管道 $ mknod /tmp/exp.pipe p
2、调用gzip压缩程序对输进管道信息进行压缩,并在后台执行 $ gzip <exp.pipe> drb.exp.gz & 19643 $ ps -ef|grep 19643 ora10g 19643 17608 0 07:17 pts/3 00:00:00 -bash ora10g 20175 17608 0 07:17 pts/3 00:00:00 grep 19643
3、进行逻辑备份 $ exp drb/drbmc owner=drb file=/tmp/exp.pipe
Export: Release 10.2.0.3.0 - Production on Fri Dec 11 07:18:13 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses ZHS16GBK character set (possible charset conversion) . exporting pre-schema procedural objects and actions . exporting foreign function library names for user DRB . exporting PUBLIC type synonyms . exporting private type synonyms . exporting object type definitions for user DRB About to export DRB's objects ... . exporting database links . exporting sequence numbers . exporting cluster definitions . about to export DRB's tables via Conventional Path ... . exporting synonyms . exporting views . exporting stored procedures . exporting operators . exporting referential integrity constraints . exporting triggers . exporting indextypes . exporting bitmap, functional and extensible indexes . exporting posttables actions . exporting materialized views . exporting snapshot logs . exporting job queues . exporting refresh groups and children . exporting dimensions . exporting post-schema procedural objects and actions . exporting statistics Export terminated successfully without warnings.
- Done gzip <exp.pipe >drb.exp.gz
4、生成压缩好的exp文件:drb.exp.gz $ ls -rlt drb.exp.gz -rw-r--r-- 1 ora10g oinstall 870 Dec 11 07:18 drb.exp.gz
5、对*.gz进行解压 $ gunzip drb.exp.gz $ ls -rtl drb.exp -rw-r--r-- 1 ora10g oinstall 16384 Dec 11 07:18 drb.exp