DBMS_STATS.IMPORT_TABLE_STATS Stores Partition Position Instead of Partition Name
Last updated on AUGUST 25, 2017
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 to 188.8.131.52 [Release 12.1]
Information in this document applies to any platform.
- export partition statistics using dbms_stats.export_table_stats for a partition
- drop table and recreate the table with new partitions; afterwords try to import statistics on that specific partition using dbms_stats.import_table_stats
- if the partition in the new table has a new position, no statistics are imported
- statistics table keeps the position of the partition, not the partition name
This behaviour is not present in 184.108.40.206 release.
Upgrade to 12c.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms