成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Oracle11g版本EXPDP的COMPRESSION參數(shù)壓縮比堪比“gzip-9”

這個(gè)壓縮比例可以和操作系統(tǒng)“gzip -9”相媲美,某些特例下有可能比gzip還要高效。體驗(yàn)之,供參考。

創(chuàng)新互聯(lián)專注于梓潼網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供梓潼營銷型網(wǎng)站建設(shè),梓潼網(wǎng)站制作、梓潼網(wǎng)頁設(shè)計(jì)、梓潼網(wǎng)站官網(wǎng)定制、微信小程序定制開發(fā)服務(wù),打造梓潼網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供梓潼網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。

1.Oracle 11g中expdp幫助頁中關(guān)于COMPRESSION參數(shù)的描述
secooler@secDB /home/oracle$ expdp -help
……
COMPRESSION
Reduce the size of a dump file.
Valid keyword values are: ALL, DATA_ONLY, [METADATA_ONLY] and NONE.
……

可見,11g中的COMPRESSION參數(shù)提供四個(gè)選項(xiàng),分別是ALL、DATA_ONLY、METADATA_ONLY和NONE,非常的豐富,稍后我們將使用ALL參數(shù)進(jìn)行操作。

2.Oracle 10g中關(guān)于COMPRESSION參數(shù)的描述如下
Keyword              Description (Default)
---------------------------------------------------------------------
……
COMPRESSION          Reduce size of dumpfile contents where valid
                      keyword values are: (METADATA_ONLY) and NONE.
……
10g中的COMPRESSION參數(shù)只提供METADATA_ONLY和NONE兩個(gè)選項(xiàng),基本上沒有提供壓縮功能。

3.使用11g EXPDP工具的四個(gè)壓縮參數(shù)分別生成四個(gè)dump文件
1)使用ALL參數(shù)
secooler@secDB /expdp$ expdp sec/sec dumpfile=sec_ALL.dmp logfile=sec_ALL.log tables=t directory=dump_dir compression=ALL

Export: Release 11.2.0.1.0 - Production on Sat Mar 20 22:48:52 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
Starting "SEC"."SYS_EXPORT_TABLE_01":  sec/******** dumpfile=sec_ALL.dmp logfile=sec_ALL.log tables=t directory=dump_dir compression=ALL
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 136 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SEC"."T"                                  14.26 MB 1155520 rows
Master table "SEC"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_TABLE_01 is:
  /expdp/sec_ALL.dmp
Job "SEC"."SYS_EXPORT_TABLE_01" successfully completed at 22:49:08

2)使用DATA_ONLY參數(shù)
secooler@secDB /expdp$ expdp sec/sec dumpfile=sec_DATA_ONLY.dmp logfile=sec_DATA_ONLY.log tables=t directory=dump_dir compression=DATA_ONLY

Export: Release 11.2.0.1.0 - Production on Sat Mar 20 22:49:32 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
Starting "SEC"."SYS_EXPORT_TABLE_01":  sec/******** dumpfile=sec_DATA_ONLY.dmp logfile=sec_DATA_ONLY.log tables=t directory=dump_dir compression=DATA_ONLY
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 136 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SEC"."T"                                  14.26 MB 1155520 rows
Master table "SEC"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_TABLE_01 is:
  /expdp/sec_DATA_ONLY.dmp
Job "SEC"."SYS_EXPORT_TABLE_01" successfully completed at 22:49:48

3)使用METADATA_ONLY參數(shù)
secooler@secDB /expdp$ expdp sec/sec dumpfile=sec_METADATA_ONLY.dmp logfile=sec_METADATA_ONLY.log tables=t directory=dump_dir compression=METADATA_ONLY

Export: Release 11.2.0.1.0 - Production on Sat Mar 20 22:50:16 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
Starting "SEC"."SYS_EXPORT_TABLE_01":  sec/******** dumpfile=sec_METADATA_ONLY.dmp logfile=sec_METADATA_ONLY.log tables=t directory=dump_dir compression=METADATA_ONLY
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 136 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SEC"."T"                                  111.7 MB 1155520 rows
Master table "SEC"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_TABLE_01 is:
  /expdp/sec_METADATA_ONLY.dmp
Job "SEC"."SYS_EXPORT_TABLE_01" successfully completed at 22:50:27

4)使用NONE參數(shù)
secooler@secDB /expdp$ expdp sec/sec dumpfile=sec_NONE.dmp logfile=sec_NONE.log tables=t directory=dump_dir compression=NONE

Export: Release 11.2.0.1.0 - Production on Sat Mar 20 22:50:43 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
Starting "SEC"."SYS_EXPORT_TABLE_01":  sec/******** dumpfile=sec_NONE.dmp logfile=sec_NONE.log tables=t directory=dump_dir compression=NONE
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 136 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SEC"."T"                                  111.7 MB 1155520 rows
Master table "SEC"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_TABLE_01 is:
  /expdp/sec_NONE.dmp
Job "SEC"."SYS_EXPORT_TABLE_01" successfully completed at 22:50:53

4.比較生成的四個(gè)dump文件大小
secooler@secDB /expdp$ du -sm sec*.dmp
15      sec_ALL.dmp
15      sec_DATA_ONLY.dmp
112    sec_METADATA_ONLY.dmp
112    sec_NONE.dmp
secooler@secDB /expdp$ du -sb sec*.dmp
14987264        sec_ALL.dmp
14987264        sec_DATA_ONLY.dmp
117223424      sec_METADATA_ONLY.dmp
117223424      sec_NONE.dmp

實(shí)驗(yàn)表明,使用ALL參數(shù)和DATA_ONLY參數(shù)生成的備份文件基本一樣大;使用METADATA_ONLY參數(shù)與NONE參數(shù)效果一樣。

使用壓縮與不進(jìn)行壓縮的比率是:15/112約等于1/7!
這才是真正的壓縮。

5.使用“gzip -9”對未壓縮的備份文件進(jìn)行壓縮,做一下比較
secooler@secDB /expdp$ gzip -9 sec_NONE.dmp
secooler@secDB /expdp$ du -sm sec*dmp*
15      sec_ALL.dmp
15      sec_DATA_ONLY.dmp
112    sec_METADATA_ONLY.dmp
15      sec_NONE.dmp.gz
secooler@secDB /expdp$ du -sb sec*dmp*
14987264        sec_ALL.dmp
14987264        sec_DATA_ONLY.dmp
117223424      sec_METADATA_ONLY.dmp
14717055        sec_NONE.dmp.gz

14987264與14717055的區(qū)別,相差甚微,基本相同,“gzip -9”稍勝一點(diǎn)點(diǎn)(也許在您的具體環(huán)境下“gzip -9”會(huì)遜色一點(diǎn)點(diǎn))。

6.小結(jié)
Oracle 11g的EXPDP工具提供了真正意義上的“備份壓縮”,這個(gè)技術(shù)在備份空間不足的情況下非常實(shí)用。
Oracle在改進(jìn)和優(yōu)化中不斷的前進(jìn),慢慢體會(huì)吧。

分享名稱:Oracle11g版本EXPDP的COMPRESSION參數(shù)壓縮比堪比“gzip-9”
瀏覽路徑:http://jinyejixie.com/article48/pocdhp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、全網(wǎng)營銷推廣、App設(shè)計(jì)、虛擬主機(jī)、面包屑導(dǎo)航企業(yè)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)
和田县| 于都县| 朝阳县| 辉县市| 定日县| 昌黎县| 阿克苏市| 建阳市| 东阿县| 都匀市| 泸定县| 三亚市| 内江市| 望奎县| 平凉市| 和平县| 北辰区| 叙永县| 宜兴市| 玛曲县| 铅山县| 西充县| 满城县| 阿拉善左旗| 黄大仙区| 临海市| 华容县| 永宁县| 东台市| 泰顺县| 盐亭县| 游戏| 怀仁县| 通榆县| 繁昌县| 洮南市| 阳城县| 焉耆| 嘉祥县| 青浦区| 屏东县|