标签:
杂谈 |
分类: 随笔 |
由于移动了IC_JSDB的分区所以的表空间,导致了
ALTER INDEX "BUSINESS"."IDX_IC_JSDB_PART"
导致如下错误
Fri Feb 19
22:04:03 2010
Errors in file
/u01/oracle/admin/bxrac/bdump/bxrac4_j002_29756.trc:
ORA-20000: index
"BUSINESS"."IDX_IC_JSDB_PART"
检查index的状态
SQL> select status from dba_indexes where
index_name='IDX_IC_JSDB_PART';
STATUS
------------------------
N/A
手工执行分析脚本;
SQL> exec
dbms_stats.gather_table_stats('business','IC_JSDB');
BEGIN dbms_stats.gather_table_stats('business','IC_JSDB'); END;
*
ERROR at line 1:
ORA-20000: index
"BUSINESS"."IDX_IC_JSDB_PART"
in unusable state
ORA-06512: at "SYS.DBMS_STATS", line 13437
ORA-06512: at "SYS.DBMS_STATS", line 13457
ORA-06512: at line 1
解决办法:
重新建立
SQL> alter index IDX_IC_JSDB_PART rebuild
online;
Index altered.
测试分析脚本是否可用
SQL> exec
dbms_stats.gather_table_stats('business','IC_JSDB');
处理问题参考:
--------------------------------------------------------------------------------------------------------------
ORA-20000 - index "SCOTT"."SSMTEST _U0" or partition of such index
is in unusable state. During generating
gather statistics on table.
ORA-20000: index "SCOTT"."SSMTEST_U0"
index is in unusable state
ORA-06512: at "SYS.DBMS_STATS", line 13189
ORA-06512: at "SYS.DBMS_STATS", line 13209
ORA-06512: at line 1
The general for this error I came across is having duplicate rows in table.
Use following steps to reslove this error.
1) Find out dpulicate rows from table.
2) drop index
3) delete duplicate rows from table.
4) Re-Create Index.
5) Generate statistic on table.
相关网站:
http://mfm088.itpub.net/post/22599/214126
http://read.newbooks.com.cn/info/153795.html
http://www.getdbahelp.com/OracleErrors/Oracle-Errors-details.php?recordID=00004