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