4

当我在 oracle 表上创建索引并仅指定列名和表名(基本上是默认索引)时,它是创建全局索引还是本地分区索引(即索引根据表分区进行分区)?

4

1 回答 1

9
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

所以默认情况下,索引将被创建为全局索引。

于 2013-08-26T07:30:39.473 回答