Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Histograms: They're automatically generated for all columns on

Histograms: They're automatically generated for all columns on

From: <Cherie_Machler_at_gelco.com>
Date: Wed, 16 Aug 2000 08:28:25 -0500
Message-Id: <10591.114718@fatcity.com>


Listers,

Here's an interesting fact about histograms that I was unaware of (and I bet most
of you are unaware of too).

When a table is just plain analyzed, histograms are automatically created with a bucket size of 1 for each column in each table. You can see these buckets/histograms by querying the dba_tab_columns table and the dba_tab_histograms(Oracle 8+) or the dba_histograms (pre-Oracle8) table .

Apparently a single-bucket histogram is the same as having no histogram. There is basically no effect on the explain plan when you have a single-bucket histogram because all of the possible values for the histogram are in the same bucket.

I discovered this from an obscure newsgroup post while searching Metalink. Received on Wed Aug 16 2000 - 08:28:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US