I will explain How to Find Indexes on a Table in Oracle in this post.
How to Find Indexes on a Table in Oracle
Indexes are very important for table and Oracle databases. If you want to learn more details about Indexes and Type of Indexes, read the following post.
Mostly we need to find out the index of any table, you can list the indexes of any table as follows.
select * from dba_indexes where table_name='TABLE_NAME' and table_owner='TABLE_OWNER'; select table_name, index_name, column_name from all_ind_columns where table_name=upper('TABLE_NAME');
If you don’t find the related index of table, then check and make sure the table name is in uppercase.
You can find out the column_name and column_position of related index as follows.
select table_name, index_name,column_name,column_position from dba_ind_columns where table_name='TABLE_NAME' and table_owner='TABLE_OWNER';
You can use the following Oracle views which gives you details about Indexes.
select * from all_ind_columns;
select * from dba_ind_columns;
select * from user_ind_column;
select * from dba_ind_partitions;
select * from dba_ind_subpartitions;
Read the following post if you want to learn what is the Index and Why Index ?
1,668 views last month, 1 views today