Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to tell if you have stats on a object?
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
index_name OBJECT, last_analyzed
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: abrowning_at_moorman.com 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: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Mon Feb 12 2001 - 10:51:34 CST
(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: mark_at_cool-tools.co.uk 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: ListGuru_at_fatcity.com (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).