ORA-01502 Oracle Index in Unusable State ORA-01502-Oracle אינדקס שמיש המדינה
When trying to perform query on Oracle tables with select SQL statement, Oracle returns the following error: כאשר מנסה לבצע שאילתה על טבלאות עם אורקל בחר משפט SQL, אורקל מחזיר את השגיאה הבאה:
ORA-01502: index 'string.string' or partition of such index is in unusable state ORA-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 * Loader, טען ישיר או פעולות 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'. אם אין מספיק מקום ב tablespace TEMP, כל השורות עדיין יהיה טעון מיובאים, אך המדדים נשארו עם סטטוס = 'לא חוקי'.
Invalid indexes can be checked with a SELECT * from USER_INDEXES WHERE STATUS = 'INVALID'; SQL statement. אינדקסים לא חוקיים ניתן לבדוק עם select * from USER_INDEXES WHERE status = 'לא חוקי'; משפט 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 ALTER INDEX REBUILD לבנות מחדש
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- Oracle ORA-14074 Create or Add New Partition Fails Error אורקל ORA-14074 יצירת מחיצה חדשה או הוסף נכשל שגיאה
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error צור, הוספה או פיצול Oracle Database החלוקה נכשל עם שגיאה ORA-14080
- How to Escape Characters in Oracle PL/SQL Queries איך לברוח דמויות Oracle PL / שאילתות SQL
- ORA-02449 Oracle Drop Table Error ORA-02449-Oracle זרוק טבלה שגיאה
- Check Oracle Version בדוק אורקל גירסה
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 או לוח האם לא הצג שגיאה אורקל Exist
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 לא מספיק ערכי שגיאה
- Oracle JDeveloper Reviews Oracle JDeveloper סקירות
- Manual and Clean Uninstall Oracle for Windows ידנית ולנקות הסר אורקל עבור Windows










































April 16th, 2009 03:14 16 אפריל 2009 03:14
Your first statement needs to check for 'UNUSABLE' and not 'INVALID' in USER_INDEXES. ההודעה הראשונה שלך צריך לבדוק אם 'לא שמיש' ולא 'לא חוקי' ב USER_INDEXES.
January 31st, 2009 04:24 31 ינואר 2009 04:24
I think Oracle is having only index status as Usable/Unusabe. אני חושב שיש מצב אורקל הוא המדד היחיד כפי Usable / Unusabe.
“Skip Unusable index” will allow the all the DML(Inclusing Select) operations on the table. "דלג מדד שמיש" תאפשר כל DML (Inclusing בחר) פעולות על השולחן.
Thanks & Regards, Thanks & Regards,
Deepak דיפק
August 21st, 2008 14:49 21 אוגוסט 2008 14:49
thanks… the alter table fix worked תודה ... לשנות שולחן לתקן עבד
February 6th, 2008 06:31 6 פבואר 2008 06:31
[...] ORA-01502 Oracle Index in Unusable State [...] [...] ORA-01502-Oracle אינדקס שמיש המדינה [...]
March 6th, 2007 16:51 6 מרס 2007 16:51
At least in oracle10 the status could also be 'UNUSABLE' לפחות oracle10 מצב יכול להיות גם 'לא שמיש'
September 19th, 2006 22:28 19 ספטמבר 2006 22:28
What about with Oracle 9i option SKIP UNUSABLE INDEXES? מה בקשר עם Oracle 9i אפשרות לדלג שמיש אינדקסים? Pls Explain. Pls תסביר.