你好,游客 登录 注册 搜索
背景:
阅读新闻

RAC 环境中分区表创建index hang(row cache lock)

[日期:2014-06-28] 来源:Linux社区  作者:renjixinchina [字体:大 中 小]

今天在一张大表(分区表)上创建bitmap 索引,执行一段时间后就hang在那里 等待事件为row cache lock

查询得知:


SQL>

select event,p1 from v$session a where a.username is not null and a.status='ACTIVE'

EVENT                                                                    P1

---------------------------------------------------------------- ----------

row cache lock                                                            2

查询v$rowcache

 SQL> select parameter from v$rowcache where cache#=7;

 

PARAMETER

--------------------------------

dc_segments

dc_segments

dc_segments

查询mos得知是一个bug


Bug 8417354 10.2.0.4 RDBMS 10.2.0.4 DICTIONARY PRODID-5 PORTID-226 6004916
 Abstract: CREATE BITMAP INDEX HANG ON "ROW CACHE LOCK"
 
Bug 6321551 10.2.0.2 RDBMS 10.2.0.2 RAC PRODID-5 PORTID-226 6004916
 Abstract: CREATE INDEX ON PART. TABLE NOT FINISHING W/ ROW CACHE LOCK
 
Base Bug 6004916 11.0.0.0 RDBMS 11.0.0.0 ROW CACHE PRODID-5 PORTID-46
 Abstract: REFPART:LNX:WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK
 
When creating a local index on partitioned table is not finishing on a two node RAC. Also, ORA-4021 error could be reported after a while.

 

该bug出现的场景及症状

1 It has not been possible to create an index on a partitioned table.
 2 Error ORA-04021 may be reported after a while.
 3 The table contain huge number of partitions and sub-partitions.
 4 This is a 2-node RAC environment.
 5 Index creation waits on 'row cache lock'.
 6 The blocker process is not recorded in the system state dumps.

解决方案

应用补丁 Patch 6004916.

或
 关闭RAC除本节点的其他节点实例,创建索引,创建后打开其他节点实例

--------------------------------------------------------------------------------

Linux-6-64下安装Oracle 12C笔记 http://www.linuxidc.com/Linux/2013-07/86805.htm

在CentOS 6.4下安装Oracle 11gR2(x64) http://www.linuxidc.com/Linux/2014-02/97374.htm

Oracle 11gR2 在VMWare虚拟机中安装步骤 http://www.linuxidc.com/Linux/2013-09/89579p2.htm

Debian 下 安装 Oracle 11g XE R2 http://www.linuxidc.com/Linux/2014-03/98881.htm

--------------------------------------------------------------------------------

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-06/103820.htm

linux
相关资讯       rac  row cache lock 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款