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

Home -> Community -> Usenet -> c.d.o.server -> Re: Moving tables to new tablespace

Re: Moving tables to new tablespace

From: Yong Huang <yong321_at_yahoo.com>
Date: 11 Jun 2003 11:12:07 -0700
Message-ID: <b3cb12d6.0306111012.3d1f1c9@posting.google.com>


"Tanel Poder" <tanel@@peldik.com> wrote in message news:<3ee655a5$1_1_at_news.estpak.ee>...
> > alter table <table> move tablespace <tablespace> provided you are on
> > 8i or higher.
>
> And rebuild your indexes afterwards if you have any data in your tables,
> otherwise they'll remain in unusable status. (note that when moving tables
> with no rows in them, Oracle is smart enough to keep index in valid status).

And also move lob segments if the table has any. The syntax is like alter table mytable move tablespace mynewts lob (mylobcolumn) store as

SYS_LOB0000022865C00011$$ (tablespace mynewts), where
SYS_LOB0000022865C00011$$ here is the lob segment name shown in
xxx_LOBS.

Yong Huang Received on Wed Jun 11 2003 - 13:12:07 CDT

Original text of this message

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