From oracle-l-bounce@freelists.org Mon Jul 25 20:08:15 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j6Q18Fhd020354 for ; Mon, 25 Jul 2005 20:08:15 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j6Q18AIP020341 for ; Mon, 25 Jul 2005 20:08:10 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3E4E61D7668; Mon, 25 Jul 2005 20:08:07 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15672-02; Mon, 25 Jul 2005 20:08:07 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B99B51D77CB; Mon, 25 Jul 2005 20:08:06 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EomwbvO6S9gGtqzhafX/ycdhBTWIdXnyB0Ju9ajwIMUvr2fjQz9fGBm/vkImUr1JehXPxpxMhFWYPvF3rnEmXdfSfjNtdeuNW28QDNCKgbh4QcxGBNPQi1Ybijqx+YCvFUnvFItR/5FBTfeJQMSx2tnwkCqs1q3K45GME0nXMJQ= Message-ID: <5e304862050725180658a52aea@mail.gmail.com> Date: Tue, 26 Jul 2005 09:06:17 +0800 From: Connor McDonald To: Oracle-L@freelists.org Subject: Re: Estimate versus Compute In-Reply-To: <04DDF147ED3A0D42B48A48A18D574C4502361332@NT15.oneneck.corp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis Content-Disposition: inline References: <04DDF147ED3A0D42B48A48A18D574C4502361332@NT15.oneneck.corp> X-archive-position: 22889 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: mcdonald.connor@gmail.com Precedence: normal Reply-To: mcdonald.connor@gmail.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-mailscan-MailScanner-Information: Please contact the ISP for more information X-mailscan-MailScanner: Found to be clean X-MailScanner-From: oracle-l-bounce@freelists.org X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 I'm not a great fan of auto-sample-size because a) it does more work b) last time I checked, it can be fooled http://www.oracledba.co.uk/tips/9i_dbms_stats.htm I'm generally more inclined just to take segment size to determine an dbms_stats estimate size - it naturally doesn't cover segments that have grown and shrunk over time, but its not as if its being run all the time anyway hth connor On 7/26/05, Allen, Brandon wrote: > The database with the results I mentioned earlier is version 8.0.6, so I'm using dbms_utility (dbms_stats didn't exist yet). > > I switched from this: > > EXECUTE dbms_utility.analyze_schema('BAAN','COMPUTE'); > > To this: > > EXECUTE dbms_utility.analyze_schema(schema=>'BAAN',method=>'ESTIMATE',estimate_percent=>25,method_opt=>'FOR TABLE'); > EXECUTE dbms_utility.analyze_schema(schema=>'BAAN',method=>'COMPUTE',method_opt=>'FOR ALL INDEXES'); > -- Connor McDonald =========================== email: connor_mcdonald@yahoo.com web: http://www.oracledba.co.uk "Semper in excremento, sole profundum qui variat" -- http://www.freelists.org/webpage/oracle-l