Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: new to indexes
kev <kevin.porter_at_fast.no> a écrit dans le message :
38CCD4B9.926326D1_at_fast.no...
> Hi,
>
> I'm looking at how to index my (quite complicated) data. I'd like to
> know if there is a V$ view which will show me what indexes are already
> in existence. I couldn't find one - if there isn't, how else do I find
> this information?
The following query gives you all indexes on each of your tables:
select table_name, index_name from user_indexes
order by 1, 2
/
> Also, if I've defined a primary key for each table, is an index created
> automatically for them?
When you define a primary key, if there is no already created index that can implement this primary key, Oracle automatically creates one.
>
> thanks,
>
> - Kev
>
--
Have a nice day
Michel
Received on Mon Mar 13 2000 - 07:28:12 CST