暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle Partition(分区) 那些事儿

科讯华通 2021-05-11
3457

Oracle 从8.0(1997)引入partition, 在海量数据库管理中是一种比较常见的技术特性,用于提升可维护性、提高数据库性能和高可用性,大多数关系型数据库都支持分区,但是ORACLE在不同的版本不断完善,提供了更加方便强大的分区表特性如Range partitioning,  hash partitioning,  list partitioning,  interval partitioning, reference partitioning,composite partitioning等,相应的还有分区索引,借助分区技术,数据库设计人员和后期维护管理员解决因海量数据数据部署和数据维护时时间窗口不足的问题。是TB级系统或高可用性系统的一把不可或缺的利器。

在尚未发布的ORACLE 12.2版本中对partition再次引入了一系列的新特性.


分区特性历史发展:

版本

新增支持


8.0

TABLE Range partition

global index partition

Cluster table/index not supported\

Add, drop , exchange partition

8i

Hash partition

Range-hash partition

Merge partition

9i r1

List partition

·         Global index maintenance

9i r2

Rang-list partition

Fast split and default partition for list

10g r1

Global indexes partitioned IOT

Global hash partition index

Local index maintenance

10g r2

Number of partitions 1024k-1

Fast split partition IOT

 

 

 

 

 

 

 

 

11g

Interval partition


Reference partition


Virtual column-based partition


System partition


Partition advisor


More composite partition

Range-Range

Range-List

Range-Hash

List-List

List-Range

List-Hash

Hash-Hash

Hash-List

Hash-Range

Interval-Range

Interval-List

Interval-Hash

 

12c r1

Move or compress partition online

Partial indexing on partitioned table

Maintenance on multiple partitions

Asynchronous Global Index Maintenance

Interval Reference Partitioning

 

12c r2

More composite partition

Multi-column  list partitioning

Convert no-partition  table to partition Online

Split  partition online

Auto List  Partitioning

Partitioned External Tables

Read only partition level

Partition  Advisor

interval  sub-partition

reference  partitioning with both virtual column-based partitioning and interval  partitioning

virtual column-based  partitioning with all other partitioning extensions



分区索引的类型:
  • Non partition index (global index)

  • Global prefixed partition index

  • Local prefixed partition index

  • Local Non-prefixed partition index

相信离ORACLE 12C R2版本的发布已经不远, 当然目前在ORACLE CLOUD已经有12R2的环境, 同时如果测试ORACLE 12C R2的SQL特性可以到https://livesql.oracle.com 注册个免费的OTN用户


12c R1及R2 版本中主要新特性有:
1, 支持多列的list partition
2, 自动list partition
3, 分区级的read only
4, interval subpartition
5, 自动list + interval subpartition --近乎全自动
6, Partial Indexes(部分索引)
7, 全局索引延时异步维护
8, partition online(在线)维护如move,压缩, 非分区转换分区...
9, 一次多分区维护
10, 在线split partition
11, 分区外部表
12, 分区/子分区级只读
13, Partition 顾问
...

因微信的字数限制不再一一描述. 如果对以上特性有兴趣, 可以转至我BLOG查看我测试的一些新特性的笔记:
Oracle 12c New Feature: PARTITION增强(一) 多分区维护
Oracle 12c New Feature: Partition增强(二) online在线维护
Oracle 12c New Feature: Partition增强(三)Partial Indexes(部分索引)
Oracle 12c New Feature: Partition增强(四) multi-column list, auto-list ,interval subpartition, partition level readonly


文章转载自科讯华通,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论