Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Scripts for Rebuilding Indexes Nightly on Solaris

RE: Scripts for Rebuilding Indexes Nightly on Solaris

From: Post, Ethan <epost_at_kcc.com>
Date: Thu, 06 Sep 2001 17:33:21 -0700
Message-ID: <F001.00386053.20010906173524@fatcity.com>

I would add that using the MONITORING option is a great way to begin to look for tables that have indexes that might need rebuilding. You can query the DBA_TAB_MODIFICATIONS view to see what tables have a lot of delete/insert activity.

>-----Original Message-----
>From: Walthour, Jon (GEAE, Compaq) [mailto:Jon.walthour_at_ae.ge.com]
>Sent: Thursday, September 06, 2001 12:25 PM
>To: Multiple recipients of list ORACLE-L
>Subject: RE: Scripts for Rebuilding Indexes Nightly on Solaris
>
>
>First off, checking on a regular basis for indexes that need
>rebuilding is
>fine, but don't rebuild all of them every night. Not only is
>it unnecessary,
>it can cause lots of problems. Only rebuild the indexes you
>need to--the
>ones who are significantly browned, have a significant percentage of
>deletes, or whose height is significant.
>
>Second, setting up a cron job is indeed a good idea. And David
>is right that
>you want to make sure to explicitly set up your environment,
>but not for the
>reason he suggests. The problem isn't that the job runs as
>root. If it were
>the case that every cron job on a UNIX box ran as root, then
>that would be a
>mighty big security hole. The issue is that when running a
>cron job, the
>account under which it runs does not automatically get its environment
>initialized by running .profile as it does when you log in. Thus, the
>environment must be specifically laid out.
>
>Hope this helps.
>
>Jon Walthour
>
>
>



This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Post, Ethan
  INET: epost_at_kcc.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Sep 06 2001 - 19:33:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US