zoukankan      html  css  js  c++  java
  • 科学记数法

    Library cache pin :
    
    P1=handle address
    
    P2=lock address
    
    p3=mode * 100 + namespace
    
    SQL>  select sid,blocking_session,p1,p1raw,p2,p3,event from v$session where event not like '%message%' and sid in (20,1137,22);
    
           SID BLOCKING_SESSION	    P1 P1RAW			P2	   P3 EVENT
    ---------- ---------------- ---------- ---------------- ---------- ---------- ----------------------------------------------------------------
    	20		     537557208 00000000200A78D8        293	    0 latch: shared pool
    	22	       1137  832829180 0000000031A3F6FC  618590516 3.2728E+14 library cache lock
          1137		 20  832829180 0000000031A3F6FC  831962136 3.2728E+14 library cache pin
    
    
    libaray cache lock:
    
    P1=handle address
    
    P2=lock address
    
    p3=mode * 100 + namespace
    
    327280000000000
    
    
    set echo off
    set lines 3000 pages 5000 verify off heading on
    undefine p3
    select KGLSTDSC,KGLSTIDN,mod(&&p3,65536) as "MODE" from x$kglst where kglsttyp = 'NAMESPACE' and KGLSTIDN=trunc(&&p3/65536);
    /
    undefine p3
    
    SQL> create or replace procedure prc_test1 
    is
    begin
      loop
      execute immediate 'select * from dual';
    end loop;
    end;   2    3    4    5    6    7  
      8  /
    
    Procedure created.
    
    SQL> select * from v$mystat where rownum<2;
    
           SID STATISTIC#	   VALUE
    ---------- ---------- ----------
           293	    0	       0
    
    SQL> exec prc_test1;
    
    
    
    
    
    SQL> select * from v$mystat where rownum<2;
    
           SID STATISTIC#	   VALUE
    ---------- ---------- ----------
           384	    0	       0
    
    SQL> alter procedure prc_test1 compile
      2  
    SQL> alter procedure prc_test1 compile
      2  ;
    
    
    
    
    SQL> select sid,blocking_session,p1,p1raw,p2,p3,event from v$session where event not like '%message%' and sid in (293,384);
    
           SID BLOCKING_SESSION	    P1 P1RAW			P2	   P3 EVENT
    ---------- ---------------- ---------- ---------------- ---------- ---------- ----------------------------------------------------------------
           293		    1611722800 000000006010F030        336	    0 latch: shared pool
           384		293 1.1529E+10 00000002AF31D6B0 1.1609E+10 4.8136E+14 library cache pin
    
    SQL> select sid, blocking_session, p1, p1raw, p2, to_char(p3,'999999999999999') as p3, event
      from v$session
     where event not like '%message%'
       and sid in (293, 384);  2    3    4  
    
           SID BLOCKING_SESSION	    P1 P1RAW			P2 P3		    EVENT
    ---------- ---------------- ---------- ---------------- ---------- ---------------- ----------------------------------------------------------------
           293		    1611722800 000000006010F030        336		  0 latch: shared pool
           384		293 1.1529E+10 00000002AF31D6B0 1.1609E+10  481362754732035 library cache pin
    
    new   1: select KGLSTDSC,KGLSTIDN,mod(481362754732035,65536) as "MODE" from x$kglst where kglsttyp = 'NAMESPACE' and KGLSTIDN=trunc(481362754732035/65536)
    
    no rows selected
    
    E是exponent,表示以10为底的指数
    
    
    4.8136E+14 其实是省略了后面的比如4.81362754732.。
    

  • 相关阅读:
    Python 安装Twisted 提示python version 2.7 required,which was not found in the registry
    Openfire Strophe开发中文乱码问题
    css div 垂直居中
    How to create custom methods for use in spring security expression language annotations
    How to check “hasRole” in Java Code with Spring Security?
    Android 显示/隐藏 应用图标
    Android 当媒体变更后,通知其他应用重新扫描
    文件上传那些事儿
    专题:点滴Javascript
    主流动画实现方式总结
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351972.html
Copyright © 2011-2022 走看看