请教关于数据表内容过大的问题 我们在做一个系统,但单个表数据内容过多,这样,查询和管理起来都很困难想请教各位,有什么好的方法没有听说有什么数据分区,这个具体怎么应用?或有没有其他好的方法? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你一个一年的分区事例每10天一个分区-- Create tablecreate table ICDMAIN.T_PUB_COMMONINFO( SERIALNO VARCHAR2(20) not null, ACCEPTBEGINTIME DATE not null, PARTID VARCHAR2(4) not null, ACCEPTDURATION NUMBER(10), ACCEPTERNO VARCHAR2(10) not null )partition by range (PARTID)( partition P01_1 values less than ('0111') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P01_2 values less than ('0121') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P01_3 values less than ('0132') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P02_1 values less than ('0211') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P02_2 values less than ('0221') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P02_3 values less than ('0232') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), //其他月为类似写法 partition P12_1 values less than ('1211') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P12_2 values less than ('1221') tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited ), partition P12_3 values less than (MAXVALUE) tablespace SERVICE_LOG_DAT pctfree 10 initrans 4 maxtrans 255 storage ( initial 10M minextents 1 maxextents unlimited )); 在plsqldev 的commond界面中,如何让长字符串显示全? oracle 多条查询记录 结果连接 oracle更改编码引起的问题 中文数字转阿拉伯数字 oracle函数 oracle从用中文标准字符集访问西欧字符集 oracle developer访问数据库问题 连接数据库错误 怎样知道表空间是否存在? pl/sql问题。 Case 语句的问题 请教一个查询语句? Oracle9i中SQL*Plus与iSql*Plus的区别
-- Create table
create table ICDMAIN.T_PUB_COMMONINFO
(
SERIALNO VARCHAR2(20) not null,
ACCEPTBEGINTIME DATE not null,
PARTID VARCHAR2(4) not null,
ACCEPTDURATION NUMBER(10),
ACCEPTERNO VARCHAR2(10) not null
)
partition by range (PARTID)
(
partition P01_1 values less than ('0111')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P01_2 values less than ('0121')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P01_3 values less than ('0132')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P02_1 values less than ('0211')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P02_2 values less than ('0221')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P02_3 values less than ('0232')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
//其他月为类似写法 partition P12_1 values less than ('1211')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P12_2 values less than ('1221')
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
),
partition P12_3 values less than (MAXVALUE)
tablespace SERVICE_LOG_DAT
pctfree 10
initrans 4
maxtrans 255
storage
(
initial 10M
minextents 1
maxextents unlimited
)
)
;