Remove Histograms & Exclude Tables from getting them

As an Addendum to my posting Optimizer Stats: Treat some tables different than AutoTask does , I’d like to refer to this interesting and helpful article from the Oracle Optimizer Dev Group.

This article describes (for 10g & 11g) how to remove existing histograms and exclude tables from getting histograms in the future, when the Automatic Optimizer Stats Gathering takes place. A particular case why that is necessary would be if a skewed varchar2 column has more than 32 characters – but the first 32 characters are identical. Then the histogram will strongly mislead the Optimizer regarding the cardinality of that column.


  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: