Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Index count is different in DBA_OBJECTS and DBA_INDEXES

York35Nov 23 2012 — edited Nov 23 2012
For one of our schemas, the INDEX count is 1435 as per user_objects view. But the USER_INDEXES confirm that there are actually 1446 indexes. So, where does this difference of 11 come from in user_objects view ?


DB version: 11.2.0.2
Platform : RHEL 5.4

SQL> select count(*) from user_indexes;

  COUNT(*)
----------
      1446




SQL> select object_type, count(*) from user_objects group by object_type order by count(*) desc;

OBJECT_TYPE           COUNT(*)
------------------- ----------
INDEX                     1435      -----------> Here index count is 11 short than the actual count. This is wrong
TABLE                     1037
VIEW                        29
TRIGGER                     11
.
.
.
.
Has this got anything to do with INVISIBLE indexes ? But I don't see any INVISIBLE indexes in this schema.

SQL> select distinct VISIBILITY from USER_INDEXES;

VISIBILIT
---------
VISIBLE


SQL > show parameter invisible

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
optimizer_use_invisible_indexes      boolean     FALSE
Any idea about the difference in these counts ?

Edited by: GarryB on Nov 23, 2012 1:07 AM
This post has been answered by Fran on Nov 23 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2012
Added on Nov 23 2012
5 comments
4,326 views