Need to add accounting for LOB indexes or simply not to add whenever SQL
error ...
alter index .. rebuild does not work for LOB indexes.
Alex Hillman
-----Original Message-----
Sent: Tuesday, August 21, 2001 1:57 PM
To: Multiple recipients of list ORACLE-L
I just did this yesterday. Here are the scripts I used;
sqlplus system/syspaswd
set pagesize 0
set feedback off
spool mv_tbls.sql
select 'alter table '|| owner || '.' || segment_name || ' move tablespace
new_tblspc;'
from dba_segments
where segment_type='TABLE'
and tablespace_name='old_tblspc';
spool off;
spool alter_idxs.sql
select 'alter index ' || i.table_owner || '.' || i.index_name || ' rebuild;'
from dba_indexes i, dba_segments s
where s.segment_name=i.table_name
and s.owner=i.table_owner
and s.segment_type='TABLE'
and s.tablespace_name='old_tblspc';
spool off;
this is from memory, so check the spooled scripts before running...
-----Original Message-----
INF/MEKKAOUI
Sent: Tuesday, August 21, 2001 5:41 AM
To: Multiple recipients of list ORACLE-L
hi,
the command is :
Alter table table_name move tablespace tablespace_name;
But be careful from index corruption.
Best Regards,
Nabila Mekkaoui
DBA Oracle
-----Message d'origine-----
De : Dash, Saroj (CAP,CEF) [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 21 ao�t 2001 08:16
� : Multiple recipients of list ORACLE-L
Objet : MOVE Tables from One Tablespace to Another Tablespace !!
Hello All,
Please tell me the detailed steps to move tables from one tablespace to
another tablespace.
Regards,
Saroj.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Dash, Saroj (CAP,CEF)
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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: INF/MEKKAOUI
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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Glenn Travis
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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Hillman, Alex
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).