My Oracle Support Banner

Handling statistics for a column with ever increasing or decreasing values... (Doc ID 877645.1)

Last updated on APRIL 21, 2021

Applies to:

Oracle Database - Enterprise Edition - Version to [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

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