Thank you
A reader, April 25, 2007 - 2:37 pm UTC
You are correct, here are my follow-up questions.
1. Why oracle provided Table monitoring option when it is not good at date > to_date(my date) queries? (Can¿t it be find out the last analyzed date and go back to a previous date and guess the possible number of rows?)
2. Where should we use this Table monitoring / gather stale stats option?
3. I am not collecting any histogram data, how oracle knows that it needs to read 10000 or some number of rows for a given date range? (I mean where is this data get stored in the dictionary)
April 25, 2007 - 3:57 pm UTC
1) because it solves many peoples issues.
2) in most cases
3) it knows low value, high value and number of distinct values - you need to adjust the high value over time for things that "grow". If that 10% modification does not trigger it soon enough, you might have to manually gather statistics.