分区表大索引可采用如下方式进行索引创建,减少对临时表空间的占用

create index idx_test on us_userinformation(msisdn,cityid) tablespace tbs_mread_idx local unusable;

alter index idx_test rebuild partition PARTITION_1;
alter index idx_test rebuild partition PARTITION_2;
alter index idx_test rebuild partition PARTITION_3;
alter index idx_test rebuild partition PARTITION_4;
alter index idx_test rebuild partition PARTITION_5;
alter index idx_test rebuild partition PARTITION_6;
alter index idx_test rebuild partition PARTITION_7;
alter index idx_test rebuild partition PARTITION_8;
alter index idx_test rebuild partition PARTITION_9;
alter index idx_test rebuild partition PARTITION_10;
alter index idx_test rebuild partition PARTITION_11;
alter index idx_test rebuild partition PARTITION_12;
alter index idx_test rebuild partition PARTITION_13;
alter index idx_test rebuild partition PARTITION_14;
alter index idx_test rebuild partition PARTITION_15;
alter index idx_test rebuild partition PARTITION_16;

你可能感兴趣的:(表空间)