Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How long are statistics good for

Re: How long are statistics good for

From: Anand Prakash <AnandPrakash_at_firsthealth.com>
Date: Tue, 23 Oct 2001 14:57:54 -0700
Message-ID: <F001.003B2864.20011023144518@fatcity.com>

Which version of Oracle are you using. In 8i you can set 'monitoring on' for the tables and use dbms_stats to analyze stale. (Though, I am getting error while using dbms_stats for the partitioned tables. So I have made a home made version to analyze stale). As per my calculations, package dbms_stats considers statistics stale if all DMLs affect more than 10% of number of rows.
 
Anand Prakash
>>> dbrowett_at_city.coquitlam.bc.ca 10/23/01 11:00AM
>>>We have a data-warehouse that is a combination of Snapshots and
table-buildsbased on the snapshots.The table builds run at 4:30 am, scripts are setup to start the snapshots at7:00am and end at 9:00pm.  At 6:30 am a script performs an analyze on ALL (except sys andsystem) tables inthe database.If the snapshots have been running all day, should I run an analyze before Ido the table builds?as opposed to after ?At what point do the statistics on a table become no good ? when a new rowis added

?ThanksDarren--------------------------------------------------------------------------------------------------------------------------Darren 
Browett P.Eng            
            This messagewas
transmittedSystems Analyst - Information Systems                 using 100%recycled
electrons City of Coquitlam P:(604)927 - 3614 E:dbrowett_at_city.coquitlam.bc.ca
Received on Tue Oct 23 2001 - 16:57:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US