组合分区
来源:互联网 发布:4端口输入异或门 编辑:程序博客网 时间:2024/05/29 21:35
组合分区是以区间分区、列表分区、散列分区组合而成。
纵向表头是:顶层分区机制
横向表头是:子分区机制,内容是支持版本
区间分区列表分区散列分区 区间分区11g 1版本支持9i 2版本支持
9i 1版本支持
列表分区11g 1版本支持11g 1版本支持
11g 1版本支持
散列分区11g 2版本支持
11g 2版本支持
11g 2版本支持
创建表
--flashback table range_hash_example to before drop ;
drop table range_hash_example cascade constraints purge;
create table range_hash_example
(
range_key_date date,
hash_key number
)
partition by range(range_key_date)
subpartition by hash(hash_key) subpartitions 2
(
partition composite_main_part1 values less than(to_date('2014-1-1','YYYY-MM-DD'))
(
subpartition composite_child1_part1 tablespace learn,
subpartition composite_child1_part2 tablespace example
),
partition composite_main_part2 values less than(to_date('2015-1-1','YYYY-MM-DD'))
(
subpartition composite_child2_part1 tablespace learn,
subpartition composite_child2_part2 tablespace example
)
);
查询分区信息:分区中子分区没有显示
SQL> select t.partition_name from user_tab_partitions t where t.table_name=upper('range_hash_example') ;
PARTITION_NAME
------------------------------
COMPOSITE_MAIN_PART1
COMPOSITE_MAIN_PART2
查询段信息:只有子分区才有段;组合分区没有分区段,只有子段。
SQL> select t.partition_name from user_segments t where t.segment_name=upper('range_hash_example');
PARTITION_NAME
------------------------------
COMPOSITE_CHILD1_PART1
COMPOSITE_CHILD1_PART2
COMPOSITE_CHILD2_PART1
COMPOSITE_CHILD2_PART2
- 组合分区
- oracle 组合分区
- 组合分区与范围分区效率对比测试(1)
- 组合分区与范围分区效率对比测试(2)
- 组合分区与范围分区效率对比测试(3)
- 分区表及分区索引(5)--创建range-hash组合分区
- 分区表及分区索引(6)--创建range-list组合分区
- ORA-14048: 分区维护操作不能与其它操作组合
- 创建range-hash(范围-哈希)组合分区!
- 创建range-list(范围-列表)组合分区!
- 关于oralce创建组合分区带模板的创建语句
- 深入学习分区表及分区索引(5)--创建range-hash组合分区
- 深入学习分区表及分区索引(5)--创建range-hash组合分区(续)
- 深入学习分区表及分区索引(6)--创建range-list组合分区
- 分区上的组合索引是否要带上分区字段呢?
- 分区
- 分区
- 分区
- 时态数据和动态图标结合显示
- ZStack Monitor and Test(MT)功能简介与Z-tool使用介绍
- play framework学习(validation提示信息)
- vs2012,如何include另一个项目中的h文件
- 【SrpingMvc AJAX】中文乱码问题
- 组合分区
- play framework学习(paginate)
- 在Flex中给datagrid添加右键菜单项
- Apache JMeter 压测使用
- memcache启动命令
- Android源码分析-消息队列和Looper
- play framework学习(使用CRU模块)
- 设计模式-享元设计
- Ganglia3.1.7安装与配置