11g library cache pin处理思路
来源:互联网 发布:js实现查看图片大图 编辑:程序博客网 时间:2024/04/29 17:51
<pre name="code" class="sql">create or replace procedure prc_test1 isbegin loop execute immediate 'select * from dual';end loop;end; SESSION 20 执行存储过程: SQL> select * from v$mystat where rownum<2; SID STATISTIC# VALUE---------- ---------- ----------20 0 0SQL> exec prc_test1;此时的等待事件:SQL> select sid,blocking_session,p1,p1raw,p2,p3,event from v$session where event not like '%message%' and sid=20; SID BLOCKING_SESSION P1 P1RAWP2 P3 EVENT---------- ---------------- ---------- ---------------- ---------- ---------- ----------------------------------------------------------------20 537557208 00000000200A78D8 293 0 latch: shared poolSESSION 1137编译存储过程: SQL> select * from v$mystat where rownum<2; SID STATISTIC# VALUE---------- ---------- ---------- 1137 0 0SQL> alter procedure prc_test1 compile;SQL> select sid,blocking_session,p1,p1raw,p2,p3,event from v$session where event not like '%message%' and sid in (20,1137); SID BLOCKING_SESSION P1 P1RAWP2 P3 EVENT---------- ---------------- ---------- ---------------- ---------- ---------- ----------------------------------------------------------------20 537557208 00000000200A78D8 293 0 latch: shared pool 1137 20 832829180 0000000031A3F6FC 831962136 3.2728E+14 library cache pinSELECT s.sid, kglpnmod "Mode", kglpnreq "Req",p.kglpnhdl FROM x$kglpn p, v$session s WHERE p.kglpnuse=s.saddr AND kglpnhdl like '%&P1RAW%'SQL> SELECT s.sid, kglpnmod "Mode", kglpnreq "Req",p.kglpnhdl FROM x$kglpn p, v$session s WHERE p.kglpnuse=s.saddr 2 3 ; SID Mode Req KGLPNHDL---------- ---------- ---------- -------- 1137 0 3 31A3F6FC20 2 0 31A3F6FC可以发现持有者为20
0 0
- 11g library cache pin处理思路
- library cache pin 诊断思路
- 11g library cache lock分析思路
- library cache pin等待事件处理
- library cache pin的检查和处理
- library cache pin 锁的问题处理
- library cache pin等待事件的处理
- library cache pin
- library cache pin/lock
- LIBRARY CACHE PIN
- library cache pin
- library cache pin和library cache lock
- library cache lock和library cache pin
- LIBRARY CACHE PIN 等待事件
- library cache pin &lock 模拟
- Library cache lock/pin详解
- Oracle Library Cache Lock/Pin
- library cache pin等待事件
- 拷贝构造函数
- 八:取八个字的行 20140912 ①文本处理
- 游戏中的资源打包技术
- C++ 中explicit关键字
- 工作简介与常见问题
- 11g library cache pin处理思路
- vim+ctags+taglist插件安装使用
- acm 初级入门 装箱问题
- poj_1321 棋盘问题
- 九:取九个字的行 20140913 ①文本处理
- c primer plus第九章答案
- 十:取十个字的行 20140914 ①文本处理
- 实现像handcent sms或者chomp sms那样的气泡短信样式
- 计算机各进制之间的转换