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

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

HTH,
Ruth

----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 11:56 AM


> 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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to