--范围分区
create table person(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth) --根据年龄分区
(
partition p1 values less than (to_date('19950517','yyyymmdd')),
partition p2 values less than (to_date('20000517','yyyymmdd')),
partition p3 values less than (to_date('20100517','yyyymmdd')),
partition p4 values less than (maxvalue)
);
--列表分区
create table person1(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by list (sex) --根据性别分区
(
partition l1 values('男'),
partition l2 values('女'),
partition l3 values(default)
);
--hash分区
--不指定分区名
create table person2(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by hash (id)
partitions 2 store in (system,users);
--指定分区名
create table person3(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by hash (id)
(
partition h1,
partition h2,
partition h3
);
--复合分区
--范围——列表
create table person4(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth)
subpartition by list (sex)
subpartition template(
subpartition sp1 values ('男'),
subpartition sp2 values ('女'),
subpartition sp3 values (default)
)(
partition p5 values less than (to_date(19950517,'yyyyMMdd')),
partition p6 values less than (to_date(20000517,'yyyyMMdd')),
partition p7 values less than (to_date(20100517,'yyyyMMdd')),
partition p8 values less than (maxvalue)
);

--范围——hash
create table person5(
id int,
name varchar2(20),
birth date,
sex char(2)
)
partition by range (birth)
subpartition by hash(id)
subpartition template(
subpartition sp4,
subpartition sp5,
subpartition sp6
)(
partition p9 values less than (to_date(19950517,'yyyyMMdd')),
partition p10 values less than (to_date(20000517,'yyyyMMdd')),
partition p11 values less than (to_date(20100517,'yyyyMMdd')),
partition p12 values less than (maxvalue)
);

--查询
--相关字典表:
--select * from user_objects where object_name ='表名';
--select * from user_tables where table_name = '表名';
--select * from user_tab_partitions where table_name = '表名';
--select * from user_tab_subpartitions where table_name = '表名';

--查询分区
select * from person partition (p2);
select * from person1 partition (l2);
select * from person2 partition (SYS_P548);
select * from person3 partition (h2);
select * from person4 subpartition (p7_sp2);
select * from person5 subpartition (p11_sp5);

--删除表分区
--alter table 表名 drop partition 分区名;

--创建序列
create sequence seq_partition
minvalue 1
maxvalue 500
increment by 1;

--插入数据
insert into person values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

--插入数据
insert into person1 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person1 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person1 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

--插入数据
insert into person2 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person2 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person2 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

--插入数据
insert into person3 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person3 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person3 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

--插入数据
insert into person4 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person4 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person4 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

--插入数据
insert into person5 values (seq_partition.nextval,'吕布',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'赵云',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'关羽',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'黄忠',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'张辽',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'张飞',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'高顺',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'马超',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'甘宁',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'太史慈',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'孙策',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'黄盖',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'典韦',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'许褚',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'周泰',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'凌统',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'郭嘉',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'贾诩',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'庞统',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'周瑜',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'戏忠',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'田丰',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'沮涭',to_date('19900517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'陈宫',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'诸葛亮',to_date('19950517','yyyymmdd'),'男');
insert into person5 values (seq_partition.nextval,'貂蝉',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'蔡琰',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'甄宓',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'孙仁',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'黄月英',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'甘倩',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'乔莹',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'乔霜',to_date('20000517','yyyymmdd'),'女');
insert into person5 values (seq_partition.nextval,'伏寿',to_date('20000517','yyyymmdd'),'女');

oracle partition 分区的更多相关文章

  1. Oracle Partition 分区详细总结

    此文从以下几个方面来整理关于分区表的概念及操作:        1.表空间及分区表的概念        2.表分区的具体作用        3.表分区的优缺点        4.表分区的几种类型及操作 ...

  2. Oracle子分区(sub partition)操作

    要重新定义大量分区表. 首先看 SQL Reference 大致了解了 Oracle 的分区修改操作.Alter table 语句的alter_table_partitioning 子句可以分为以下几 ...

  3. Oracle 表分区partition(http://love-flying-snow.iteye.com/blog/573303)

    http://www.jb51.net/article/44959.htm Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划 ...

  4. oracle表分区详解

    原文来自:http://www.cnblogs.com/leiOOlei/archive/2012/06/08/2541306.html oracle表分区详解 从以下几个方面来整理关于分区表的概念及 ...

  5. 转:Oracle表分区

    Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划分分区,例如: 1. create table graderecord 2. ...

  6. Oracle表分区[转]

    废话少说,直接讲分区语法. Oracle表分区分为四种:范围分区,散列分区,列表分区和复合分区. 一:范围分区 就是根据数据库表中某一字段的值的范围来划分分区,例如: create table gra ...

  7. 详解Oracle partition分区表

    随着表中行数的增多,管理和性能性能影响也将随之增加.备份将要花费更多时间,恢复也将 要花费更说的时间,对整个数据表的查询也将花费更多时间.通过把一个表中的行分为几个部分,可以减少大型表的管理和性能问题 ...

  8. oracle表分区的,分区操作,分区查询,子分区查询

    一.摘要 有关表分区的一些维护性操作: 注:分区根据具体情况选择. 表分区有以下优点: 1.数据查询:数据被存储到多个文件上,减少了I/O负载,查询速度提高. 2.数据修剪:保存历史数据非常的理想. ...

  9. oracle partition table 分区表详解

    Oracle partition table 分区表详解 分区表就是通过使用分区技术,将一张大表,拆分成多个表分区(独立的segment),从而提升数据访问的性能,以及日常的可维护性.分区表中,每个分 ...

随机推荐

  1. rocketMQ retry 消息的实现

    consumer 消费失败,会把消息重新发往 %RETRY% + consumerGroup,这个 retry 消息会在一定时间后,真实送到 retry topic. broker 处理发送到 ret ...

  2. Elasticsearch 6.2.3版本 string 类型字段 排序 报错 Fielddata is disabled on text fields by default

    背景说明 最近在做一个 Elasticsearch 的分页查询,并且对查询结果按照特定字段进行排序的功能. 但是执行结果却报错,报错信息如下: { "error": { " ...

  3. SAS中的聚类分析方法总结

    SAS中的聚类分析方法总结 说起聚类分析,相信很多人并不陌生.这篇原创博客我想简单说一下我所理解的聚类分析,欢迎各位高手不吝赐教和拍砖. 按照正常的思路,我大概会说如下几个问题: 1.     什么是 ...

  4. java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.dbcp2.Ba ...

  5. Word2007—如何快速取消自动编号

    有时候自动编号很麻烦,有没有好的办法可以快速取消呢. 1.禁止自动编号.在Word为其自动加上编号时,只要按下Ctrl+Z键撤销操作,此时自动编号会消失,而且每次键入数字时,该功能就会被禁止了. 2. ...

  6. 六、Kubernetes_V1.10集群部署-node-部署节点组件

    一.配置kubelet 1.配置启动文件 # cat > /usr/lib/systemd/system/kubelet.service <<EOF [Unit] Descripti ...

  7. etcd租约机制

    新建租约 新建一个过期时间为120s的租约 # etcdctl lease grant lease 018f6d7bb11aba0d granted with TTL(120s) 查看新建的租约信息 ...

  8. 另一种分页器 不依赖Paginator模块的方法

    """ 分页组件 """ class Pagination(object): def __init__(self, current_page ...

  9. Java第三周总结报告

    本周做了什么? 本周利用Java语言重新回顾了条件结构与循环结构和字符串的处理等问题,认识到了Java与C/C++的在这两个方面的不同. 下周准备做什么? 学习Java面向对象的有关知识,包括对象与类 ...

  10. 【6.28校内test】T2 【音乐会】二重变革

    [音乐会]二重变革[题目链接] T2其实是一道数学题,因为你看: 2MB??一共就可以存下个int,然鹅再看数据范围: 那么大是稳稳的不是TLE就是MLE了,所以肯定是数学题,而且是只需要存很少数据的 ...