当我在oracle表上创建索引并且只指定列名和表名(基本上是默认索引)时,它是创建全局索引还是本地分区索引(即根据表分区对索引进行分区) ?
答案 0 :(得分:6)
create table T_Test
(
pk_test number(10),
val number(10)
)
partition by hash (val)
(
partition p1,
partition p2,
partition p3
);
insert into t_test values (1,3);
insert into t_test values (2,2);
insert into t_test values (3,5);
insert into t_test values (5,6);
insert into t_test values (6,7);
insert into t_test values (7,4);
commit;
create index ix_test on t_test(val);
select partitioned from user_indexes where index_name = 'IX_TEST';
>> NO
因此,默认情况下,索引将被创建为全局索引。