RE: dbms_stats

  • From: John Hallas <John.Hallas@xxxxxxxxxxxxxxxxxx>
  • To: "piontekdd@xxxxxxxxx" <piontekdd@xxxxxxxxx>, "jaromir@xxxxxxxxxxxx" <jaromir@xxxxxxxxxxxx>, "mhdmehraj@xxxxxxxxx" <mhdmehraj@xxxxxxxxx>, "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 3 Jun 2009 16:09:45 +0100

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@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Bradd Piontek
Sent: 03 June 2009 12:44
To: jaromir@xxxxxxxxxxxx; mhdmehraj@xxxxxxxxx; oracle-l@xxxxxxxxxxxxx
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@xxxxxxxxxxxx> 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
>
>
>
> --
> //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
--
//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. 
______________________________________________________________________
--
//www.freelists.org/webpage/oracle-l


Other related posts: