set pagesize 100
select * from (
select t.owner, to_char(t.last_analyzed, 'DD-MON-YYYY') LAST_ANALYZED, count(*) COUNT,
RANK() OVER (PARTITION BY owner ORDER BY count(*) desc) "rank"
from dba_tables t
where owner not in ('SYS','SYSTEM','SYSMAN','OUTLN','CTXSYS','MDSYS','TSMSYS','DMSYS','EXFSYS','DBSNMP','XDB','ORDSYS','WMSYS','ORDPLUGINS','ANONYMOUS','ORACLE_OCM','DIP','XS\$NULL','APEX_PUBLIC_USER','MGMT_VIEW','SMTYPES','ORDDATA','SPATIAL_WFS_ADMIN_USR','MDDATA','SI_INFORMTN_SCHEMA','DATAADMIN','APEX_030200','OWBSYS_AUDIT','OLAPSYS','SPATIAL_CSW_ADMIN_USR','OWBSYS','APPQOSSYS','AVAIL','FLOWS_FILES')
group by t.owner, to_char(t.last_analyzed, 'DD-MON-YYYY')
order by t.owner, COUNT desc, LAST_ANALYZED ) where "rank" = 1;
Wednesday, 5 June 2013
Last Analyzed - clean format
Last Analyzed
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment