使用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 (c) 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$_RESOLUTION_STATISTICS" 0 KB
expdp导数据时评估导出文件大小
最新推荐文章于 2022-09-21 17:59:04 发布
在Oracle数据库中使用expdp进行数据导出时,可以通过设置estimate_only和estimate参数来预先评估导出文件的大小。这在全库导出等场景中尤其重要,以确保有足够的空间。通过示例展示了如何使用这些参数进行评估,最终结果显示预估大小为29.25 MB。
摘要由CSDN通过智能技术生成