现在使用分区功能想实现 先按列表 字段: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           
        )        
    )
    

解决方案 »

  1.   

    看你得时间范围吧?
    最好当然是一个分区一个tbspace,每个tbspace放在不同得硬盘了。
    没做过嵌套分区,下
      

  2.   

    保留 tablespace test002,test003,test005,test006, 就可以了。 ------------------------------------------------------------------------------
    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 
      

  3.   

    恩 印象中好像是这样的
    test001和test004可以不要
    真正的内容存储在其他四个子分区表空间中的