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: MOVE Tables from One Tablespace to Another Tablespace !!

RE: MOVE Tables from One Tablespace to Another Tablespace !!

From: Hillman, Alex <Alex.Hillman_at_usmint.treas.gov>
Date: Tue, 21 Aug 2001 13:06:48 -0700
Message-ID: <F001.00373238.20010821130759@fatcity.com>

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:Saroj.Dash_at_gecapital.com] 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: Saroj.Dash_at_gecapital.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: INF/MEKKAOUI
  INET: nmekkaoui_at_lth.sonatrach.dz
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: Glenn Travis
  INET: c-glenn.travis_at_wcom.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: Hillman, Alex
  INET: Alex.Hillman_at_usmint.treas.gov
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 Aug 21 2001 - 15:06:48 CDT

Original text of this message

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