12C新功能:在线移动分区 (Doc ID 1584032.1)

12C New Feature: Online Move Partition (Doc ID 1584032.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

PURPOSE

To be able to MOVE a Partition online. 为了能够在线移动分区

DETAILS

DML are allowed during Online Move Partition. ALTER TABLE MOVE PARTITION becomes non-blocking online DDL. Global indexes and local indexed are maintained during the move partition, so a manual index rebuild is no longer required. The online partitioning movement removes the read-only state for the actual MOVE PARTITION command.

在线移动分区期间允许使用DML。ALTER TABLE MOVE PARTITION 变为非阻塞在线DDL。全局索引和局部索引在移动分区期间得以维护,因此不再需要手动重建索引。联机分区移动将删除实际MOVE PARTITION命令的只读状态。

Following is an example for the same:  以下是相同的示例:

SQL> CREATE TABLE test1 (product NUMBER(16) PRIMARY KEY,customer VARCHAR2(4000),time_id DATE)
PARTITION BY RANGE (time_id)
(PARTITION test1_PART1 VALUES LESS THAN (TO_DATE(‘01-JUL-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART2 VALUES LESS THAN (TO_DATE(‘01-AUG-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART3 VALUES LESS THAN (TO_DATE(‘01-SEP-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART4 VALUES LESS THAN (TO_DATE(‘01-OCT-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART5 VALUES LESS THAN (TO_DATE(‘01-NOV-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART6 VALUES LESS THAN (TO_DATE(‘01-DEC-2013‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART7 VALUES LESS THAN (TO_DATE(‘01-JAN-2014‘,‘DD-MON-YYYY‘)),
PARTITION test1_PART_MAX VALUES LESS THAN (MAXVALUE));

Table created

SQL> CREATE TABLE test2( product NUMBER(6) PRIMARY KEY,customer VARCHAR2(4000), time_id DATE)
PARTITION BY RANGE (time_id)
(PARTITION test1_PART1 VALUES LESS THAN (TO_DATE(‘01-JUL-2013‘,‘DD-MON-YYYY‘)));

Table created

SQL> CREATE TABLE test3( product NUMBER(6) PRIMARY KEY, customer VARCHAR2(4000),time_id DATE)
PARTITION BY SYSTEM
( PARTITION test3_PART1,
PARTITION test3_PART2,
PARTITION test3_PART3,
PARTITION test3_PART_MAX);

Table created

ONLINE Move Partition example

SQL> ALTER TABLE test1 MOVE PARTITION test1_PART1 ONLINE;

Table altered

SQL> ALTER TABLE test1 MOVE PARTITION test1_PART1 ONLINE UPDATE INDEXES;

Table altered

SQL> ALTER TABLE test1 MOVE PARTITION test1_PART1 ONLINE UPDATE GLOBAL INDEXES;

Table altered

Restrictions:  限制
- Online on IOT is not supported.

Note: Index maintenance during online move occurs as long as the UPDATE INDEXES or UPDATE GLOBAL INDEXES clause is used. These clauses exist for the non online move statement as well. So, there is no difference in this respect between online and non online move in this regard.

注意:只要使用UPDATE INDEXES或UPDATE GLOBAL INDEXES子句,就会在联机移动期间进行索引维护。这些条款也适用于非在线移动语句。因此,在线移动和非在线移动在这方面没有区别。

原文地址:https://www.cnblogs.com/zylong-sys/p/12043787.html

时间: 2024-11-09 03:05:14

12C新功能:在线移动分区 (Doc ID 1584032.1)的相关文章

如何在Oracle 12C中添加多个分区 (Doc ID 1482456.1)

How to Add Multiple Partitions in Oracle 12C (Doc ID 1482456.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 and laterOracle Database Exadata Cloud Machine - Version N/A and laterOracle Cloud Infrastructure - Database Service -

12C新功能:在线移动数据文件 (Doc ID 1566797.1)

12C New Feature : Move a Datafile Online (Doc ID 1566797.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 and laterOracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Cloud Machine - Version N/A a

即将到来的Autodesk 主要产品2015版 产品和API新功能在线培训(免费)

一年一度的Autodesk主要产品和API在线培训课程在5月份即将開始.我们呈献给大家5个课程. 1. Revit 2015 产品新功能及API 概览 2. Vault 2015产品新功能及API 概要 3. AutoCAD 2015产品新功能及API 概要 4. Civil3D 2015产品新功能及API 概要 5. Inventor 2015产品新功能及API 概要 报名參加请到这个页面去了解具体信息,请登记报名.课程免费參加,仅仅要有网络就能够參加. Revit API课程在5月16日下午

12c新特性 在线操作数据文件

我们都知道,oracle pre-12c之前,若是想要把一个数据文件改名或者迁移, 必须在归档模式下先把这个数据文件offline之后, 然后进行OS上的copy或者rename 操作, 最后在sqlplus里面进行alter database rename file x to Y; 如果不是archivelog模式在offline数据文件的时候就会遇到ORA-01145 SQL> alter database datafile 8 offline; alter database datafil

FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)

APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]Oracle Virtual Compute Appliance X4-2 Hardware - Version All Versions to All Versions [Release All Releases]Oracle Database - Enterprise Edition - Version 1

12c分区增强功能,新功能(文档ID 1568010.1)

12c Partitioning Enhancements, New Features (Doc ID 1568010.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 and laterOracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Express Cloud Service - Ve

Data Guard:Oracle 12c –新增和更新的功能 (Doc ID 1558256.1)

Data Guard: Oracle 12c – New and updated Features (Doc ID 1558256.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.1 [Release 12.1]Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Clo

RMAN RECOVER TABLE 功能是 Oracle Database 12c 的新增功能 (Doc ID 1521524.1)

RMAN RECOVER TABLE Feature New to Oracle Database 12c (Doc ID 1521524.1) APPLIES TO: Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Cloud Machine - Version N/A and laterOracle Database Exadata Express Cloud Servic

Oracle 12C 新特性之表分区带 异步全局索引异步维护(一次add、truncate、drop、spilt、merge多个分区)

实验准备:-- 创建实验表CREATE TABLE p_andy(ID number(10), NAME varchar2(40))PARTITION BY RANGE (id)(PARTITION p1 VALUES LESS THAN (10),PARTITION p2 VALUES LESS THAN (20));Table created.-- 查看现在表的分区:SQL> col table_name for a25col partition_name for a25select tab