Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Index move
Thanks for all of the help guys and gals, that made it much easier. Kevin
-----Original Message-----
achoto_at_american.edu
Sent: Friday, February 02, 2001 12:51 PM
To: Multiple recipients of list ORACLE-L
How about:
set pages 0
set termout off
set feedback off
spool temp.sql
select 'alter index '||owner||'.'||index_name||' rebuild tablespace '
||tablespace_name||'_idx;'
from dba_indexes
spool off
Ana E. Choto
Systems Programmer
American University
e-Operations
Phone (202) 885-2275
Fax (202) 885-2224
"Kevin Kostyszyn" To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> <kevin_at_dulcia cc: n.com> Subject: Index move Sent by: root_at_fatcity. com 02/02/01 11:30 AM Please respond to ORACLE-L
Has anyone ever written a script or something that moved indexes to a different tablespace? One of our schemas has indexes in the wrong tablespace and instead of going throught hem one by one I was wondering if it was possible to move all of them at once? Any ideas, am I out of my mind?
Sincerely,
Kevin Kostyszyn
DBA
Dulcian, Inc
www.dulcian.com
kevin_at_dulcian.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Kevin Kostyszyn
INET: kevin_at_dulcian.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: achoto_at_american.edu
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Kevin Kostyszyn
INET: kevin_at_dulcian.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 Fri Feb 02 2001 - 13:52:04 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message