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 __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Gurelei INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Khedr, Waleed INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
