Incorrect Estimated Cardinalitiy For Partitions After Copying Statistics From Newer Partition to Older Partition
(Doc ID 2515071.1)
Last updated on NOVEMBER 05, 2019
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
- Incorrect Estimated Cardinality (E-Rows) for Partition(s) even after the statistics are copied at sub-partition level.
- DBMS_XPLAN.DISPLAY_CURSOR output shows the E-Rows as 1 for the partitions for which the statistics are copied from the source partition.
- Table is range-partitioned by date column and further list subpartitioned by CHAR or NUMBER column.
- COPY_TABLE_STATS is used such that the destination partition lies before the source partition as per the date.
- Problem does not happen when COPY_TABLE_STATS is used such that the destination partition comes after the source per the date range.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
Partitioned Table is created as below:-
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