RE: 10g - System Statistics - Quick Q

Joe, that refers to table stats rather than system stats (CPU speed etc)
Chris, I thought that dbms_stats.get_stats_history_availability held the date 
when system stats were gathered but a quick test proves not

SQL>SELECT dbms_stats.get_stats_history_availability FROM dual;

GET_STATS_HISTORY_AVAILABILITY
---------------------------------------------------------------------------
24-DEC-08 00.28.08.278050000 +00:00

SQL>execute dbms_stats.gather_system_stats('START');

PL/SQL procedure successfully completed.

SQL>execute dbms_stats.gather_system_stats('STOP');

PL/SQL procedure successfully completed.

SQL>SELECT dbms_stats.get_stats_history_availability FROM dual;

GET_STATS_HISTORY_AVAILABILITY
---------------------------------------------------------------------------
24-DEC-08 00.28.08.278050000 +00:00

In fact I now have 2 questions to answer, yours and what happened on 24th Dec. 
I assume from the time that is the standard gather_optimiser_stats job that has 
not run since then, more investigation methinks

John

www.jhdba.wordpress.com

Not sure if this will help but I believe there is a last_analyzed column
in dba_tables that might be of use.  Can't check right now but I think
that's the name.

Hth,
-joe

 [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Newman, Christopher
Sent: Friday, January 23, 2009 2:55 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: 10g - System Statistics - Quick Q

Anyone know how to determine when system statistics were gathered?  IE,
the last time?




______________________________________________________________________
Wm Morrison Supermarkets Plc is registered in England with number 358949. The 
registered office of the company is situated at Gain Lane, Bradford, West 
Yorkshire BD3 7DL. This email and any attachments are intended for the 
addressee(s) only and may be confidential. 

If you are not the intended recipient, please inform the sender by replying to 
the email that you have received in error and then destroy the email. 
If you are not the intended recipient, you must not use, disclose, copy or rely 
on the email or its attachments in any way. 

Wm Morrison Supermarkets PLC accepts no liability or responsibility for 
anything said in the email or its attachments and gives no warranty as to 
accuracy. It is the policy of Wm Morrison Supermarkets PLC not to enter into 
any contractual or other obligations by email. 

Although we have taken steps to ensure the email and its attachments are 
virus-free, we cannot guarantee this or accept any responsibility, 
and it is the responsibility of recipients to carry out their own virus checks. 
______________________________________________________________________
--
http://www.freelists.org/webpage/oracle-l


Other related posts: