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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Newbie Q

Re: Newbie Q

From: Youtz <youtz_at_hotmail.com>
Date: Mon, 10 Dec 2001 15:49:58 +0100
Message-ID: <9v2i5o$ccmee$1@ID-109766.news.dfncis.de>


you can use this kind of code (modify the rebuild and where close as you need it) :

spool c:\temp\rebind.sql
SELECT 'ALTER INDEX ' || OWNER || '.' || INDEX_NAME || ' REBUILD TABLESPACE STRTS_INDEX;'
 FROM all_indexes
  WHERE tablespace_name = 'STRTS_INDEX'; spool off;
START c:\temp\rebind.sql

"Eduard de Vries" <edevries_at_footlocker.com> wrote in message news:u194ughcoogca6_at_corp.supernews.com...
> Hi,
>
> I have 1 instance of Oracle which contains about 75 tables and about 150
> indexes.
> Is there a way to rebuild the indexes without entering the command alter
> index "indexname" rebuild for every single index?
>
> Thanks in advance,
>
> Eduard de Vries
> edevries_at_footlocker.com
>
>
Received on Mon Dec 10 2001 - 08:49:58 CST

Original text of this message

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