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: Does SQL*Plus' SET AUTOT TRACE STAT show correct # of gets ?

Re: Does SQL*Plus' SET AUTOT TRACE STAT show correct # of gets ?

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 2 Dec 2005 07:16:03 -0800
Message-ID: <1133536563.244197.95060@g49g2000cwa.googlegroups.com>


Update the statistics and look at the dba_tables.blocks value. This is how many blocks exist to the high water mark. It is possible your table has empty blocks below the HWM due to past deletes. A full table scan would read these blocks on its way to the HWM while the rowid check would not have identified these blocks since they contain no rows.

Autotrace has also been known to produce incorrect statistics and incorrect plans. That is neither is what actually occurred. Tom Kyte has posted on this subject and may have some information at asktom.oracle.com. But in your case I do not think bad statistics or plan is likely.

HTH -- Mark D Powell -- Received on Fri Dec 02 2005 - 09:16:03 CST

Original text of this message

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