문제

How to find out which 'tablespace' a particular 'index' belongs to. (oracle) (need to use it via jdbc)

도움이 되었습니까?

해결책

The information is in the ALL_INDEXES (or USER_INDEXES) view:

select tablespace_name
from all_indexes
where owner = 'MYSCHEMA'
and index_name = 'MYINDEX';

다른 팁

user_indexes.tablespace_name is null for partitioned indices.

Viewing Information About Partitioned Tables and Indexes suggests that user_ind_partitions view can be used to check containing tablespace for each separate index partition:

select index_name, partition_name, tablespace_name from user_ind_partitions
    where index_name = 'MYINDEX';
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top