.comment-link {margin-left:.6em;}

Oracle Sponge -- Now Moved To Wordpress

Please use http://oraclesponge.wordpress.com

Monday, May 02, 2005

The Monday Morning Flakey Hypothesis

Today's flakey hypothesis is this:

When you use DBMS_Stats.Gather_System_Stats() (note: no parameters to be passed) then Oracle works out system stats by reading all the table segments in the first system tablespace data file, and it does it in single block reads. Or something like that.

I really have no idea if this is true, but here is the flakey work on which this hypothesis depends.
  1. A 10046 trace reveals that a list of datafiles is retrieved, the first of which is the (single) data file for SYSTEM.
  2. The procedure takes almost exactly 90 seconds.
  3. PerfMon shows 90 seconds of read on the disk drive that SYSTEM is on.
  4. Therefore I deduce that the process read about 270Mb of data.
  5. There are 254 Mb of table segments in SYSTEM
quod erat flakeystrandum

Pretty thin stuff, eh? It makes some sense though. The procedure as executed is recommended for empty databases, so what would you read?

0 Comments:

Post a Comment

<< Home