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.
Originally Posted by akas_chauhan