现在使用分区功能想实现 先按列表 字段:Station (值只有A,B 两种) 分区,然后再按时间范围分区 字段为:opertime这种情况下.我的表空间 应该怎么弄(弄几个啊?) 怎么弄合理? 谢谢
create table li."table1"
(
id char(20) not null,
title char(20) not null,
station char(20) not null,
opertime date not null
)partition by list (station)
subpartition by range (opertime)
(
partition test001 values ('A') tablespace test001
(
subpartition test002 values less than (to_date('2008-12-31','yyyy-mm-dd')) tablespace test002,
subpartition test003 values less than (to_date('2009-12-31','yyyy-mm-dd')) tablespace test003
),
partition test004 values ('B') tablespace test004
(
subpartition test005 values less than (to_date('2008-12-31','yyyy-mm-dd')) tablespace test005,
subpartition test006 values less than (to_date('2009-12-31','yyyy-mm-dd')) tablespace test006
)
)
create table li."table1"
(
id char(20) not null,
title char(20) not null,
station char(20) not null,
opertime date not null
)partition by list (station)
subpartition by range (opertime)
(
partition test001 values ('A') tablespace test001
(
subpartition test002 values less than (to_date('2008-12-31','yyyy-mm-dd')) tablespace test002,
subpartition test003 values less than (to_date('2009-12-31','yyyy-mm-dd')) tablespace test003
),
partition test004 values ('B') tablespace test004
(
subpartition test005 values less than (to_date('2008-12-31','yyyy-mm-dd')) tablespace test005,
subpartition test006 values less than (to_date('2009-12-31','yyyy-mm-dd')) tablespace test006
)
)
解决方案 »
- oracle 多表update
- 如何判断一个字符串是否是数字?
- 谁知道哪有oracle10在XP上的安装手册没?
- 为什么oracle刚连上起始几秒插入速度很快,过一会就慢了
- 高分求教 有关Oracle ERP 中 Concurrent Program 方面的内容。 up者有分 能帮忙解决所有问题的高手,我愿意另开200分相谢!!
- 急求!!!!!
- 求一条 SQL 语句,谢谢
- oracle修改参数shared_pool_size的问题
- SQL查询
- oracle 有没有left函数?
- ORA-00904: "AVGSAL": invalid identifier 求高手指点,贴有代码
- 请教各位,unlimited tablespace和quota 0k有何区别?
最好当然是一个分区一个tbspace,每个tbspace放在不同得硬盘了。
没做过嵌套分区,下
Blog: http://blog.csdn.net/tianlesoftware
网上资源: http://tianlesoftware.download.csdn.net
相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
Q Q 群:62697716
test001和test004可以不要
真正的内容存储在其他四个子分区表空间中的