Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle find tablename given an index name

I have the name of an index that is existing on some table on some column in the db(oracle 11g). Knowing the name of the index, how can i find which table it belongs to?

like image 226
Victor Avatar asked Oct 22 '11 16:10

Victor


People also ask

Is there any way to find out column is indexed or not?

Answers. In Management studio, go to the table you can see + symbol for the table click on that you can see Columns,Keys,Constraints,Triggers,Indexes,Statistics.

How do you check if index exists on a table in Oracle?

To show indexes for a particular table in Oracle use the following command: select index_name from dba_indexes where table_name='tablename'; When showing indexes, make sure that you are giving the right <tablename>.

How do you find the index of a DDL?

You simply execute dbms_metadata. get_ddl, specify the object names, and Oracle will extract ready-to-use DDL. select dbms_metadata.


1 Answers

SELECT table_name
FROM all_indexes
WHERE index_name = 'YOUR_INDEX'
like image 191
a_horse_with_no_name Avatar answered Sep 18 '22 22:09

a_horse_with_no_name