library cache pin等待事件的处理
2014-05-05 21:05
549 查看
在后台sys用户下执行:
select s.sid || ',' || s.serial# sid_serial,
kglpnmod "mode held",
kglpnreq "request"
from sys.x$kglpn p, v$session s
where p.kglpnuse = s.saddr
and kglpnhdl = (select p1raw
from v$session_wait
where sid = &SID_IN_LIBRARY_CACHE_PIN);
或者:
select sid Holder ,KGLPNUSE Sesion , KGLPNMOD Held, KGLPNREQ Req
from x$kglpn , v$session
where KGLPNHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library%')
and KGLPNMOD <> 0
and v$session.saddr=x$kglpn.kglpnuse ;
或者:
select sql_text from v$sqlarea
where (v$sqlarea.address,v$sqlarea.hash_value)
in (select sql_address,sql_hash_value from v$session where sid in (
select sid
from x$kglpn , v$session
where KGLPNHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library%')
and KGLPNMOD <> 0
and v$session.saddr=x$kglpn.kglpnuse );
查到held>0
的sid,如果local=no
,请沟通是否可以kill掉这个进程
select s.sid || ',' || s.serial# sid_serial,
kglpnmod "mode held",
kglpnreq "request"
from sys.x$kglpn p, v$session s
where p.kglpnuse = s.saddr
and kglpnhdl = (select p1raw
from v$session_wait
where sid = &SID_IN_LIBRARY_CACHE_PIN);
或者:
select sid Holder ,KGLPNUSE Sesion , KGLPNMOD Held, KGLPNREQ Req
from x$kglpn , v$session
where KGLPNHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library%')
and KGLPNMOD <> 0
and v$session.saddr=x$kglpn.kglpnuse ;
或者:
select sql_text from v$sqlarea
where (v$sqlarea.address,v$sqlarea.hash_value)
in (select sql_address,sql_hash_value from v$session where sid in (
select sid
from x$kglpn , v$session
where KGLPNHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library%')
and KGLPNMOD <> 0
and v$session.saddr=x$kglpn.kglpnuse );
查到held>0
的sid,如果local=no
,请沟通是否可以kill掉这个进程
相关文章推荐
- library cache pin等待事件处理
- library cache pin等待事件
- [转载]编译存储过程时遇到的library cache pin等待事件解决过程
- 发现个library cache LOCK AND library cache pin 等待事件
- Oracle grant 授权 出现 library cache lock 等待事件 处理
- latch: library cache pin等待事件
- 怎么发现RAC环境中'library cache pin'等待事件的阻塞者(Blocker)?
- latch: library cache pin等待事件
- 关于library cache pin和lock等待事件的理解
- LIBRARY CACHE PIN 等待事件
- 怎么发现RAC环境中'library cache pin'等待事件的堵塞者(Blocker)?
- 关于cursor: pin S wait on X 和 library cache pin 及其他等待事件
- Oracle grant 授权 出现 library cache lock 等待事件 处理
- 遇到Library cache load lock 等待事件
- 11g等待事件之library cache: mutex X
- 编译正在调用的函数等待library cache pin
- Oracle 11g下重现library cache lock等待事件
- 11g等待事件之library cache: mutex X
- 分析解决因”library cache pin”等待
- 分析解决因”library cache pin”等待