2014-12-12 3 views

답변

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 
관련 문제