Blog Archive

I have consolidated, and will do so in future, all my Experiences for Oracle Community. All these are my own opinions and does not necessarily reflect the views of Oracle. There are many databases with different permutation and combination which I have not seen. Hence, with these limitations, my views might be wrong, before implementing do test these. Please feel free to comment on my views, be it a Criticism, as this will only improve my writing abilities.

Thursday, 10 January 2008

Why and When do we need to Gather Statistics ?

Long back a customer raised a query "Why do I need to Gather Statistics ?".

There are many such questions that come up regularly. Some of these are :

"When I am OK with the current performance of a Query / Database with present statistics, why should I re-gather statistics and change these?"

"What should be the frequency of gathering statistics ?"

These queries, sometimes are obvious due to the reason that many a times, performance issues are reported after gathering of statistics.

Again, I would maintain that most of the times these are the issues related to the application queries, hence, proper optimizer statistics, optimal application design and a perfect indexing strategy plays an important role in the scalability of the system.

For optimal application design, I already have a blog posted on December 9, 2007 http://viveklsharma.blogspot.com/2007/12/optimizer-calculation-on-dependant.html

In this case, subquery factoring would have helped with the stability in plan, no matter what the stats are.

Anyways, all these will be answered in my next few blogs.

1 comments:

Tonguç said...

Greg Rahn's blog hosts good optimizer presentations.

I wrote some on this topic under "Cost Based Optimizer Best Practices and Advised Strategy" subject, looking for your post :)

Best regards.
Tonguç

About Me

My Photo
Vivek Sharma
Mumbai, Maharashtra, India
I am an Oracle Professional, mainly into Application and Database Tuning. I have been associated with Oracle technologies for more than 8 years and, in these 8 years, have seen Oracle Database growing at a fast pace. This is one of the primary reason to be associated with this technology. I initiated my association with Oracle as a FORMS Developer and then transitioned to a DBA. Development experience helped me a lot in performing my DBA responsibilities, especially, when it comes to Database and Application tuning. I am a technical speaker with a passion to share and learn from Oracle Community across the world.
View my complete profile

Number of Hits on this Page (Counter Initiated since 4th Nov 2007)

Visit online slots or online blackjack at casino games site.

Visitor Locations - Across Globe

Some of my Favourite Books

  • Oracle 10g Real Application Clusters Handbook by K. Gopalakrishnan
  • Oracle Wait Interface by K. Gopalakrishnan
  • Effective Oracle by Design, Author : Thomas Kyte