详解ORACLE簇表、堆表、IOT表、分区表
簇和簇表
簇其实就是一组表,是一组共享相同数据块的多个表组成。将经常一起使用的表组合在一起成簇可以提高处理效率。
在一个簇中的表就叫做簇表。建立顺序是:簇→簇表→数据→簇索引
1、创建簇的格式
CREATE CLUSTER cluster_name
(column date_type [,column datatype]...)
[PCTUSED 40 | integer] [PCTFREE 10 | integer]
[SIZE integer]
[INITRANS 1 | integer] [MAXTRANS 255 | integer]
[TABLESPACE tablespace]
[STORAGE storage]
SIZE:指定估计平均簇键,以及与其相关的行所需的字节数。
2、创建簇
create cluster my_clu (deptno number)
pctused60
pctfree10
size1024
tablespace users
storage(
initial128k
next128k
minextents2
maxextents20