ORA-01502 Oracle Index in Unusable State ORA-01.502 Oracle Index Nederīgas valsts
When trying to perform query on Oracle tables with select SQL statement, Oracle returns the following error: Ja mēģināt veikt pieprasījumu uz Oracle tabulām ar izvēlieties SQL, Oracle atgriež šādu kļūdu:
ORA-01502: index 'string.string' or partition of such index is in unusable state ORA-01.502: index "string.string 'vai sadalījuma šādu indekss ir nelietojams valsts
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. Kļūda norāda mēģinājums ir veikts, lai piekļūtu indeksu vai indeksu nodalījumā, kas ir atzīmēti nelietojamām tieši slodze vai DDL darbību.
The problem usually happens when using the Direct Path for the SQL*Loader, Direct Load or DDL operations. Problēma parasti notiek, izmantojot Direct Ceļš uz SQL * Loader, Direct Load vai DDL operācijas. This requires enough temporary space to build all indexes of the table. Tas prasa pietiekami daudz pagaidu vietas, lai izveidotu visu tabulu indeksi. 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'. Ja nav pietiekami daudz vietas TEMP tablespace, visas rindas joprojām tiks ielādēta un importē, bet indeksus, atstāj STATUS = 'INVALID'.
Invalid indexes can be checked with a SELECT * from USER_INDEXES WHERE STATUS = 'INVALID'; SQL statement. Nederīgs indeksi var pārbaudīt ar SELECT * FROM USER_INDEXES WHERE status = 'Nekorekts'; SQL.
Solution to this error is simple. Risinājums šo kļūdu ir vienkārša. You can: Jūs varat:
- Drop the specified index and/or recreate the index Drop norādīto indeksu un / vai izveidot indeksu
- Rebuild the specified index Atjaunot noteiktā indekss
- Rebuild the unusable index partition Atjaunot nelietojamu indekss partition
Generally, the following SQL manipulation language will be able to rebuild the unusable index: Vispār, šādas SQL manipulācijas valoda, varēs atjaunot neizmantojamu indekss:
ALTER INDEX index_name ALTER INDEX index_name REBUILD Pārbūvēt
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14.074 izveidošana vai Add New Partition nav kļūda
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Izveidot, pievienošana vai Split Oracle Database Partition neizdodas, ORA-14.080 Kļūda
- How to Escape Characters in Oracle PL/SQL Queries Kā izvairīties rakstzīmes Oracle PL / SQL vaicājumi
- ORA-02449 Oracle Drop Table Error ORA-02.449 Oracle Drop tabula Kļūda
- Check Oracle Version Check Oracle Version
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00.942 tabulā vai View neeksistē Oracle Kļūda
- Oracle Database Import Error 3113/3114 Oracle Database Import Error 3113/3114
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Not Enough vērtību kļūda
- Oracle JDeveloper Reviews Oracle JDeveloper Atsauksmes
- Manual and Clean Uninstall Oracle for Windows Rokasgrāmata un Clean Uninstall Oracle for Windows










































April 16th, 2009 03:14 Aprīlis 16, 2009 03:14
Your first statement needs to check for 'UNUSABLE' and not 'INVALID' in USER_INDEXES. Savu pirmo paziņojumu, vajadzības atzīmējiet lietošanai nederīgi "un nevis" spēkā neesošs "in USER_INDEXES.
January 31st, 2009 04:24 Janvāris 31, 2009 04:24
I think Oracle is having only index status as Usable/Unusabe. Es domāju, ka Oracle ir ir tikai indekss statuss Usable / Unusabe.
“Skip Unusable index” will allow the all the DML(Inclusing Select) operations on the table. "Skip Nederīgas index" varēs visus BDL (Inclusing Izvēlieties) darbībām, uz galda.
Thanks & Regards, Thanks & Regards,
Deepak Deepak
August 21st, 2008 14:49 Augusts 21, 2008 14:49
thanks… the alter table fix worked thanks ... ALTER TABLE noteikt nostrādāto
February 6th, 2008 06:31 6 februāris 2008 06:31
[...] ORA-01502 Oracle Index in Unusable State [...] [...] ORA-01.502 Oracle Index Nederīgas Valsts [...]
March 6th, 2007 16:51 6 marts 2007 16:51
At least in oracle10 the status could also be 'UNUSABLE' Vismaz oracle10 stāvoklis varētu būt arī "nelietojamus"
September 19th, 2006 22:28 19 septembris 2006 22:28
What about with Oracle 9i option SKIP UNUSABLE INDEXES? Ko par to ar Oracle 9i iespēja SKIP nelietojamus Indeksi? Pls Explain. Pls paskaidrot.