How to get a list of all indexes of any kinds on a specific table?

I want to get a list of all indexes of any kinds on a specific table.  How should I do this?  Thanks.
thomaszhwangAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

netcmhCommented:
you could try
select index_name from dba_indexes where table_name='tablename'; 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightwv (䄆 Netminder) Commented:
dba_indexes is the view that holds all information about all indexes:

select table_name, index_name from dba_indexes;

But, I'm afraid this really isn't what you are asking.  Can you provide a little more information about specifically what 'specific' and 'kinds' you are after?
0
thomaszhwangAuthor Commented:
>> Can you provide a little more information about specifically what 'specific' and 'kinds' you are after?

I'm new to Oracle.  I suppose there would be different kinds of index available on Oracle (such as cluster/non-cluster on MS SQL Server).  I just want to see all of them for a table I'm interested in.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

netcmhCommented:
This is a little more than what you're asking for but it does provide you with all the indexes for this table. It's from a friend's blog (Ramasubbu) http://learndbas.blogspot.com/2009/01/show-all-indexes-and-their-columns-for.html

SET LINESIZE 200
SET VERIFY OFF
COLUMN OWNER FORMAT A8 heading "Index|Owner"
COLUMN TABLE_OWNER FORMAT A8 heading "Table|Owner"
COLUMN INDEX_NAME FORMAT A30 heading "Index Name"
COLUMN COLUMN_NAME FORMAT A30 heading "Column Name"
COLUMN COLUMN_POSITION FORMAT 9999 heading "Pos"
BREAK ON CONSTRAINT_NAME SKIP PAGE

SELECT IND.OWNER,
 IND.TABLE_OWNER,
 IND.INDEX_NAME,
 IND.UNIQUENESS,
 COL.COLUMN_NAME,
 COL.COLUMN_POSITION
FROM SYS.DBA_INDEXES IND,
 SYS.DBA_IND_COLUMNS COL
WHERE IND.TABLE_NAME = upper('&table')
AND IND.TABLE_OWNER = upper('&owner')
AND IND.TABLE_NAME = COL.TABLE_NAME
AND IND.OWNER = COL.INDEX_OWNER
AND IND.TABLE_OWNER = COL.TABLE_OWNER
AND IND.INDEX_NAME = COL.INDEX_NAME; 

Open in new window

0
thomaszhwangAuthor Commented:
Thanks.
0
netcmhCommented:
Thanks for the grade. Good luck.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.