Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 22nd, 2004, 02:25 PM
jiggee jiggee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 27 jiggee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 27 sec
Reputation Power: 0
Unhappy How often is re-building indexes and gathering statistics required

Hi,

I have written 2 scripts, one that will rebuild all the indexes in the database and second which will analyze database schemas.

my questions are

1) Is it ok to run both is scripts every night. currently i run them once a week. but i am setting them as automated tasks and am wondering that if i run it everyday, will it have any negative impact.

2) is there a general practice of running such scripts in a particular order or is dosnt matter. (eg does it make a diff if i run the analyze schema script first and then the index rebuild script or vice a versa.).

thank you,

Reply With Quote
  #2  
Old November 28th, 2004, 07:38 PM
jimbag8 jimbag8 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 28 jimbag8 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
severeal comments:

#1 we do rebuild and regenerate stats nightly. my organization is an online enviroment that has many 100's of 1000's of recrods changing daily, so it is required. I would make the decision on wheter to rebuild and regen stats night based upon your needs.

#2 analyze has gone the way of the dodo in 10g. you must use dbms_stats. I will add that in v. 10.1.0.3.0 it is more comprehensive and does a better job than analyze.

~jimbag8

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > How often is re-building indexes and gathering statistics required


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT