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: Ruth Gramolini <rgramolini_at_tax.state.vt.us>
Date: Thu, 06 Sep 2001 09:03:15 -0700
Message-ID: <F001.003855CC.20010906085715@fatcity.com>

Just spool the output of this query and run it everynite.

select 'alter index '||owner||'.'||index_name||' rebuild;' from dba_indexes;

HTH,
Ruth

> Does anyone have any good scripts for rebuilding indexes nightly on
Solaris
> UNIX that they'd be willing to share? Also, in your experience is it
better
> to run this through UNIX cron jobs than using the Oracle OEM job
scheduler?
> I suspect the cron job will be the favorable answer.
>
>
> Thanks in advance,
>
>
> David Wagoner
> Oracle DBA
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ruth Gramolini
  INET: rgramolini_at_tax.state.vt.us

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 - 11:03:15 CDT

Original text of this message

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