Effective Use of Histograms

Essentially, a histogram is information about the values in a selected column. Histograms are used in Oracle to describe the skew in the distribution of data in columns that hold non-unique, repeating values. In other words, when a few distinct values in that column form a sizeable portion of the row count, and this count is not uniformly distributed, then histograms can describe this distribution mathematically. Thus, when histograms are created on key columns like those that contain a set of repeating values, such as the state ID in a national cell phone company's customer table, they can quantify the spread of distinct values. Histograms exert a great influence on the Optimizer and are essentially “buckets” that ...

Get Oracle® Database 10g Insider Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.