Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: 10g optimizer and dynamic sampling
p.santos000_at_gmail.com wrote:
> Mladen Gogala wrote:
> > > This is 10g so the monitoring is done automatically. > We also have scheduled jobs that run every 4hrs and look for "stale" > objects and re-generate > stats. >
Peter, problem with the dynamic sampling is the problem of plan stability. If Oracle re-samples statistics for every execution, you will have potentially different plan for every execution. That is a general problem with CBO: explain plan is useless. You cannot have development database on a small system and production database on a big box and be certain that plans are the same. That was the case with RBO. CBO causes many more fluctuations. Dynamic sampling introduces fluctuations where they're really not needed. I tend to compute statistics monthly or even bi-monthly and make amends only if problem arises. That is why I recommend permanent statistics. I don't know anything about your company which means that I can't give you any advice.
-- Mladen Gogala http://www.mgogala.comReceived on Fri Jun 02 2006 - 16:18:12 CDT
![]() |
![]() |