How To Quickly Add/Remove Column Statistics (Histograms) For A Column
(Doc ID 390249.1)
Last updated on OCTOBER 30, 2019
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
PeopleSoft Enterprise PT PeopleTools - Version 8.54 to 8.54 [Release 8.4]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
In some situations it is necessary to quickly add or remove histograms from a particular column (also known as column statistics.)
This article shows how to accomplish this with one command.
The commands given in this article will not affect column statistics currently gathered for other columns, they will only touch the specified column.
Column statistics can be:
- so called minimal consisting of just 1 bucket (2 endpoints) with min/max value information required by the Optimizer
- histograms with between 2 and 254 buckets (3 and 255 endpoints respectively)
- absent with no column information recorded in the data dictionary (not normally recommended)
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