ORA-20000:index is in unusable
上午在進行例行資料庫檢查時,發現如下報錯資訊:
Mon Jul 07 22:00:56 2014
GATHER_STATS_JOB encountered errors. Check the trace file.
Errors in file /u01/app/oracle/diag/rdbms/uniora/uniora/trace/uniora_j002_29328.trc:
ORA-20000: index "HJZXMBGGMT"."INDEX_BUSI_ADVICE_FORM_ID" or partition of such index is in unusable state
檢視索引的狀態:
SQL> select owner,index_name,index_type,table_owner,table_name,tablespace_name,
2 status,last_analyzed from dba_indexes where status='UNUSABLE';
OWNER INDEX_NAME
------------------------------ ------------------------------
INDEX_TYPE TABLE_OWNER
--------------------------- ------------------------------
TABLE_NAME
------------------------------
TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS LAST_ANALYZED
-------- ------------------
HJZXMBGGMT INDEX_BUSI_ADVICE_FORM_ID
NORMAL HJZXMBGGMT
CC_BUSI_ADVICE
OWNER INDEX_NAME
------------------------------ ------------------------------
INDEX_TYPE TABLE_OWNER
--------------------------- ------------------------------
TABLE_NAME
------------------------------
TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS LAST_ANALYZED
-------- ------------------
HJZX
UNUSABLE 03-SEP-13
重建索引:
SQL> alter index HJZXMBGGMT.INDEX_BUSI_ADVICE_FORM_ID rebuild;
Index altered.
SQL> alter index HJZXMBGGMT.CC_BUSI_FORM_PIID rebuild;
Index altered.
Mon Jul 07 22:00:56 2014
GATHER_STATS_JOB encountered errors. Check the trace file.
Errors in file /u01/app/oracle/diag/rdbms/uniora/uniora/trace/uniora_j002_29328.trc:
ORA-20000: index "HJZXMBGGMT"."INDEX_BUSI_ADVICE_FORM_ID" or partition of such index is in unusable state
檢視索引的狀態:
SQL> select owner,index_name,index_type,table_owner,table_name,tablespace_name,
2 status,last_analyzed from dba_indexes where status='UNUSABLE';
OWNER INDEX_NAME
------------------------------ ------------------------------
INDEX_TYPE TABLE_OWNER
--------------------------- ------------------------------
TABLE_NAME
------------------------------
TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS LAST_ANALYZED
-------- ------------------
HJZXMBGGMT INDEX_BUSI_ADVICE_FORM_ID
NORMAL HJZXMBGGMT
CC_BUSI_ADVICE
OWNER INDEX_NAME
------------------------------ ------------------------------
INDEX_TYPE TABLE_OWNER
--------------------------- ------------------------------
TABLE_NAME
------------------------------
TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS LAST_ANALYZED
-------- ------------------
HJZX
UNUSABLE 03-SEP-13
SQL> alter index HJZXMBGGMT.INDEX_BUSI_ADVICE_FORM_ID rebuild;
Index altered.
SQL> alter index HJZXMBGGMT.CC_BUSI_FORM_PIID rebuild;
Index altered.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22969361/viewspace-1212304/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-20000: index "xxxx" or partition of such index is in unusable stateIndex
- oracle index unusableOracleIndex
- skip_unusable_index parameterIndex
- oracle invisible index與unusable index的區別OracleIndex
- unusable index對DML/QUERY的影響Index
- 【INDEX】索引失效或者不可用 UNUSABLEIndex索引
- ORA-01502 index is in unusable stateIndex
- Some indexes or index partitions of table have been marked unusableIndex
- 10g可以通過命令使index unusable!Index
- alter index unusable無法起作用的情況Index
- alter index unusable 無法起作用的情況 ztIndex
- ORA-01502 index state unusable錯誤成因和解決方法Index
- skip_unusable_indexesIndex
- SKIP_UNUSABLE_INDEXES InitializationIndex
- NBU detected IBM drives as unusableIBM
- ORA-20000的解決方法
- KEEP INDEX | DROP INDEXIndex
- ORA-20000: Insufficient privileges to analyze an object in SchemaObject
- import_schema_stats時報出ORA-20000:Import
- ddl 導致分割槽表全域性索引unusable索引
- rowid,index,INDEX FULL SCAN,INDEX FAST FULL SCAN|IndexAST
- 引數SKIP_UNUSABLE_INDEXES的一點測試!Index
- INDEX UNIQUE SCAN,INDEX FULL SCAN和INDEX FAST FULL SCANIndexAST
- Clustered Index Scan and Clustered Index SeekIndex
- oracle hint之full,index,index_asc,index_desc,index_combile示例OracleIndex
- IndexIndex
- Index的掃描方式:index full scan/index fast full scanIndexAST
- rebuild index 和 recreate index (重新建立index) 的區別RebuildIndex
- pk 、unique index 和 index 區別Index
- global index & local index的區別Index
- alter index rebuild與index_statsIndexRebuild
- SKIP_UNUSABLE_INDEXES的使用與索引失效解決方法Index索引
- B-index、bitmap-index、text-index使用場景詳解Index
- Index Full Scan vs Index Fast Full ScanIndexAST
- Using index condition Using indexIndex
- 【Oracle】global index & local index的區別OracleIndex
- Index Full Scans和Index Fast Full ScansIndexAST
- What is meant by Primary Index and Secondary IndexIndex