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

Home -> Community -> Usenet -> c.d.o.server -> Re: Warning: Built in 10g Stats gather is broken

Re: Warning: Built in 10g Stats gather is broken

From: Brian Peasland <dba_at_nospam.peasland.net>
Date: Thu, 12 Oct 2006 17:02:00 GMT
Message-ID: <J718nI.20F@igsrsparc2.er.usgs.gov>


mccmx_at_hotmail.com wrote:
> It looks as though Oracle's built in Stats gather process doesn't work.
>
> The table change information that should be written to
> USER_TAB_MODIFICATIONS isn't being updated correctly. So when the
> nightly job comes along to analyze the tables, it will miss some tables
> because they don't appear in this view. Beware.
>
> Check out Bug 5557078 on Metalink.
>
> It has been filed against 10.1 but we are having the same problem on
> 10.2.
>
> How the hell did this test this functionality....!
>
> Matt
>

This is precisely why I have a scheduled job to check the stats to see how far off target they are. If they are off target, I recalculate stats. For me, I compare the number of BLOCKS from DBA_TABLES to the number of BLOCKS from DBA_SEGMENTS. I realize this does not address all issues where the stats could have diverged too far from reality, but it works in my system. To see the script I use, visit my web site (URL below). You will find "fix_stats.sql" in the Scripts section.

HTH,
Brian

-- 
===================================================================

Brian Peasland
dba_at_nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Received on Thu Oct 12 2006 - 12:02:00 CDT

Original text of this message

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