转载 Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusable
http://www.xifenfei.com/2011/12/some-indexes-or-index-subpartitions-of-table-vas-tab_pub_calllog-have-been-marked-unusable.html
1、检查alert日志发现错误
Wed Nov 30 13:36:47 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:48 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:48 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:49 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:50 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:51 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:52 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:52 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:53 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:54 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:55 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:56 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:56 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:57 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:57 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:36:58 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 13:37:12 2011Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusableWed Nov 30 22:00:09 2011…………Wed Nov 30 22:00:15 2011GATHER_STATS_JOB encountered errors. Check the trace file.Wed Nov 30 22:00:15 2011Errors in file /opt/oracle/admin/ora9i/bdump/ora9i_j001_21372.trc:ORA-20000: index "VAS"."XN_CALLLOG_ANALYSIS_PK" or partition of such index is in unusable state |
2、查看trace文件
/opt/oracle/admin/ora9i/bdump/ora9i_j001_21372.trcOracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsORACLE_HOME = /opt/oracle/product/10.2.0/db_1System name: LinuxNode name: localhost.localdomainRelease: 2.6.18-92.el5Version: #1 SMP Tue Apr 29 13:16:15 EDT 2008Machine: x86_64Instance name: ora9iRedo thread mounted by this instance: 1Oracle process number: 42Unix process pid: 21372, image: oracle@localhost.localdomain (J001)*** 2011-11-30 22:00:15.782*** ACTION NAME:(GATHER_STATS_JOB) 2011-11-30 22:00:15.763*** MODULE NAME:(DBMS_SCHEDULER) 2011-11-30 22:00:15.763*** SERVICE NAME:(SYS$USERS) 2011-11-30 22:00:15.763*** SESSION ID:(532.60095) 2011-11-30 22:00:15.763ORA-20000: index "VAS"."XN_CALLLOG_ANALYSIS_PK" or partition of such index is in unusable state*** 2011-11-30 22:00:15.782GATHER_STATS_JOB: GATHER_TABLE_STATS('"VAS"','"TAB_XN_CALLLOG_ANALYSIS"','""', ...)ORA-20000: index "VAS"."XN_CALLLOG_ANALYSIS_PK" or partition of such index is in unusable state |
3、日志初步结论
通过alert日志,感觉应该是对分区表操作,导致”VAS”.”XN_CALLLOG_ANALYSIS_PK”索引变成了unusable state,然后在数据库自动收集统计信息的时候报错(最大可能是全局index导致)
4、验证猜测是否正确
SQL> SELECT owner,index_name,table_name,status FROM DBA_indexes 2 WHERE index_name='XN_CALLLOG_ANALYSIS_PK' AND owner='VAS'; OWNER INDEX_NAME TABLE_NAME STATUS------------------------------ ------------------------------ ------------------------------ --------VAS XN_CALLLOG_ANALYSIS_PK TAB_XN_CALLLOG_ANALYSIS UNUSABLE |
5、解决相关问题问题
SELECT 'ALTER INDEX ' || INDEX_OWNER || '.' || INDEX_NAME ||'REBUILD PARTITION ' || PARTITION_NAME || ' NOLOGGING online;'FROM DBA_IND_PARTITIONSWHERE INDEX_OWNER NOT IN ('SYS', 'SYSTEM', 'PUBLIC')AND STATUS = 'UNUSABLE'UNION ALLSELECT 'alter index ' ||OWNER || '.' || A.INDEX_NAME || ' REBUILD online nologging;'FROM DBA_INDEXES AWHERE OWNER NOT IN ('SYS', 'SYSTEM', 'PUBLIC')AND STATUS = 'UNUSABLE'; |
执行生成sql,解决相关index unusable问题
转载 Some indexes or index [sub]partitions of table VAS.TAB_PUB_CALLLOG have been marked unusable的更多相关文章
- How MySQL Uses Indexes CREATE INDEX SELECT COUNT(*)
MySQL :: MySQL 5.7 Reference Manual :: 9.3.1 How MySQL Uses Indexeshttps://dev.mysql.com/doc/refman/ ...
- Hashed Indexes Geospatial Index
Indexes — MongoDB Manual https://docs.mongodb.com/manual/indexes/ 地理索引 哈希索引
- dbms_redefinition在线重定义表结构 可以在表分区的时候使用
dbms_redefinition在线重定义表结构 (2013-08-29 22:52:58) 转载▼ 标签: dbms_redefinition 非分区表转换成分区表 王显伟 在线重定义表结构 在线 ...
- dbms_redefinition在线重定义表结构
dbms_redefinition在线重定义表结构 (2013-08-29 22:52:58) 转载▼ 标签: dbms_redefinition 非分区表转换成分区表 王显伟 在线重定义表结构 在线 ...
- logminer使用测试库进行挖掘分析,10.2.0.5
上一篇测试是在dg环境进行测试挖掘,但是如果客户存在一个测试库,那样使用日志挖掘的影响性更小.本篇进行测试分析. 测试环境介绍: oracle linux 5.6,vmware虚拟机,安装两套单实例 ...
- [Hive - LanguageManual] Create/Drop/Grant/Revoke Roles and Privileges / Show Use
Create/Drop/Grant/Revoke Roles and Privileges Hive Default Authorization - Legacy Mode has informati ...
- InnoDB On-Disk Structures(二)--Indexes (转载)
转载.节选于 https://dev.mysql.com/doc/refman/8.0/en/innodb-indexes.html This section covers topics relate ...
- GC Buffer Busy Waits处理(转载)
与单实例不同,在RAC环境中,由于多节点的原因,会因为节点间的资源争用产生GC类的等待,而这其中,GC Buffer Busy Waits又是最为常见的,从性能角度上说,RAC是把双刃剑,用的好,能够 ...
- PostgreSQL Partitions
why we need partitions The first and most demanding reason to use partitions in a database is to inc ...
随机推荐
- ZBar开发详解
博客转载自:https://blog.csdn.net/skillcollege/article/details/38855023 什么是ZBar? ZBar是一个开源库,用于扫描.读取二维码和条形码 ...
- javascript 基础练习 做Bingo图
---恢复内容开始--- <!DOCTYPE html><html> <head> <meta charset="utf-8&q ...
- 使用Eclipse创建Maven javaweb项目
其实是我自己不会创建Maven JavaWeb项目,就自己瞎蒙了一下,竟然成功了. 这里有个条件就是你的Maven已经在电脑上配好了. 第一步就是File->New->Maven Proj ...
- input 输入框两种改变事件的方式
一.在输入框内容变化的时候不会触发,当鼠标在其他地方点一下才会触发 $('input[name=myInput]').change(function() { ... }); 二.在输入框内容变化的时候 ...
- str() 和repr()的区别
>>> a='bbc' >>> a'bbc'>>> print abbc str()一般是将数值转成字符串:repr()是将一个对象转成字符串显示 ...
- java 抽象方法
int 是基本数据类型Integer是其包装类,注意是一个类.为什么要提供包装类呢???一是为了在各种类型间转化,通过各种方法的调用.否则 你无法直接通过变量转化.比如,现在int要转为Stringi ...
- 导出Excel多个表多个sheet
protected void Page_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); ...
- Visual Studio 代码格式化插件(等号自动对齐、注释自动对齐等)
1.下载地址 插件:Code alignment 下载地址 2.介绍 Based on principles borrowed from mathematics and other discipli ...
- SpringMVC 配置式开发-HandlerMapping的执行流程(八)
具体看这两块是怎么执行的 下图是实现了DispatcherServlet从HandleMapping获得处理器执行链的逻辑的源代码 下面是DispatcherServlet从HandleAdaptor ...
- 使用canvas压缩图片 并上传
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...