- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
5#
发表于 2012-7-5 14:41:59
SQL> SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ
2 FROM SYS.x$ksppi x, SYS.x$ksppcv y
3 WHERE x.inst_id = USERENV ('Instance')
4 AND y.inst_id = USERENV ('Instance')
5 AND x.indx = y.indx
6 AND x.ksppinm like '%extended%';
NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
DESCRIB
--------------------------------------------------------------------------------
_optimizer_extended_cursor_sharing
UDO
optimizer extended cursor sharing
看了下 _optimizer_extended_cursor_sharing 默认确实是 UDO
就AWR 看 硬解析非常少 ,
Library Hit %: 98.43 Soft Parse %: 100.00
Execute to Parse %: 97.93 Latch Hit %: 98.96
cursor pin s主要发生在 kksfbc即寻找子游标上, 且 就SQL ordered by Version Count 没有大量version count的游标
Mutex Type Location Sleeps Wait Time (ms)
Cursor Pin kksfbc [KKSCHLFSP2] 46,522 0
Cursor Pin kksLockDelete [KKSCHLPIN6] 37,270 -101
但是该库是Linux x86 64-bit + 11.2.0.1
在11.2.0.1 上存在一些cursor pin s的bug :
Hdr: 12532025 11.2.0.1 RDBMS 11.2.0.1 DICTIONARY PRODID-5 PORTID-212
Abstract: CURSOR: PIN S EVENT CAUSING DB HANG
Hdr: 11767654 11.2.0.1 RDBMS 11.2.0.1 SHRD CRSRS PRODID-5 PORTID-212
Abstract: HUGE WAITS FOR "CURSOR: PIN S"
Hdr: 11767654 11.2.0.1 RDBMS 11.2.0.1 SHRD CRSRS PRODID-5 PORTID-212
Abstract: HUGE WAITS FOR "CURSOR: PIN S"
建议你先升级到 11.2.0.3.2 再观察 |
|