Re: Height Balanced Histogram on a unique varchar2 column

  • From: Stefan Koehler <contact@xxxxxxxx>
  • To: ORACLE-L <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 31 Oct 2014 12:42:04 +0100 (CET)

Hi Mohamed,
in addition to Martin's reply.

Please also consider daft data types - especially in case of VARCHAR2, which 
maybe used wrongly for date values for example. The CBO calculations can
be wrong very easily in combination with range based predicates.

Jonathan Lewis described this in his book "Cost-Based Oracle Fundamentals" very 
carefully on page 175 ("Data Problems Revisited").

Best Regards
Stefan Koehler

Oracle performance consultant and researcher
Homepage: http://www.soocs.de
Twitter: @OracleSK


> Mohamed Houri <mohamed.houri@xxxxxxxxx> hat am 31. Oktober 2014 um 12:06 
> geschrieben:
>
>  Dears,
>  What benefit  the CBO can gain from a unique varchar2 column having height 
> balanced histogram (11.2.0.3.0) ?

>  Thanks
>  --
>  Houri Mohamed
>  Oracle DBA-Developer-Performance & Tuning
> 
>  Member of Oraworld-team <http://www.oraworld-team.com/>
>  Visit My         - Blog <http://www.hourim.wordpress.com/>
>  Let's Connect -  <http://fr.linkedin.com/pub/mohamed-houri/11/329/857/> 
> Linkedin Profile <http://fr.linkedin.com/pub/mohamed-houri/11/329/857/>
> 
>  My Twitter <https://twitter.com/MohamedHouri>       - MohamedHouri 
> <https://twitter.com/MohamedHouri>
> 
> 
> 

--
//www.freelists.org/webpage/oracle-l


Other related posts: