DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Delete histograms

  1. #1
    Join Date
    Jun 2007
    Location
    Milwaukee,WI
    Posts
    27

    Thumbs up Delete histograms

    I've deleted histogram from table using below command.

    exec dbms_stats.delete_column_stats(ownname=>'XXX', tabname=>'YYY', colname=> 'ZZZ', col_stat_type=>'HISTOGRAM')

    When i execute below SQL it returns rows, but ENDPOINT_NUMBER=0.

    select * from dba_histograms where owner='XXX' and table_name='YYY' and column_name='ZZZ';

    Does this mean histograms are dropped for this column?
    Last edited by akas_chauhan; 06-23-2013 at 03:50 PM. Reason: Spelling mistake

    Akash
    OCP 8i


  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by akas_chauhan View Post
    I've deleted histogram from table using below command.

    exec dbms_stats.delete_column_stats(ownname=>'XXX', tabname=>'YYY', colname=> 'ZZZ', col_stat_type=>'HISTOGRAM')

    When i execute below SQL it returns rows, but ENDPOINT_NUMBER=0.

    select * from dba_histograms where owner='XXX' and table_name='YYY' and column_name='ZZZ';

    Does this mean histograms are dropped for this column?
    Since ENDPOINT_NUMBER represents the cumulative number of rows in the target table/column then having no other values than zero makes me think that is the way Oracle is telling there are no histograms for the particular table/column.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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