Handling statistics for a column with ever increasing or decreasing values...
(Doc ID 877645.1)
Last updated on FEBRUARY 20, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 to 22.214.171.124 [Release 10.1 to 11.1]
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Information in this document applies to any platform.
Bad sql plans are being intermittently chosen, depending on the bind variables passed or peeked. When a bad plan is traced, it does appear to be lower cost in the 10053. The culprit is a column in the where clause with a bind that contains a value that is outside of the known range of values in the statistics.
Data is inserted frequently outside of the max/min value of the statistics and that same new data is frequently queried before regathering of statistics on the table.
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