重庆思庄oracle技术分享-expdp导数据时评估导出文件大小

使用expdp导出命令时,通常需要评估导出文件的大小来作为空间是否足够的依据,
特别是在做全库导出的场景中。
设置参数estimate_only=y|n 来指定是否仅做评估而不导数据
设置参数estimate=statistic 根据最近统计值估算对象占用空间
测试过程如下:
[oracle@hisdb1:/home/oracle]$ expdp ‘/ as sysdba’ full=y estimate_only=y estimate=statistics

Export: Release 11.2.0.4.0 - Production on Fri Feb 18 16:20:27 2022

Copyright © 1982, 2011, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Starting “SYS”.“SYS_EXPORT_FULL_01”: “/******** AS SYSDBA” full=y estimate_only=y estimate=statistics
Estimate in progress using STATISTICS method…

. estimated “SYSTEM”.“REPCAT R E S O L U T I O N S T A T I S T I C S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _RESOLUTION_STATISTICS" 0 KB . estimated "SYSTEM"."REPCAT RESOLUTIONSTATISTICS"0KB.estimated"SYSTEM"."REPCAT_RESOL_STATS_CONTROL” 0 KB
. estimated “SYSTEM”.“REPCAT R U N T I M E P A R M S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _RUNTIME_PARMS" 0 KB . estimated "SYSTEM"."REPCAT RUNTIMEPARMS"0KB.estimated"SYSTEM"."REPCAT_SITES_NEW” 0 KB
. estimated “SYSTEM”.“REPCAT S I T E O B J E C T S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _SITE_OBJECTS" 0 KB . estimated "SYSTEM"."REPCAT SITEOBJECTS"0KB.estimated"SYSTEM"."REPCAT_SNAPGROUP” 0 KB
. estimated “SYSTEM”.“REPCAT T E M P L A T E O B J E C T S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _TEMPLATE_OBJECTS" 0 KB . estimated "SYSTEM"."REPCAT TEMPLATEOBJECTS"0KB.estimated"SYSTEM"."REPCAT_TEMPLATE_PARMS” 0 KB
. estimated “SYSTEM”.“REPCAT T E M P L A T E R E F G R O U P S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _TEMPLATE_REFGROUPS" 0 KB . estimated "SYSTEM"."REPCAT TEMPLATEREFGROUPS"0KB.estimated"SYSTEM"."REPCAT_TEMPLATE_SITES” 0 KB
. estimated “SYSTEM”.“REPCAT T E M P L A T E T A R G E T S " 0 K B . e s t i m a t e d " S Y S T E M " . " R E P C A T _TEMPLATE_TARGETS" 0 KB . estimated "SYSTEM"."REPCAT TEMPLATETARGETS"0KB.estimated"SYSTEM"."REPCAT_USER_AUTHORIZATIONS” 0 KB
. estimated “SYSTEM”.“REPCAT$_USER_PARM_VALUES” 0 KB
. estimated “SYSTEM”.“SQLPLUS_PRODUCT_PROFILE” 0 KB
Total estimation using STATISTICS method: 29.25 MB
Job “SYS”.“SYS_EXPORT_FULL_01” successfully completed at Fri Feb 18 16:20:42 2022 elapsed 0 00:00:14

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值