使用expdp导出时评估所需存储容量大小
我們?cè)谑褂胑xpdp進(jìn)行數(shù)據(jù)導(dǎo)出時(shí),可以事先評(píng)估需要存儲(chǔ)大小容量(bytes),Oracle可以通過(guò)兩種方式進(jìn)行容量估算:
1)、通過(guò)數(shù)據(jù)塊數(shù)量
2)、通過(guò)統(tǒng)計(jì)信息中記錄的內(nèi)容估算
具體是通過(guò)制定參數(shù)estimate_only和estimate來(lái)評(píng)估導(dǎo)出的性能
參數(shù)estimate_only=y|n 指定是否僅作評(píng)估不會(huì)導(dǎo)出數(shù)據(jù)
參數(shù)estimate=statistics|blocks參數(shù)來(lái)測(cè)試兩者的差異。
設(shè)置為estimate=bloks,Oracle會(huì)按照目標(biāo)對(duì)象所占用的數(shù)據(jù)塊個(gè)數(shù)乘以數(shù)據(jù)塊尺寸估算對(duì)象占用的空間,
設(shè)置為estimate=statistics,Oracle根據(jù)最近統(tǒng)計(jì)值估算對(duì)象占用空間
限制:當(dāng)數(shù)據(jù)庫(kù)包含壓縮表時(shí),estimate=blocks得出的結(jié)果會(huì)不準(zhǔn)確,此時(shí)建議使用estimate=statistics
示例如下:
C:UsersAdministrator>expdp system/oracle schemas=scott estimate_only=y estimate=statistics
Export: Release 11.2.0.1.0 - Production on 星期三 11月 21 09:54:11 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
連接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
啟動(dòng) "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** schemas=scott estimate_on
ly=y estimate=statistics
正在使用 STATISTICS 方法進(jìn)行估計(jì)...
處理對(duì)象類型 SCHEMA_EXPORT/TABLE/TABLE_DATA
. 預(yù)計(jì)為 "SCOTT"."EMP" 7.683 KB
. 預(yù)計(jì)為 "SCOTT"."DEPT" 5.808 KB
. 預(yù)計(jì)為 "SCOTT"."SALGRADE" 5.808 KB
. 預(yù)計(jì)為 "SCOTT"."BONUS" 0 KB
使用 STATISTICS 方法的總估計(jì): 19.30 KB
作業(yè) "SYSTEM"."SYS_EXPORT_SCHEMA_01" 已于 09:54:36 成功完成
總結(jié)
以上是生活随笔為你收集整理的使用expdp导出时评估所需存储容量大小的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: PL/SQL Developer启动时报
- 下一篇: 下载离线插件包 谷歌浏览器的方法