转载 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 ...
随机推荐
- 算法Sedgewick第四版-第1章基础-2.1Elementary Sortss-002插入排序法(Insertion sort)
一.介绍 1.时间和空间复杂度 运行过程 2.特点: (1)对于已排序或接近排好的数据,速度很快 (2)对于部分排好序的输入,速度快 二.代码 package algorithms.elementar ...
- 精美3D中国象棋
本人2013年的巅峰之作,现在已经完全免费放送.象棋界面的史诗革命.当前下载版本仅支持Windows 平台. 操作: 方向键的 上,下,左,右 控制棋盘翻转.Home 键回到初始状态,End按键回到平 ...
- js/jq基础(日常整理记录)-3-一个自定义表格
一.一个自定义的表格 这个js是我刚工作的时候,我们老大让我做一个功能,我觉得html自带的table功能单一,没有分页和排序功能,所有就尝试着做一下,所以这个东西就出来了.很久没写博客了,贴出来吧, ...
- [学习笔记]fork深入理解
#include<stdio.h> #include<stdlib.h> #include<string.h> #include <unistd.h> ...
- Eclipse遇坑记录
1.安装Ivy插件 插件地址:http://ant.apache.org/ivy/ivyde/download.cgi 在线安装提示成功,但是配置窗口并未显示Ivy相关配置,随后利用手动安装重启即可 ...
- python(二):可变参数
python中的函数定义: def func(参数, 默认参数, 可变参数) ... 可变参数有两种定义方式: def func(*args): ... 调用方式为func(arg1, arg2, a ...
- Android消息传递之EventBus 3.0
Android消息传递之EventBus 3.0使用详解 http://www.cnblogs.com/whoislcj/p/5595714.html EventBus 3.0进阶:源码及其设计模式 ...
- js对象的深浅拷贝
JS数据类型可以分为(ES5,暂时不考虑ES6): 简单数据类型:Number.String.undefined.boolean 复杂数据类型:Object.Array 简单的数据类型,往往是赋值操作 ...
- SAP 740GUI客户端快捷方式取消密码登陆
客户端电脑:WIN10 专业版64位. 1. 进入注册表编辑器(regedit) .进入如下路径:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPLogo ...
- 13.Convert BST to Greater Tree(将树转为更大树)
Level: Easy 题目描述: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every k ...