ORA-01502 Oracle Index in Unusable State庫存- 01502甲骨文指數在使用的國家
When trying to perform query on Oracle tables with select SQL statement, Oracle returns the following error:當試圖執行查詢關於Oracle表與選擇的SQL語句,甲骨文將返回以下錯誤:
ORA-01502: index ’string.string’ or partition of such index is in unusable state庫存- 01502 :指數' string.string '或分割等指數是在使用國家
The error indicates an attempt has been made to access an index or index partition that has been marked unusable by a direct load or by a DDL operation.該錯誤表明已試圖進入一個指數或索引的分區已標示使用由直接荷載,或由ddl運作。
The problem usually happens when using the Direct Path for the SQL*Loader, Direct Load or DDL operations.這個問題通常發生時,使用直接的路徑為SQL *裝載機,直接負載或DDL操作。 This requires enough temporary space to build all indexes of the table.這需要足夠的臨時空間,以建立各項指標的表。 If there is no enough space in TEMP tablespace, all rows will still be loaded and imported, but the indices are left with STATUS = ‘INVALID’.如果沒有足夠的空間,在氣溫表,所有的行,仍然會被載入和進口,但指數是左與地位= '無效' 。
Invalid indexes can be checked with a SELECT * from USER_INDEXES WHERE STATUS = ‘INVALID’; SQL statement.無效的指標,可以檢查與專責*從user_indexes那裡的地位= '無效' ; SQL語句。
Solution to this error is simple.要解決這個錯誤很簡單。 You can:您可以:
- Drop the specified index and/or recreate the index下拉指定索引和/或再現指數
- Rebuild the specified index重建指定索引
- Rebuild the unusable index partition重建使用的分區指數
Generally, the following SQL manipulation language will be able to rebuild the unusable index:一般來說,下列SQL操作語言將能夠重建使用的指數:
ALTER INDEX index_name改變指數index_name REBUILD 重建
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 . 。
Related Articles相關文章
- Oracle Database Import Error 3113/3114 Oracle數據庫的進口錯誤三千一百一十四分之三千一百十三
- Manual and Clean Uninstall Oracle for Windows手冊和乾淨的卸載甲骨文為Windows
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error創建,添加或分裂Oracle數據庫分區失敗,庫存- 14080錯誤
- ORA-02449 Oracle Drop Table Error庫存- 02449甲骨文下拉表錯誤
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error甲骨文庫存- 01658無法建立初步的程度,為部分在表錯誤
- ORA-00942 Table or View Does Not Exist Oracle Error庫存- 00942表或視圖不存在Oracle錯誤
- How to Rename or Move Oracle Tablespace Datafile to Another Location如何重新命名或移動甲骨文表datafile到另一個位置
- Oracle ORA-14074 Create or Add New Partition Fails Error甲骨文庫存- 14074創建或添加新的分區失敗的錯誤
- Oracle Database Link Oracle數據庫的連接
- Oracle PL/SQL ORA-00947 Not Enough Values Error甲骨文PL / SQL的庫存- 00947沒有足夠的價值觀錯誤



















September 19th, 2006 22:28 2006年9月19日22時28分
What about with Oracle 9i option SKIP UNUSABLE INDEXES?如何與甲骨文公司的9 i選項跳過使用的指標呢? Pls Explain.薪酬水平調查的解釋。
March 6th, 2007 16:51 2007年3月6日16時51分
At least in oracle10 the status could also be ‘UNUSABLE’至少在oracle10的地位,也可以『使用』
February 6th, 2008 06:31 2008年2月6日6時31分
[...] ORA-01502 Oracle Index in Unusable State [...] [ … … ]庫存- 01502甲骨文指數在使用的國家[ … … ]
August 21st, 2008 14:49 2008年8月21日14時49分
thanks… the alter table fix worked感謝…該改變表修復工作