首页 » ORACLE [C]系列, ORACLE 9i-23c » 升级Oracle 19c经验: TTS 在使用datapump导matadata时EXCLUDE=STATISTICS 不启作用

升级Oracle 19c经验: TTS 在使用datapump导matadata时EXCLUDE=STATISTICS 不启作用

在使用TTS迁移一个8T 的11.2.04到19c PDB时,发现expdp和imdp元数据过程中statistic占用了约1个多小时的时间, 但是我检查了实时步骤中确实有写exclude=statistics,猜测是参数没启作用,不能忍,需要确认下原因。

结果发现这是一个预期行为,因为在TTS metadata时statistics不是exclude的有效值。 这样即使在expdp metadata时或impdp时指定了exclude=statistics,同样在过程中看到statistics环节依旧花费大量的时间。

You can check this by running the following query as SYS:

select object_path, comments from transportable_export_objects where object_path like 'TRANSPORTABLE_EXPORT%STATIS%';

(传输表空间)TTS 时正确的在exclud statistics的语法时:
For tables: EXCLUDE=TABLE_STATISTICS
For Indexes: EXCLUDE=INDEX_STATISTICS
For tables and indexes: EXCLUDE=TABLE_STATISTICS, INDEX_STATISTICS

打赏

,

对不起,这篇文章暂时关闭评论。