zoukankan      html  css  js  c++  java
  • direct path read 研究

    SQL> select * from v$mystat where rownum<2;
    
           SID STATISTIC#	   VALUE
    ---------- ---------- ----------
          1141	    0	       0
    
    SQL> select count(*) from P800;
    
      COUNT(*)
    ----------
       5566720
    
    
    
    SESSION_ID	           1141	
    SQL_ID	               fzt58wuyrqphq	
    MACHINE	               node01	
    BLOCKING_SESSION		
    SAMPLE_TIME	10-4月 -19 06.19.34.270 下午	
    MODULE	               SQL*Plus	
    PROGRAM	              sqlplus@node01 (TNS V1-V3)	
    EVENT	             direct path read	
    P1	                 4	
    P1TEXT	         file number	
    P2	            88760	
    P2TEXT	         first dba	
    P3	8	
    P3TEXT          	block cnt	
    SQL_TEXT	select count(*) from P800	
    
    
    通过direct path read事件的p1,p2,p3值我们可以定位到该事件在哪个对象上发生等待
    P1: File_id for the read call
    
    P2: Start block_id for the read call
    
    P3: Number of blocks in the read call
    
    
    select owner,segment_name,segment_type,partition_name from dba_extents where file_id=4 and 88760 between block_id and block_id+blocks-1;
    
    SQL>  select owner,segment_name,segment_type,partition_name from dba_extents where file_id=4 and 88760 between block_id and block_id+blocks-1;
    
    OWNER	   SEGMENT_NAME 		  SEGMENT_TYPE			 PARTITION_NAME
    ---------- ------------------------------ ------------------------------ ------------------------------------------------------------------------------------------
    TEST	   P800 			  TABLE
    
    
  • 相关阅读:
    超时检测
    非阻塞IO
    阻塞IO
    IO的概念
    http_server实例代码
    套接字中的recv与send的注意事项
    tcp流式套接字和udp数据报套接字编程区别
    TCP的粘包
    socket创建UDP服务端和客户端
    面向连接与面向非连接的传输服务区别
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348759.html
Copyright © 2011-2022 走看看