Re: dbms_stats using no_parallel_index internally

  • From: Deepak Sharma <sharmakdeep_oracle@xxxxxxxxx>
  • To: Riyaj Shamsudeen <rshamsud@xxxxxxxxxxxx>
  • Date: Thu, 30 Mar 2006 14:11:14 -0800 (PST)

Sometimes the plan was totally different, and
sometimes only slight change whereby, the 'SORT GROUP
BY' changed to 'HASH GROUP BY'.  We didn't have enough
time to look into each and every query, due to
deadlines etc., and the optimizer setting was kind of
workaround until we gather the stats for 10.2.0.2.

Deepak

--- Riyaj Shamsudeen <rshamsud@xxxxxxxxxxxx> wrote:

> Hi Deepak
>    
>     Thanks for sharing the info. FWIW, decision to
> add the no_parallel 
> hint is based upon the segment size(as per the
> segment header block, NOT 
> from the statistics on that segment). If the segment
> is shorter than 100 
> blocks as per the segment header block
> (approximately), then no_parallel 
> and no_parallel_index hint is added to the queries
> accessing that 
> partition/subpartition. This is in 10.1.0.5
> 
>     I don't have 10.2.0.2 right now, but I bet,
> Oracle tuned these SQLs 
> and eliminated unnecessary work in that version ;-)
>    
>     Out of curiosity, was there any access plan
> difference between 
> 10.1.0.4 and 10.2.0.2 for similar queries ?
> 
> Thanks
> Riyaj Shamsudeen
> 
> 
> Deepak Sharma wrote:
> > We found the solution to our (own-created?)
> problem. 
> > As I mentioned in this thread earlier, we had
> upgraded
> > to 10.2.0.2 from 10.1.0.4, and found some of the
> > queries behave very poorly. When, as suggested by
> > Oracle, we changed the
> > optimizer_features_enable="10.1.0.4", those
> queries
> > ran as before - quick. The difference was Hrs Vs.
> > seconds. So, next step for us was to gather the
> > statistics afresh on all the tables, where we
> started
> > seeing issues with the dbms_stats job itself, (and
> > hence this thread). About an hour ago it dawned
> onto
> > me to try changing the
> > optimizer_features_enable="10.2.0.2" at
> session-level
> > and run the dbms-stats again.  I tested with 2
> > subpartitions that each took 2 Hrs and 5Hrs resp.,
> and
> > after this setting took 9 minutes.  So, that's the
> > game-plan now, to use the 10.2.0.2 setting at
> > session-level, gather all statistics, and then
> > selectively change the setting to 10.2.0.2 for
> other
> > areas/schemas etc.
> >
> > Thanks,
> > Deepak
> >
> > --- Riyaj Shamsudeen <rshamsud@xxxxxxxxxxxx>
> wrote:


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
//www.freelists.org/webpage/oracle-l


Other related posts: