RE: drop a histogram on a single column

  • From: "Allen, Brandon" <Brandon.Allen@xxxxxxxxxxx>
  • To: "kylelf@xxxxxxxxx" <kylelf@xxxxxxxxx>, "Oracle-L@xxxxxxxxxxxxx" <Oracle-L@xxxxxxxxxxxxx>
  • Date: Mon, 15 Dec 2008 10:56:23 -0700

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@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] 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.
--
//www.freelists.org/webpage/oracle-l


Other related posts: