RE: drop a histogram on a single column
Date: Mon, 15 Dec 2008 10:56:23 -0700
Message-ID: <64BAF54438380142A0BF94A23224A31E10A30BAC00@ONEWS06.oneneck.corp>
I believe this will work:
exec dbms_stats.set_column_stats(user,'table_name',colname=>'column_name',distcnt=><num_distinct>);
Just find out what the current num_distinct is, then run the above procedure to manually set it to the same value and I believe this will have the side-effect of removing the histogram from that column while keeping all other stats intact.
I'm not sure if this is a documented side-effect so you might want to test first and use at your own risk.
Regards,
Brandon
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of kyle Hailey
Anyone know a way to drop a histogram on single column?
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.
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Dec 15 2008 - 11:56:23 CST