Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Any quick way to remove histograms?
Use dbms_stats.set_column_stats to set density or distcnt. That will
get rid of the histogram. It may also get rid of the HI and LO
values, though. If that should prove to be the case you can retrieve
the current stats with get_column_stats and the re-store them with
set_column_stats but using only two values for the histogram -
end_point_number 0 and 1 for the lo and hi values.
I usually extract the dbms_stats calls from an rows=no export and use
those creatively.
At 11:21 AM 3/16/2007, Allen, Brandon wrote:
>Is there any faster way to remove histograms other than re-analyzing
>the table? I want to keep the existing table, index & column stats,
>but with only 1 bucket (i.e. no histograms). It seems like there
>should be a way to do this, but I haven't been able to find a way
>other than hacking the dictionary and I'm not about to do
>that. I'm pretty sure there answer is No, but I'm just hoping
>someone might know an ancient Chinese secret (any other nation of
>origin will do too :-) to do the trick.
>
>Thanks,
>Brandon
>
>Privileged/Confidential Information may be contained in this message
>or attachments hereto. Please advise immediately if you or your
>employer do not consent to Internet email for messages of this kind.
>Opinions, conclusions and other information in this message that do
>not relate to the official business of this company shall be
>understood as neither given nor endorsed by it.
Regards
Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Mar 16 2007 - 13:37:55 CDT
![]() |
![]() |