转载 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 ...
随机推荐
- 数字图像处理实验(4):PROJECT 02-04 [Multiple Uses],Zooming and Shrinking Images by Bilinear Interpolation 标签: 图像处理MATLAB
实验要求: Zooming and Shrinking Images by Bilinear Interpolation Objective To manipulate another techniq ...
- 数字图像处理实验(2):PROJECT 02-02, Reducing the Number of Gray Levels in an Image 标签: 图像处理MATLAB 2017-
实验要求: Reducing the Number of Gray Levels in an Image Objective To understand how the number of gray ...
- Luogu 2322 [HNOI2006]最短母串问题
唔,太菜了,弄了好几个小时. 状压dp,设$f_{s, i}$表示选了集合$s$,以$i$结尾的最短长度,设$g_{i, j}$表示串$i$的后缀和串$j$的前缀的最长匹配长度. $f_{s, i} ...
- CF321E Ciel and Gondolas & BZOJ 5311 贞鱼
一眼可以看出$O(kn^{2})$的$dp$方程,然后就不会了呜呜呜. 设$f_{i, j}$表示已经选到了第$i + 1$个数并且选了$j$段的最小代价,那么 $f_{i, j} = f_{p, j ...
- java快排(两种方法)
快排是最基础的排序算法之一,今天来回顾一下. public class QuickSort { public static void quickSort(int[] array){ if(array ...
- [译]javascript中的条件语句
本文翻译youtube上的up主kudvenkat的javascript tutorial播放单 源地址在此: https://www.youtube.com/watch?v=PMsVM7rjupU& ...
- 文本PDG文件名构成
作者:马健邮箱:stronghorse_mj@hotmail.com发布:2008.08.03 文本PDG的构成规则为:<前缀><起始页号>_<页数>.pdg 前缀 ...
- C#读取文本文件某一行
某一时候,我们只会读取文本文件内某一行.怎样读?还是用for或foreach循环?其实操作起来,很简单,先看看文本文件,如果你也想用下面的文档来做测试,你可以在这个链接进行拷贝:<VB.NET提 ...
- 「JOI 2017 Final」JOIOI 王国
「JOI 2017 Final」JOIOI 王国 题目描述 题目译自 JOI 2017 Final T3「 JOIOI 王国 / The Kingdom of JOIOI」 JOIOI 王国是一个 H ...
- ubuntu - 常用问题解决命令
查看本机网络通畅 - 网络是否可连接(远程链接时,检验防火墙) ping -c 10 localhost 查看本机进程/端口占用情况(看某一进程是否开启) netstat -tln 具体查看某一进程 ...