cursor: pin S wait on X or library cache lock waits

Typically you will see a small spike in cursor: pin S wait on X or library cache lock waits.This can happen more often in OLTP envoriment.  shared pool and buffer cache is in demand.
Problem will happen randomly and intermittently.

Cause

Due to frequent resize of the shared pool and buffer cache You can see cursor: pin S wait on X,library cache lock waits.

Query V$SGA_RESIZE_OPS

set linesize 90
set pagesize 60
column component format a25
column Final format 99,999,999,999
column STARTED format A25

SELECT COMPONENT ,OPER_TYPE,FINAL_SIZE Final,to_char(start_time,'dd-mon hh24:mi:ss') STARTED FROM V$SGA_RESIZE_OPS;


COMPONENT OPER_TYPE Final STARTED
------------------------- ------------- ---------------- --------------------
DEFAULT buffer cache SHRINK 17,548,967,936 10/06/2008 07:56:28

COMPONENT OPER_TYPE Final STARTED
------------------------- ------------- ---------------- --------------------
shared pool GROW 2,197,815,296 10/06/2008 07:56:28
DEFAULT buffer cache GROW 17,649,631,232 10/06/2008 07:54:25
shared pool SHRINK 2,097,152,000 10/06/2008 07:54:25


Note:-
-----
The shared pool shrinked at 7:54:25 and within 2 minutes it grew at 7:56:28
The default buffer cache grew at 7:54:25 and again shrunk at 7:56:28 . You can see resize operations every 30 seconds also.

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8102208/viewspace-668733/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8102208/viewspace-668733/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值