Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: index status misleading?
Looking at the status column in DBA_OBJECTS will show if the object is valid
or not.
Unusable index is still a valid object.
You should get the status from dba_indexes.
Try this:
create table testttt ( c1 number);
create index testgg on testcase.testttt ( c1);
alter index testgg unusable;
select status from dba_objects where object_name = 'TESTGG'; select status from dba_indexes where index_name = 'TESTGG';
Regards,
Waleed
-----Original Message-----
Sent: Friday, April 26, 2002 11:28 AM
To: Multiple recipients of list ORACLE-L
Hi all:
Last night I have moved couple of tables from one TS to another. Then I thought I'd check whether I need to rebuild any indices. I ran the following query:
select distinct status from dba_objects
where owner = 'MYOWNER'
Oracle returned I row with value VALID. From that I concluded that there were no indices to be rebuilt. This morning however it turns out that there indeed were indices in UNUSABLE state. What I don't understand is why didn't I see UNUSABLE in the output of my query. Can anyone explain please?
thanks
Gene
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Apr 26 2002 - 15:25:38 CDT