My Oracle Support Banner

Why stale_stats is changed after DBMS_STATS.EXPORT_TABLE_STATS and DBMS_STATS.IMPORT_TABLE_STATS? (Doc ID 2609739.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Goal

Export table statistics by DBMS_STATS.EXPORT_TABLE_STATS and use dbms_stats.import_table_stats to import statistics,
For some table which has stale statistics, the stale_stats column of DBA_TAB_STATISTICS is changed from YES to NO after the export/import.
Why stale_stats is changed after DBMS_STATS.EXPORT_TABLE_STATS and DBMS_STATS.IMPORT_TABLE_STATS?

TESTCASE:



 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.