1)查看命令行幫助信息
ora10g@secDB /expdp$ expdp help=y
……
ESTIMATE  Calculate job estimates where the valid keywords are:
          (BLOCKS) and STATISTICS.
……

2)Oracle官方文檔中關于ESTIMATE參數的描述
參考鏈接:http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#sthref105
引用內容如下:
ESTIMATE

Default: BLOCKS

Purpose

Specifies the method that
Export will use to estimate how
much disk space each table in the export job will consume (in bytes).
The estimate is printed in the log file and displayed on the client\\\’s
standard output device. The estimate is for table row data only; it does
not include metadata.

Syntax and Description

ESTIMATE={BLOCKS | STATISTICS}

BLOCKS – The estimate is calculated by multiplying the
number of database blocks used by the source objects, times the
appropriate block sizes.

STATISTICS – The estimate is calculated using statistics
for each table. For this method to be as accurate as possible, all
tables should have been analyzed recently.

Restrictions

If the Data Pump export job involves compressed tables, the default
size estimation given for the compressed table is inaccurate when ESTIMATE=BLOCKS
is used. This is because the size estimate does not reflect that the
data was stored in a compressed form. To get a more accurate size
estimate for compressed tables, use ESTIMATE=STATISTICS.

Example

The following example shows a use of the ESTIMATE
parameter in which the estimate is calculated using statistics for the employees
table:

> expdp hr/hr TABLES=employees ESTIMATE=STATISTICS DIRECTORY=dpump_dir1
DUMPFILE=estimate_stat.dmp

2.顯式指定ESTIMATE參數為BLOCKS
ora10g@secDB /expdp$ expdp sec/sec directory=expdp_dir dumpfile=sec.dmp ESTIMATE=BLOCKS

Export: Release 10.2.0.3.0 – 64bit Production on Saturday, 10 April, 2010 6:23:26

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 – 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Starting SEC.SYS_EXPORT_SCHEMA_01:  sec/******** directory=expdp_dir dumpfile=sec.dmp ESTIMATE=BLOCKS
Estimate in progress using BLOCKS method…
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
.  estimated SEC.TEST_SEC                                2 MB
.  estimated SEC.TEST_SEC1                               2 MB
.  estimated SEC.TEST_SEC2                               2 MB
Total estimation using BLOCKS method: 6 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
. . exported SEC.TEST_SEC                            1.018 MB   11716 rows
. . exported SEC.TEST_SEC1                           1.018 MB   11717 rows
. . exported SEC.TEST_SEC2                           1.018 MB   11718 rows
Master table SEC.SYS_EXPORT_SCHEMA_01 successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_SCHEMA_01 is:
  /expdp/sec.dmp
Job SEC.SYS_EXPORT_SCHEMA_01 successfully completed at 06:23:37

此時預估單位是按照數據庫塊進行統計的,相比最終導出的大小來說不是很準確,不過有一定的參考意義。

3.指定ESTIMATE參數為STATISTICS
ora10g@secDB /expdp$ expdp sec/sec directory=expdp_dir dumpfile=sec.dmp ESTIMATE=STATISTICS

Export: Release 10.2.0.3.0 – 64bit Production on Saturday, 10 April, 2010 6:22:02

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 – 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Starting SEC.SYS_EXPORT_SCHEMA_01:  sec/******** directory=expdp_dir dumpfile=sec.dmp ESTIMATE=STATISTICS
Estimate in progress using STATISTICS method…
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
.  estimated SEC.TEST_SEC                            9.558 KB
.  estimated SEC.TEST_SEC1                           9.558 KB
.  estimated SEC.TEST_SEC2                           9.558 KB
Total estimation using STATISTICS method: 28.67 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
. . exported SEC.TEST_SEC                            1.018 MB   11716 rows
. . exported SEC.TEST_SEC1                           1.018 MB   11717 rows
. . exported SEC.TEST_SEC2                           1.018 MB   11718 rows
Master table SEC.SYS_EXPORT_SCHEMA_01 successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_SCHEMA_01 is:
  /expdp/sec.dmp
Job SEC.SYS_EXPORT_SCHEMA_01 successfully completed at 06:22:14

此時的統計結果比較離譜,是何原因?
真實的原因是在使用ESTIMATE=STATISTICS參數預估時,數據來源是表的分析數據,如果表未曾分析過或分析數據不準確就會導致此處的數據失真。

4.在數據庫中對sec用戶做一下分析,然后再完成一次數據導出
1)對sec用戶進行分析
sys@ora10g> exec dbms_stats.gather_schema_stats(OWNNAME=>\\\’SEC\\\’,ESTIMATE_PERCENT=>10,DEGREE=>4,cascade=>true);

PL/SQL procedure successfully completed.

2)再次導出sec用戶下的數據
ora10g@secDB /expdp$ expdp sec/sec directory=expdp_dir dumpfile=sec.dmp ESTIMATE=STATISTICS

Export: Release 10.2.0.3.0 – 64bit Production on Saturday, 10 April, 2010 6:30:20

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 – 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Starting SEC.SYS_EXPORT_SCHEMA_01:  sec/******** directory=expdp_dir dumpfile=sec.dmp ESTIMATE=STATISTICS
Estimate in progress using STATISTICS method…
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
.  estimated SEC.TEST_SEC2                           993.6 KB
.  estimated SEC.TEST_SEC1                           993.6 KB
.  estimated SEC.TEST_SEC                            993.5 KB
Total estimation using STATISTICS method: 2.910 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported SEC.TEST_SEC2                           1.018 MB   11718 rows
. . exported SEC.TEST_SEC1                           1.018 MB   11717 rows
. . exported SEC.TEST_SEC                            1.018 MB   11716 rows
Master table SEC.SYS_EXPORT_SCHEMA_01 successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_SCHEMA_01 is:
  /expdp/sec.dmp
Job SEC.SYS_EXPORT_SCHEMA_01 successfully completed at 06:30:35

OK,此時的預估數據與最后的生成數據大小較為接近。

5.不指定ESTIMATE參數
ora10g@secDB /expdp$ expdp sec/sec directory=expdp_dir dumpfile=sec.dmp

Export: Release 10.2.0.3.0 – 64bit Production on Saturday, 10 April, 2010 7:26:54

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 – 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
Starting SEC.SYS_EXPORT_SCHEMA_01:  sec/******** directory=expdp_dir dumpfile=sec.dmp
Estimate in progress using BLOCKS method…
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 6 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported SEC.TEST_SEC                            1.018 MB   11716 rows
. . exported SEC.TEST_SEC1                           1.018 MB   11717 rows
. . exported SEC.TEST_SEC2                           1.018 MB   11718 rows
Master table SEC.SYS_EXPORT_SCHEMA_01 successfully loaded/unloaded
******************************************************************************
Dump file set for SEC.SYS_EXPORT_SCHEMA_01 is:
  /expdp/sec.dmp
Job SEC.SYS_EXPORT_SCHEMA_01 successfully completed at 07:27:05

在不指定ESTIMATE參數時,默認會使用BLOCKS進行估算,不過,具體的數據庫對象進估算被省略,僅有以下信息提示:
Total estimation using BLOCKS method: 6 MB

6.小結
雖然ESTIMATE參數提供給我們一種預估大小的功能,不過在使用EXPDP進行數據備份時,還是盡量不要使用,畢竟所有額外的操作都是有代價的。

Good luck.

secooler
10.04.10

— The End —

更多關于云服務器域名注冊,虛擬主機的問題,請訪問三五互聯官網:m.shinetop.cn

贊(0)
聲明:本網站發布的內容(圖片、視頻和文字)以原創、轉載和分享網絡內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。郵箱:3140448839@qq.com。本站原創內容未經允許不得轉載,或轉載時需注明出處:三五互聯知識庫 » 【EXPDP】使用EXPDP備份數據時預估大小——ESTIMATE參數

登錄

找回密碼

注冊

主站蜘蛛池模板: 青青青久热国产精品视频| 日本一道本高清一区二区| 孕妇怀孕高潮潮喷视频孕妇| 成人免费av色资源日日| 人妻少妇精品视频专区| 国产精品一区二区三区激情| 中文字幕在线永久免费视频| 国产精品久久一区二区三区| 欧美一本大道香蕉综合视频| 国产成人亚洲欧美二区综合| 狠狠亚洲色一日本高清色| 国产精品中文第一字幕| 久久人与动人物a级毛片 | 九九久久自然熟的香蕉图片| 久久免费偷拍视频有没有| 国产精品入口麻豆| 日韩av熟女人妻一区二| 灵寿县| 国产不卡一区二区四区| 国产精品中文字幕观看| 大香伊蕉在人线国产最新2005| 四虎永久在线精品免费看| 国产一卡2卡3卡4卡网站精品| 日本一区二区三本视频在线观看| 中文字幕日韩精品人妻| 亚洲精品国产精品不乱码| 夜夜添无码试看一区二区三区 | 日本韩国一区二区精品| 中文字幕无码免费不卡视频 | 国产精品福利自产拍在线观看 | 欧美 日韩 国产 成人 在线观看| 男女性高爱潮免费网站| 怡春院欧美一区二区三区免费| 伊在人间香蕉最新视频| 色就色中文字幕在线视频| 久久亚洲av成人无码软件| 性动态图无遮挡试看30秒| 精品在免费线中文字幕久久| 少妇高潮毛片免费看| 国产成人免费午夜在线观看| 亚洲成熟女人av在线观看|