DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: how to move a table from one tablespace to another

  1. #1
    Join Date
    Oct 2001
    Posts
    127
    How to move a table from one tablespace to another ?
    Thanks

  2. #2
    Join Date
    Oct 2001
    Posts
    83
    Hello,

    If you are using Oracle 8i/9i you can use the following sql-stmt

    ALTER TABLE table_name
    MOVE TABLESPACE tablespace_name;

    If you Oracle version is 7/8, you can :

    - Copie you table to your new TS :

    CREATE TABLE new_table_name AS SELECT *
    FROM old_table_name;

    - Drop the old table (tabke care of dependencies !!!).

    - Rename the new table ....

    Hope this helps


  3. #3
    Join Date
    Feb 2001
    Location
    Adelaide, Australia
    Posts
    159
    ..... remember that this is only available in the Enterprise version of Oracle!

    Good luck!


  4. #4
    Join Date
    Feb 2001
    Location
    Adelaide, Australia
    Posts
    159
    ......that is the 'ALTER table MOVE' command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width