我需要在现有分区表上删除位图索引,并且我想在同一列上创建一个普通的本地索引。我是否需要再次手动创建分区?
答案 0 :(得分:0)
无需担心单个分区。 LOCAL索引将自动为每个表分区创建索引分区。
--Create partitioned table with local bitmap index.
create table test1(a number, b number)
partition by range(a)
(
partition p1 values less than (1),
partition p2 values less than (2)
);
create bitmap index test1_idx on test1(a) local;
--Drop bitmap index.
drop index test1_idx;
--Create a local, btree index.
create index test1_idx on test1(1) local;
--It automatically exists for every partition.
select partition_name from user_ind_partitions where index_name = 'TEST1_IDX';
PARTITION_NAME
--------------
P1
P2