Display items that need to be analyzed

How to check the objects that need to be analyzed?

SELECT 'TABLE' object_type, owner, object_name, table_name, last_analyzed, stattype_locked, stale_stats

Of all_tab_statistics

WHERE (last_analyzed IS NULL or stale_stats = "YES") and stattype_locked IS NULL

and owner NOT IN ('ANONYMOUS', 'CTXSYS', 'GÉNÉRAL', 'EXFSYS', "LBACSYS", "MDSYS", "MGMT_VIEW", 'OLAPSYS', 'OWBSYS', 'ORDPLUGINS', "ORDSYS", "OUTLN", "SI_INFORMTN_SCHEMA", "SYS", "SYSMAN", 'SYSTEM', 'TSMSYS', 'WK_TEST', "WKSYS", 'WKPROXY', 'WMSYS', "XDB")

AND the owner NOT LIKE '% of FLOW.

UNION ALL

SELECT 'INDEX' owner, index_name object_name, object_type, last_analyzed, stattype_locked, stale_stats

Of all_ind_statistics

WHERE (last_analyzed IS NULL or stale_stats = "YES") and stattype_locked IS NULL

AND owner NOT IN ('ANONYMOUS', 'CTXSYS', 'GÉNÉRAL', 'EXFSYS', "LBACSYS", "MDSYS", "MGMT_VIEW", 'OLAPSYS', 'OWBSYS', 'ORDPLUGINS', "ORDSYS", "OUTLN", "SI_INFORMTN_SCHEMA", "SYS", "SYSMAN", 'SYSTEM', 'TSMSYS', 'WK_TEST', "WKSYS", 'WKPROXY', 'WMSYS', "XDB")

AND the owner NOT LIKE '% of FLOW.

ORDER BY desc of object_type, object_name, owner

Hope this helps

Tags: Database

Similar Questions

Maybe you are looking for

  • HP Firebird 802 RTC CMOS battery

    I was wondering my CMOS/RTC battery is DEAD! It seems that nobody is part # 505150-001. Please someone help me with a job change battery CMOS/RTC. I know it's a marvel of packaged shrink-wrap type CR2032. What will work the OTHER HP computer CMOS/RTC

  • Communication between PCI6251, Labview and Matlab

    Hello I work with a Council of PCI6251, driven by an executable labview. I get measurements from several sensors (pressure, temperature, etc.) which are read by the executable of labview. I would like to know if it is possible to send these Matlab me

  • How to hide a control and change a background image at the same TIME

    Hello I made a slideshow on LabView VI, who also monitors data in real time to a data logger. The program works like this: -. Start/Page 1:-bottom pane displays a nice screenshot. A set of indicators displays the data in real time. Switches to Page 2

  • rotate the table

    Hello! We have a 1Darray with values and we want to rotate/shift values (3 positions). But she moves whenever we want to read the table. For example: we have [1 2 3 4 5 6 7 8 9 10] and we want for the quarter 3 positions as [10 9 8 1 2 3 4 5 6 7] we

  • Change the shortcut tab of the controls

    Is there a way to change the shortcut tab in the Enter key, instead of using the Tab key? And it is possible to set the tab order of controls? Thank you Chris