溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

EXPDP如何預(yù)估導(dǎo)出空間estimate,estimate_only

發(fā)布時(shí)間:2021-11-12 09:24:04 來(lái)源:億速云 閱讀:229 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫(kù)

這篇文章給大家分享的是有關(guān)EXPDP如何預(yù)估導(dǎo)出空間estimate,estimate_only的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。

ESTIMATE
默認(rèn):blocks
指定計(jì)算每張表使用磁盤空間的方法
ESTIMATE=[BLOCKS | STATISTICS]
1.BLOCKS - 通過(guò)塊數(shù)和塊大小計(jì)算?
2.STATISTICS -每張表的統(tǒng)計(jì)信息計(jì)算

限制
1.如果壓縮了表,那么使用ESTIMATE=BLOCKS計(jì)算的值時(shí)不準(zhǔn)確的,這個(gè)時(shí)候就應(yīng)該使用ESTIMATE=STATISTICS.?
2.在QUERY,REMAP_DATA參數(shù)使用的情況下也不準(zhǔn)確
?[oracle@lzl ~]$ expdp scott/tiger TABLES=emp ESTIMATE=STATISTICS DIRECTORY=lzl_dir DUMPFILE=estimate_stat.dmp
Export: Release 11.2.0.3.0 - Production on Wed Jul 12 23:29:44 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** TABLES=emp ESTIMATE=STATISTICS DIRECTORY=lzl_dir 
Estimate in progress using STATISTICS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
.  estimated "SCOTT"."EMP"                               8.203 KB   -預(yù)估大小
Total estimation using STATISTICS method: 8.203 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SCOTT"."EMP"                               8.562 KB      14 rows   -實(shí)際大小
Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
  /home/oracle/expdat.dmp
Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 23:29:49


ESTIMATE_ONLY
默認(rèn):no
如果 ESTIMATE_ONLY=YES, 只預(yù)估導(dǎo)出占用的空間不會(huì)做實(shí)際的導(dǎo)出工作??捎糜脕?lái)預(yù)估導(dǎo)出空間
限制:
不能與 QUERY參數(shù)一起使用

感謝各位的閱讀!關(guān)于“EXPDP如何預(yù)估導(dǎo)出空間estimate,estimate_only”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI