My Oracle Support Banner

How To Move an Already Existing Partition To a New Tablespace (Doc ID 811123.1)

Last updated on NOVEMBER 05, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.7 [Release 10.2 to 11.1]
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

This article suggests the best method to move an already existing partition to a new tablespace,
when the base table is unique and it needs to move its tablespace.

For example, if the base table is using the tablespace "old_data_tbs" and here are all partitions
with their tablespaces:

TABLE_NAME     PARTITION_NAME TABLESPACE_NAME
-------------- -------------- -----------------
MY_TABLE       MY_TABLE_PART0801 <TABLESPACE_NAME_Q200801>
MY_TABLE       MY_TABLE_PART0802 <TABLESPACE_NAME_Q200802>
MY_TABLE       MY_TABLE_PART0803 <TABLESPACE_NAME_Q200803>
MY_TABLE       MY_TABLE_PART0804 <TABLESPACE_NAME_Q200804>
MY_TABLE       MY_TABLE_PART0901 <TABLESPACE_NAME_Q200901>
MY_TABLE       MY_TABLE_PART0902 <TABLESPACE_NAME_Q200902>
MY_TABLE       MY_TABLE_PART0903 <TABLESPACE_NAME_Q200903>
MY_TABLE       MY_TABLE_PART0904 <TABLESPACE_NAME_Q200904>
MY_TABLE       MY_TABLE_PART0700 <TABLESPACE_NAME_Q200700>

and it would like to move the tablespace of the base table to a new tablespace named as "new_data_tbs".

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.