|
/*该试验针对按照递增列作为分区条件的情况,按照时间作为分区条件的等下次测试*/
bordercolorlight = "black" bordercolordark = "#FFFFFF" align="center">
create tablespace test01 datafile "D:oracleoradatamyora est01.dbf"size 50m;
create tablespace test02 datafile "D:oracleoradatamyora est02.dbf"size 50m;
create tablespace test03 datafile "D:oracleoradatamyora est03.dbf"size 50m;
create tablespace test_idx01 datafile "D:oracleoradatamyora est_idx01.dbf"size 20m;
create tablespace test_idx02 datafile "D:oracleoradatamyora est_idx02.dbf"size 20m;
create tablespace test_idx03 datafile "D:oracleoradatamyora est_idx03.dbf"size 20m;
Create table test (
aa integer,
bb varchar2(100)
)
partition by rang(aa)(
Partition part_01 values less than(10000) Tablespace test_idx01,
Partition part_02 values less than(30000) Tablespace test_idx02,
Partition part_03 values less than(maxvalue)Tablespace test_idx03
);
Create Index idx_test_aa On test(aa)Local
(
Partition part_01 Tablespace test_idx01,
Partition part_02 Tablespace test_idx02,
Partition part_03 Tablespace test_idx03
);
-- Create sequence
create sequence seq_test_aa
minvalue 1
maxvalue 60000
start with 1
increment by 1
cache 10;
insert into test values(seq_test_aa.nextval,"test
|
|
|
|
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【论坛讨论】 |
相关文章: |
|
|
文章评论:(条) |
|
|
|
|
责任编辑:一分 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|