www.oracle-wiki.net SQL Library
-- -- Check for Histograms on User Objects -- -- Count of 0 = No Histograms -- Count of 2 = High and Low Endpoint Values -- Count gt 2 = Histogram Buckets -- SET PAUSE ON SET PAUSE 'Press return to Continue' SET LINESIZE 300 SET PAGESIZE 60 COL owner FOR A30 COL table_name FOR A30 COL column_name FOR A30 SELECT owner table_name, column_name, count(*) FROM dba_tab_histograms WHERE owner = upper('&Enter_Object_Owner') GROUP BY owner,table_name, column_name ORDER BY count(*) ASC /