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: switching to locally managed tablespaces

Re: switching to locally managed tablespaces

From: Marc Blum <marc_at_marcblum.de>
Date: Sat, 06 Jul 2002 21:40:33 +0200
Message-ID: <bfheiucqterk5blcqkaufrida9b9aj4rd2@4ax.com>


On Wed, 3 Jul 2002 06:30:40 +1000, "Howard J. Rogers" <dba_at_hjrdba.com> wrote:

<snip>

>If it were me, and if you had sufficient disk space (and given your reported
>size, I think you probably do), I would instead be inclined to create a
>bunch of new LM tablespaces, and simply issue the 'alter table X move
>tablespace Y' command. When everything has been moved, you can then just
>drop the old DM tablespaces, as they'll be empty. You have then to rebuild
>all indexes, which is a slight bummer, but only a slight one.

</snip>

But be aware of tables with LONG columns! When migrating from 7.3.x there's a good chance to have some in the database (yes, I know they're deprecated). ALTER TABLE ... MOVE ... doesn't work with LONGs, so you have to migrate your LONGs to CLOBs first or do some nasty workarounds.

SQL> create table t
  2 (n number, l long)
  3 tablespace ts_a;

Table created.

SQL> alter table t
  2 move tablespace ts_b;
alter table t
*
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

SQL> drop table t;

Table dropped.

SQL> create table t
  2 (n number, c clob)
  3 tablespace ts_a;

Table created.

SQL> alter table t
  2 move tablespace ts_b;

Table altered.

Marc Blum
mailto:marc_at_marcblum.de
http://www.marcblum.de Received on Sat Jul 06 2002 - 14:40:33 CDT

Original text of this message

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