ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle indeksas Nenaudojamos narė
When trying to perform query on Oracle tables with select SQL statement, Oracle returns the following error: Bandant atlikti užklausą Oracle lenteles, pasirinkite SQL, Oracle, grąžina tokį klaidos pranešimą:
ORA-01502: index 'string.string' or partition of such index is in unusable state ORA-01502: Rodiklis "string.string" arba pertvarų tokių indeksas yra netinkami valstybės
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. Klaida rodo, buvo bandoma prisijungti prie indekso ar indekso disko, kuris buvo pažymėtas netinkami tiesiogiai apkrova ar DDL operacijos.
The problem usually happens when using the Direct Path for the SQL*Loader, Direct Load or DDL operations. Problema paprastai atsitinka, kai naudojamas tiesioginis kelias į SQL * Loader, tiesioginės krovinio ar DDL operacijas. This requires enough temporary space to build all indexes of the table. Tam reikia pakankamai laiko erdvėje kurti visi lentelės indeksus. 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'. Jeigu nėra pakankamai vietos TEMP tablespace, visas eilutes, vis dar bus pakrautas ir importuojami, tačiau indeksai kairę su status = 'neteisingas'.
Invalid indexes can be checked with a SELECT * from USER_INDEXES WHERE STATUS = 'INVALID'; SQL statement. Neteisingas indeksus galite patikrinti su "SELECT * FROM USER_INDEXES WHERE status = 'Neteisingas" SQL.
Solution to this error is simple. Spręsti šią problemą labai paprasta. You can: Jūs galite:
- Drop the specified index and/or recreate the index Drop nurodytą indeksą ir / ar atkurti rodyklė
- Rebuild the specified index Pertvarkytas konkretų indeksas
- Rebuild the unusable index partition Pertvarkytas netinkami indeksas pasiskirstymo
Generally, the following SQL manipulation language will be able to rebuild the unusable index: Apskritai, po SQL kalbą manipuliuoti galės atstatyti netinkami indeksas:
ALTER INDEX index_name ALTER RODYKLĖ index_name REBUILD Atstatymo «REBUILD
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Oracle ORA-14074 Create or Add New Partition Fails Error "Oracle" ORA-14074 Kurti arba Pridėti naują skyrių fails Klaida
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Kurti, Pridėti arba neskaldytos Oracle Pasiskirstymo fails su klaida ORA-14080
- How to Escape Characters in Oracle PL/SQL Queries Kaip išvengti Veikėjai Oracle PL / SQL Queries
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table Klaida
- Check Oracle Version Patikrinkite Oracle versija
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 lentelę ar vaizdas neegzistuoja Oracle Klaida
- Oracle Database Import Error 3113/3114 Oracle Database Importo Klaida 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Nepakanka vertės paklaida
- Oracle JDeveloper Reviews Oracle JDeveloper Atsiliepimai
- Manual and Clean Uninstall Oracle for Windows Rankinis ir švarios Pašalinti Oracle Windows










































April 16th, 2009 03:14 16 balandis 2009 03:14
Your first statement needs to check for 'UNUSABLE' and not 'INVALID' in USER_INDEXES. Jūsų pirmoji ataskaita turi patikrinti "netinkamomis naudoti", o ne "invalid" ir USER_INDEXES.
January 31st, 2009 04:24 31 sausis 2009 04:24
I think Oracle is having only index status as Usable/Unusabe. Manau, Oracle, turinti tik Rodyklė statusas Usable / Unusabe.
“Skip Unusable index” will allow the all the DML(Inclusing Select) operations on the table. "Praleisti Nenaudojamos indeksas" leis visiems DML (Inclusing Atrinkti) operacijos ant stalo.
Thanks & Regards, Thanks & Regards,
Deepak Deepak
August 21st, 2008 14:49 21 rugpjūtis 2008 14:49
thanks… the alter table fix worked Ačiū ... keisti lentelės nustatyti dirbo
February 6th, 2008 06:31 6 vasaris 2008 06:31
[...] ORA-01502 Oracle Index in Unusable State [...] [...] ORA-01502 Oracle indeksas Nenaudojamos valstybės [...]
March 6th, 2007 16:51 6 kovas 2007 16:51
At least in oracle10 the status could also be 'UNUSABLE' Bent oracle10 statusas taip pat galėtų būti "netinkamomis naudoti"
September 19th, 2006 22:28 19 rugsėjis 2006 22:28
What about with Oracle 9i option SKIP UNUSABLE INDEXES? Ką apie su Oracle 9i parinktį PRALEISTI netinkamomis naudoti RODIKLIAI? Pls Explain. Pls Paaiškinkite.