Partitioned Table Incremental Statistics Gathering Scans Entire Table Instead of Relevant Partitions
(Doc ID 1541543.1)
Last updated on FEBRUARY 12, 2019
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Incremental Stats Gathering performs "FULL TABLE SCAN" instead of only relevant or specified partitions.
As per documentation:
If the INCREMENTAL value for a partition table is set to TRUE, and GRANULARITY set to AUTO, and PUBLISH set to TRUE, and AUTO_SAMPLE_SIZE set to AUTO, Oracle will gather statistics and updates the global table statistics by scanning only those partitions and not the entire table.
But it performs a FULL TABLE SCAN as seen in EXPLAIN PLAN.
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