DBAsupport.com Forums - Powered by vBulletin
Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Using index

  1. #21
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Originally posted by pando
    well in 8i and 9i without specifying any clause after analyze table x compute statistics generates by default histrohgram of 75 buckets which is usually enough
    According to Oracle having a single level histogram is like having no histogram at all, according to bug 584092, which was closed as not a bug :-)

    So, 1 Histogram = 0 Histograms :-)

    Happy New Year :-)
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  2. #22
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    75 buckets != 1 Histogram

    in Oracle 8 it did generate only one bucket but that behaviour has been changed in 8i and 9i

  3. #23
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Originally posted by pando
    75 buckets != 1 Histogram

    in Oracle 8 it did generate only one bucket but that behaviour has been changed in 8i and 9i
    No, you must specify the FOR_CLAUSE, otherwise only one bucket will be collected. Look at this (9.2):

    SQL> analyze table HIT_RATIO compute statistics;

    Table analyzed.

    SQL> select table_name, column_name, num_buckets from user_tab_col_statistics where rownum = 1;

    TABLE_NAME COLUMN_NAME NUM_BUCKETS
    ------------------------------ -------------------- -----------
    HIT_RATIO SID 1

    SQL> analyze table HIT_RATIO compute statistics for all indexed columns;

    Table analyzed.

    SQL> select table_name, column_name, num_buckets from user_tab_col_statistics where rownum = 1;

    TABLE_NAME COLUMN_NAME NUM_BUCKETS
    ------------------------------ -------------------- -----------
    HIT_RATIO SID 49
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  4. #24
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    aha, right I make a pardon, the default value of SIZE is 75 in 8i and 9i and in 8 it was 1

    !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width