New Features of Oracle 12C-online migration of table partitions or subpartitions

Source: Internet
Author: User

New Features of Oracle 12C-online migration of table partitions or subpartitions

Oracle 12c: new feature-online migration of table partitions or subpartitions. It is no longer necessary to migrate table partitions or subpartitions to different tablespaces in Oracle 12c R1. Similar to online migration of non-partitioned tables in earlier versions, table partitions or subpartitions can be migrated online or offline to a different tablespace. When an ONLINE statement is specified, all DML operations can be executed on the partitions or subpartitions involved in the process without any interruption. In contrast, if the partition or subpartition migration is performed offline, the DML operation is not allowed.

Example:

SQL> ALTER TABLE table_name MOVE PARTITION | SUBPARTITION partition_name TO tablespace tablespace_name;

SQL> ALTER TABLE table_name MOVE PARTITION | SUBPARTITION partition_name TO tablespace tablespace_name UPDATE INDEXES ONLINE;

The first example is to migrate a table partition or subpartition to a new tablespace offline. The second example is to migrate table partitions or subpartitions online and maintain any local or global indexes on the table. In addition, DML operations are not interrupted when an ONLINE statement is used.

Important:

The update indexes statement can avoid the problem where any local or global INDEXES in the table cannot be used.

The table's online migration restrictions also apply.

The introduction of the locking mechanism to complete this process, of course, will also lead to performance degradation and generate a large number of redo, depending on the size of the partition and sub-partition.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.