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: alter index rebuild online

RE: alter index rebuild online

From: Sherman, Paul R. <PSherman_at_elcom.com>
Date: Tue, 05 Mar 2002 09:14:12 -0800
Message-ID: <F001.0041FB81.20020305091412@fatcity.com>


Hello,

I have used this dynamic script (on 8.1.6.x and 8.1.7.x) successfully with no corruption, for the past two years. The script actually moves the indexes from where they are originally built on a data tblsp to its index tblsp. However, dropping the "and tablespace_name = 'TBLSPD'", will result in a in-situ rebuild, which is probably what you want. Perhaps your environment is not conducive to index rebuilds ? I have 64-bit HP-UNIX, 32-bit oracle.

set pagesize 0
set lines 120
set verify off
set echo off
set feedback off
set head off
spool move_indexes.sql
select 'alter index '||index_name||' rebuild tablespace TBLSPX; ' from all_indexes where owner = 'MYSCHEMA' and tablespace_name = 'TBLSPD' order by index_name;
spool off
start move_indexes

Thank you,

Paul Sherman
DBA
voice - 781-501-4143 (office)
fax - 781-278-8341 (office)
email - psherman_at_elcom.com

-----Original Message-----
Sent: Tuesday, March 05, 2002 11:43 AM
To: Multiple recipients of list ORACLE-L

I'm still back on 8.1.6 and when I tried to use 'alter index rebuild online' I got corrupted indexes. I saw on metalink that it's supposed to be fixed by 8.1.7.1 - anybody using successfully now?
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Shaw John-P55297
  INET: P55297_at_motorola.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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Sherman, Paul R.
  INET: PSherman_at_elcom.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 Tue Mar 05 2002 - 11:14:12 CST

Original text of this message

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