Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6542763
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: Oracle

2011-05-17 11:08:29

1.创建range-hash分区

  1. -- Create table

  2. create table TB_HXL_USER_RH
  3. (
  4.   STATEDATE DATE not null,
  5.   PROVCODE NUMBER not null,
  6.   USERNUMBER VARCHAR2(13) not null,
  7.   REM1 VARCHAR2(1024),
  8.   CREATE_DATE DATE,
  9.   CREATE_BY NUMBER,
  10.   LAST_UPDATE_DATE DATE,
  11.   LAST_UPDATE_BY NUMBER
  12. )
  13. partition by range (statedate) subpartition by hash(USERNUMBER)
  14. subpartition template (
  15.  subpartition p_sub_h1 tablespace USERS,
  16.  subpartition p_sub_h2 tablespace USERS,
  17.  subpartition p_sub_h3 tablespace USERS,
  18.  subpartition p_sub_h4 tablespace USERS,
  19.  subpartition p_sub_h5 tablespace USERS,
  20.  subpartition p_sub_h6 tablespace USERS,
  21.  subpartition p_sub_h7 tablespace USERS,
  22.  subpartition p_sub_h8 tablespace USERS,
  23.  subpartition p_sub_h9 tablespace USERS,
  24.  subpartition p_sub_h10 tablespace USERS
  25.  )
  26. (
  27.   partition HXL_USER_20110516 values less than (TO_DATE(' 2011-05-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
  28.     tablespace USERS
  29.     pctfree 10
  30.     initrans 1
  31.     maxtrans 255
  32.     storage
  33.     (
  34.       initial 64K
  35.       next 1M
  36.       minextents 1
  37.       maxextents unlimited
  38.     )
  39. );
阅读(1969) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~