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 04:50 PM.
Reason: Spelling mistake
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.
Originally Posted by akas_chauhan
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.
Click Here to Expand Forum to Full Width