How do you move a partitioned table from one tablespace to another in Oracle 11g?

后端 未结 6 830
清酒与你
清酒与你 2021-02-04 15:16

I have a partitioned table that belongs to tablespace report. I want to move it to tablespace record instead.

One possibility is to drop the table and

6条回答
  •  灰色年华
    2021-02-04 15:47

    If this is an option, the easiest way could be to rename the table (ALTER TABLE requestLog RENAME TO requestLogTmp;), create the same table with all indexes in the correct tablespace and copy the data from the old table:

    INSERT INTO requestLog ( SELECT * FROM requestLogTmp )
    

    When everything is up and running, you can drop the old table.

提交回复
热议问题