enq:HW–contention故障处理
enq: HW - contention 说明:
雨花台网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联成立与2013年到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联。
硬件队列用于序列化段的高水位线以外的空间分配。
可以用手动分配范围即可解决问题。
V$SESSION_WAIT,P2 / V$LOCK.ID1 is the tablespace number.
V$SESSION_WAIT.P3 / V$LOCK.ID2 is the relative data block address (dba)
of segment header of the object for which space is being allocated.
巡检发现问题:
select event,count(*) from gv$session_wait where wait_class <> 'Idle' group by event;
1 enq: HW - contention 274
识别发生问题的会话:
select sid,event,P2,P3 from gv$session_wait where event like '%HW%';
通过DBMS_UTILITY包,来定位发生HW争用的对象。
SELECT DBMS_UTILITY.data_block_address_file(ID2) FILE#, DBMS_UTILITY.data_block_address_block(ID2) BLOCK# FROM GV$LOCK WHERE TYPE = 'HW';
通过上面查到的 文件号 和 块ID 定位到等待的对象。
SELECT OWNER , SEGMENT_TYPE, SEGMENT_NAME FROM DBA_EXTENTS WHERE FILE_ID = 111 AND 126423 BETWEEN BLOCK_ID AND BLOCK_ID + BLOCKS -1 ;
DnSN+jK70gfP53Y1rnKR5yx+cn+oJUjtfBx8cIqu9RjGILHkIX7wugo85WGmwRnC+WHoePVRquCU9zG6DrOLrzmJrXJXPHGBaEB8jEHVogFdk/Edhy9Dza1+eBBfN3YfMY/iJ/dHaxk2n/LB6Vht9a3wrmG+wWsq8FIPcxyO+PSQYCuqxvkzZdSLn+Ukl86BrfpK55qI5cPO8sF1Gs+teYmD65C5XAMP4mesuOJDcwY/uT/UN+pV2Wd91D7yVbHMhYaYwb0VeNrDTIP1ACinPFvmMKhObXQei4Z41XW2X3y0no8xfnCFVw02GHkqmzlcwxiMeP00n/KV3ekzX8aRu/OhOYOf3B+vZYzjy3g4kBrrGBv0XMoTP3hdBf74w+wNZ2tZ451jDFa5Ml5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neNWfVtxXeNT7u+uPaqG/Gad0f9Vdxyqvta1Hfp9laf+xn1cdn13Voz5wnbic+7WFe2agXwMc7C5Hl6i5+ph/u9wpUPVvhXePjo/643se/r7Z/vKv4Fd41On4HO/agv6jtyr6OerCS4xGNrlXjdd2rfLaH73J/9GE+u9FK/91Nr8YfXfzVPJ+s8x5qLdx3duz9ORsfazmK6dbb+Y7yqv/V7aoO1b6O6l7F7eKP1ss8R6h6dtuHD3Mszn8swi9G8JWWGPVnXPj51O44fLsx29/uOd49n/a76icarwU86P6sP2gD/cu40HQxmkN1WS71a5zP0cVWcXfnWZ/vjZrgV8TnMaHBp/qdPHl9buZd5cmzGw8f5m7C7GJ0+lfzvfv+Xq0fvt7pj1dkxjsq4I8yOSse/06ch7mp5lz8pjg3cF3VH/1XE/YNtjtL+KAKzMPcNPuqi99MOa4TFZj+nCjWSF+qAr8e5jDmNzWYMzBnYM7APc7Av3Iplva+CwTvAAAAAElFTkSuQmCC">
根据lob字段 查到相对应的表。
SELECT OWNER , TABLE_NAME , SEGMENT_NAME FROM DBA_LOBS WHERE SEGMENT_NAME = 'SYS_LOB0000080646C00004$$';
现在,已经查到是哪个LOB段造成的HW等待。应该向段中手动添加一个新的扩展区来解决问题。
添加一个该段中最大扩展区大小相同的扩展区。
查询对象最大扩展区的大小。
SELECT DISTINCT BYTES FROM DBA_EXTENTS WHERE SEGMENT_NAME = 'SYS_LOB0000080646C00004$$' AND OWNER ='USER'
向lob字段添加扩展区。
alter table USER.TAB modify lob ('COL_NAME') (allocate extents (size 64M));
网站栏目:enq:HW–contention故障处理
文章来源:http://hbruida.cn/article/pgchpd.html