インデックス名前空間

(8.0.21)

drop table tab1;
drop table tab2;

create table tab1(col1 int);
create table tab2(col1 int);

create index ind1 on tab1(col1);
create index ind1 on tab2(col1);

→インデックス名はテーブルごとにローカル

 

(19c)

drop table tab1 purge;
drop table tab2 purge;

create table tab1(col1 int);
create table tab2(col1 int);

create index ind1 on tab1(col1);
create index ind1 on tab2(col1);

ORA-00955: すでに使用されているオブジェクト名です。

→インデックス名はグローバル

 

(13)

drop table tab1;
drop table tab2;

create table tab1(col1 int);
create table tab2(col1 int);

create index ind1 on tab1(col1);
create index ind1 on tab2(col1);

ERROR: relation "ind1" already exists

→インデックス名はグローバル

 

(2019)

drop table tab1;
drop table tab2;

create table tab1(col1 int);
create table tab2(col1 int);

create index ind1 on tab1(col1);
create index ind1 on tab2(col1);

→インデックス名はテーブルごとにローカル