This is a script that I use to check for any tables or indexes with stats
older than n (usually a week so 7 days)
## OLD STATS ##
## Check for tables and indexes analzyed earlier than today minus n days ##
select owner OWNER,
table_name OBJECT,
last_analyzed
from dba_all_tables
where last_analyzed < (sysdate-1)
union all
select owner OWNER,
index_name OBJECT,
last_analyzed
from dba_indexes
where last_analyzed < (sysdate-1)
order by OWNER
/
-----Original Message-----
Alan
Sent: Monday, February 12, 2001 03:51
To: Multiple recipients of list ORACLE-L
HP-UX 10.20 running 7.3.4.5.1.
I am trying to find out which indexes in one dbinstance
are missing stats by comparing the one dbinstance
to another and getting the difference.
Any help would greatly be appreciated!
Thanks in Advance.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Browning, Alan
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mark Leith
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).