A single bucket can now store popularity as well , effectively increasing number of buckets without actually increasing it.
With oracle 12C, oracle merged Frequency and Height balanced histograms into hybrid histograms(Though original one also co-exists for their original purpose).
If we don’t specify AUTO_SAMPLE_SIZE(but use user
defined sampling) as estimate, Hybrid histograms will not be created.If users specify their own percentage, then the database creates frequency or height-balanced histograms.
we can also set hybrid histgrams of by changing preferences.
BEGIN
dbms_stats.set_global_prefs(pname => 'ENABLE_HYBRID_HISTOGRAMS', pvalue => 0);
dbms_stats.set_global_prefs(pname => 'ENABLE_TOP_FREQ_HISTOGRAMS', pvalue => 0);
END;
No comments:
Post a Comment