RE: dbms_stats
Date: Wed, 3 Jun 2009 16:09:45 +0100
Message-ID: <A92AF970568F9A4BAB18E10F9C64ED605D0D2B7C51_at_EXCH2.morrisonsplc.co.uk>
In agreement with what others have said but doesn't analyze lock the table as well which is a definite no-no. It also does not have a parallel degree option.
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Bradd Piontek
Sent: 03 June 2009 12:44
To: jaromir_at_db-nemec.com; mhdmehraj_at_gmail.com; oracle-l_at_freelists.org
Subject: Re: dbms_stats
I'd also rerun the dbms_stats call with 'cascade=true'. Leaping to the conclusion that analyze is better than dbms_stats using a couple queries and providing no metrics other then elapsed time isn't very good proof.
Bradd
On 6/3/09, jaromir nemec <jaromir_at_db-nemec.com> wrote:
> Hi,
>
>>
>> so from my test , i show analyze is better than DBMS_STATS..... Any
>> other ideas plz
>
> This shows first of all that the second test runs better then the first one.
> This could be a result of caching.
>
> I'd suggest:
>
> 1) run the selects with autotrace on to see if you have different
> execution plans
>
> 2) repeat the runs to see the ratio of logical and physical I/O (also
> visible in autotrace output)
>
> HTH
>
> Jaromir
>
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
-- Sent from my mobile device Bradd Piontek "Next to doing a good job yourself, the greatest joy is in having someone else do a first-class job under your direction." -- William Feather -- http://www.freelists.org/webpage/oracle-l ______________________________________________________________________ Wm Morrison Supermarkets Plc is registered in England with number 358949. The registered office of the company is situated at Gain Lane, Bradford, West Yorkshire BD3 7DL. This email and any attachments are intended for the addressee(s) only and may be confidential. If you are not the intended recipient, please inform the sender by replying to the email that you have received in error and then destroy the email. If you are not the intended recipient, you must not use, disclose, copy or rely on the email or its attachments in any way. Wm Morrison Supermarkets PLC accepts no liability or responsibility for anything said in the email or its attachments and gives no warranty as to accuracy. It is the policy of Wm Morrison Supermarkets PLC not to enter into any contractual or other obligations by email. Although we have taken steps to ensure the email and its attachments are virus-free, we cannot guarantee this or accept any responsibility, and it is the responsibility of recipients to carry out their own virus checks. ______________________________________________________________________ -- http://www.freelists.org/webpage/oracle-lReceived on Wed Jun 03 2009 - 10:09:45 CDT