Search the web
Sign In
New User? Sign Up
psftdba · PeopleSoft DBA Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
DBMS_STATS and Oracle 10g   Message List  
Reply | Forward Message #3836 of 3996 |

Hello Everyone,

 

We have upgraded from Oracle 9i to 10g (10.2.0.4).

We are trying to understand the behaviour of DBMS_STATS in our new environment.

 

In particular the ESTIMATE PERCENT parameter.

In 9i this defaulted to 100%, but in 10g it defaults to AUTO_SAMPLE_SIZE.

 

And, as we understand it, the value of AUTO_SAMPLE_SIZE is calculated for

EACH table based on information the optimizer holds about the table,

and so the actual value for ESTIMATE PERCENT, for a table in 10g,

could be anything from 1% to 100 % !

 

At the moment we have set ESTIMATE_PERCENT to 100%,

but we are wondering if this is over-kill and should we just let

it default to AUTO_SAMPLE_SIZE ?

 

Does anybody have any thoughts to share about this issue ?

 

Thanks in advance,

 

Best Regards,

Brian Thompson

Diodes Zetex Semiconductors Ltd.

 

______________________________________________________________________

Diodes Incorporated

www.zetex.com
www.diodes.com

E-MAILS are susceptible to interference. You should not assume that
the contents originated from the sender or Diodes Incorporated or that they
have been accurately reproduced from their original form.
Diodes Incorporated accepts no responsibility for information, errors or omissions in
this e-mail nor for its use or misuse nor for any act committed or omitted in connection
with this communication.
If in doubt, please verify the authenticity with the sender
.
_________________________________________________________



Tue Jul 7, 2009 9:31 am

bt4psftdba
Offline Offline
Send Email Send Email

Forward
Message #3836 of 3996 |
Expand Messages Author Sort by Date

Hello Everyone, We have upgraded from Oracle 9i to 10g (10.2.0.4). We are trying to understand the behaviour of DBMS_STATS in our new environment. In...
Brian Thompson
bt4psftdba
Offline Send Email
Jul 7, 2009
9:32 am

Hi Brian, Your question cannot be answered with the information provided. Calculation of statistics is an optimalisation game, where the time to gather...
Willem.Leenen@...
Send Email
Jul 7, 2009
10:46 am

Willem, Decision to collect complete statistics can be made only based on the size of the db and how long it takes to capture the stats on a daily basis. I...
shajivps
Offline Send Email
Jul 7, 2009
2:43 pm

I think you can usually take default sample size by using DBMS_STATS.AUTO_SAMPLE_SIZE. There might be a few tables where you need to collect statistics at a...
David Kurtz
davidkurtz
Offline Send Email
Jul 7, 2009
3:05 pm

Shaji, I don't see any difference in our opinions. If your posting was meant to counter mine, then one of us wasn't clear. The only exception is in the last...
Willem.Leenen@...
Send Email
Jul 7, 2009
3:06 pm

Willem, I was not trying to contradict your statement. As you clarified, exceptions needs to be handled in both cases. The choice to analyze full or at a...
shajivps
Offline Send Email
Jul 7, 2009
3:33 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help