dbTalk Databases Forums  

View Indexes

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss View Indexes in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steff007jim@gmail.com
 
Posts: n/a

Default View Indexes - 04-14-2009 , 12:03 PM






I'm trying to view all the indexes in an Oracle table. I try the
command "select * from USER_INDEXES" and I get no results. I no there
area tons of tables and indexes in this database (which by the way was
created by SYSADM. How can I view them.

Thanks,

Jim Steffes
steff007 (AT) umn (DOT) edu

Reply With Quote
  #2  
Old   
ddf
 
Posts: n/a

Default Re: View Indexes - 04-14-2009 , 01:52 PM






On Apr 14, 12:03*pm, steff007... (AT) gmail (DOT) com wrote:
Quote:
I'm trying to view all the indexes in an Oracle table. I try the
command "select * from USER_INDEXES" and I get no results. I no there
area tons of tables and indexes in this database (which by the way was
created by SYSADM. How can I view them.

Thanks,

Jim Steffes
steff... (AT) umn (DOT) edu
That depends. Your non-DBA account probably does not have access to
every table in the database, thus it can't 'see' every associated
index. You can use the ALL_INDEXES view, which reports the indexes on
tables you can access (which includes tables your account does not own
but that your account has been granted privileges on). To really see
everything you need to have a DBA-privileged account so you can query
the DBA_INDEXES view, which does show every index in the database,
regardless of who owns it. Of course you'll want more information
than any of the %_INDEXES views provides which leads you to the
ALL_IND_COLUMNS view and, if you're lucky enough to have DBA
privileges, the DBA_IND_COLUMNS view.


David Fitzjarrell


Reply With Quote
  #3  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: View Indexes - 04-14-2009 , 02:01 PM



steff007jim (AT) gmail (DOT) com wrote:
: I'm trying to view all the indexes in an Oracle table. I try the
: command "select * from USER_INDEXES" and I get no results. I no there
: area tons of tables and indexes in this database (which by the way was
: created by SYSADM. How can I view them.

USER_xxx views will show you the things that your username owns, which are
typically the objects your username creates.

If an account called SYSADM was used to create an object then most likely
that account now owns the object, and the object will appear in a USER_xxx
view only if you login as SYSADM.

You should find the objects in the appropriate ALL_xxx view, assuming you
have what ever permissions are needed to do that.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.