Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 234 Big Data Appliance
- 1.9K Data Science
- 449.7K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.3K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 157 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 387 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
Unusable Indexes

Jaffy
Member Posts: 1,234
Hi,
I have been experiencing some indexes being unusable due to which queries and jobs taking much longer to finish. As it is very big indices its a big overhead to rebuild those indices on time, so please can anyone help here what may be cause of indices being unusable how to resolve it and factors should we look into to avoid the problem in near future.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on Solaris.
Thanks and Regards
Jafar
http://www.oracledbarea.blogspot.com
I have been experiencing some indexes being unusable due to which queries and jobs taking much longer to finish. As it is very big indices its a big overhead to rebuild those indices on time, so please can anyone help here what may be cause of indices being unusable how to resolve it and factors should we look into to avoid the problem in near future.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on Solaris.
Thanks and Regards
Jafar
http://www.oracledbarea.blogspot.com
Tagged:
Answers
-
Hi,
What is the jobs type ? sql*loader indirect mode can produce unusable indexes.
Can you provide more details on your processes ?
Rgds -
Are these indexes on partitioned tables? Partition maintenance operations can make indexes unusable.
-
hi,
no they are not partitioned indices, or can we find when the index was unsable, exact time possible.
thanks
Jafar -
If the index became unusable as a result of ALTER INDEX ... UNUSABLE operation, then LAST_DDL_TIME in DBA_OBJECTS will be updated. Otherwise, if it is a result of operations on the underlying table, that column will not be updated, and I don't think there is a way to find out exact time when the index became unusable.
-
This would have happened when there is a ALTER tabe Move option or there might jobs running through sqlloader
Anything happening like this -
Index become unusable when the rowid is changing
The rowid can change when the table is move or shrinked, for example
are you doing some job like this on the table ? did you enable row movement ?
-
Hi Jafar,Indexes can become invalid or unusable whenever a DBA tasks shifts the ROWID values, thereby requiring an index rebuild.can anyone help here what may be cause of indices being unusable how to resolve it andDon't do anything (reorgs) that will cause a change in a rows ROWID.factors should we look into to avoid the problem in near future.Yeah, as "unusable", they are not available.I have been experiencing some indexes being unusable due to which queries and jobs taking much longer to finish.You can rebuild them super-fast in parallel, if you have an SMP server.As it is very big indices its a big overhead to rebuild those indices on time
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
Hi,
Thanks all for your inputs. So index become unsuable when we issue
1) enable row movement.
2) shrinking the indices.
3) alter table move.
4) During loading through sqlldr.
Now out of the above four options we exercise only one i.e. shrinking the indices to relciam some space, but we shrink other indices also that doesn't become unusable then why only selected indices become unusable.
And one more thing, if there is job running which loads data into table then thier respective indices become unusable, so what we have to do so that indices stays valid thorugh loading.
Thanks
Jafar
www.idatamax.com -
I do not understand what "shrink indices" is.
A Rebuild of an Index does not cause it to be UNUSABLE.
Similarly, an ALTER TABLE .. SHRINK SPACE shoud not cause the indexes on the table to be UNUSABLE.
An SQLloader DIRECT=Y option makes indexes UNUSABLE and leaves the indexes UNUSABLE if the load fails. Else, the load would merge the new entries indexes as well. That is similar to an APPEND insert which updates the indexes at the end of the operation.
The one operation that will always leave indexes UNUSABLE is an ALTER TABLE .. MOVE as there is no option to REBUILD Indexes automatically with the move. Indexes must be rebuilt as part of the job/script that does the MOVE. -
Hi,
Thanks that was helpful, so to keep indices unusable during sqlldr operations we should issue direct=y option, and i know it would slow the loading operation. What is the difference between index in invalid status and index in unusable state.
Thanks
Jafar
www.idatamax.com
This discussion has been closed.