The obvious way to delete histograms is to re-analyze the
tables to not include histograms. We begin by deleting
table statistics for the test.
Maria Colgan offers methods for Oracle 10g and Oracle 11g
for deleting histograms from tables
In addition, with this syntax we can delete all
Next, we have to deal with the automatic statistics
collecting job, to stop all automatic statistics collections
of histograms until out testing is completed.
Now we can run a command to analyze all tables, but
without histograms, effectively deleting the histograms from
This command will allow Oracle to automatically gather
histograms on all of the other columns in the table but not
on the PROD_ID column. Note you
need to set the force parameter to true to
override the locked statistics.
method_opt=>'FOR ALL COLUMNS SIZE AUTO FOR COLUMNS SIZE 1
force => true);
Starting in 11g and beyond there is a new method for
deleting histograms for a table:
This will delete
the histogram for a column while still leaving behind the
base column statistics:
Oracle Training from Don Burleson
The best on site
training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!
Burleson is the American Team
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
and include the URL for the page.
Copyright © 1996 - 2017
All rights reserved by
is the registered trademark of Oracle Corporation.
Remote Emergency Support provided by