DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Questions ON Gathering statistics on Index & table

  1. #1
    Join Date
    Dec 2001
    Posts
    203

    Questions ON Gathering statistics on Index & table

    Hello Everyone, few quick questions

    (1) Is it advisable gathering statistics on Index & table after creating a NEW index on an OLD large table? Why?
    (2) Is it advisable gathering statistics on Index & table if we move any table to KEEP or Buffer pool? Why?
    (3) Is it advisable gathering statistics on Index & table if we REBUILD a table in primary key order? Why?
    (4) Is it advisable gathering statistics on Index & table after reorganizinf a table based on primary key? Why?

    Regards
    Sumit
    sumit

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    yes, no, yes (last yes goes for #3 and #4 which are the same).

    There is just one reason which is to keep up to date performance statistics which tell Oracle about data and data distribution.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    5 years ago I worked on an application that inserted and deleted 50,000 rows at a time into a table. They had a way of deciding when to regenerate stats on the table. I removed all stats on that table, since no stats performed better than out of date stats or making people wait to generate stats that will quickly become outdated.

    So no, you don't always need to generate stats, just make sure that you don't keep out of date stats.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width