Oracle 10g Performance: chapter 11 SQL*Net

1,779 views

Published on

Published in: Education
1 Comment
2 Likes
Statistics
Notes
  • http://dbmanagement.info/Tutorials/PLSQL.htm
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
1,779
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
37
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • http://www.jlcomp.demon.co.uk/sdu.html http://download-uk.oracle.com/docs/cd/A97630_01/network.920/a96580/advcfg.htm#475479
  • Oracle 10g Performance: chapter 11 SQL*Net

    1. 1. SQL*Net Kyle Hailey http://oraclemonitor.com http//ashmasters.com/Kyle.hailey@embarcadero.com #.1
    2. 2. Network Redo Lib Buffer Cache Cache Locks Network IO Copyright 2006 Kyle Hailey #.2
    3. 3. SQL*Net WaitsSQL*Plus Host MachineOCI SGASQL*Forms Log Library Buffer Buffer Cache Cache Buffer CacheJava Application Log Bufferetc Client Network Session Shadow Copyright 2006 Kyle Hailey #.3
    4. 4. SQL*Net Waits P1 and P2 Idle (or not?)  SQL*Net message from client Packing and Network:  SQL*Net message to client For Network  SQL*Net more data to client Timings Use  SQL*Net more data from client Error Ping  SQL*Net break/reset to client Tnsping Dblink equivalents  SQL*Net message to dblink Network sniffers  SQL*Net more data to dblink  SQL*Net more data from dblink  SQL*Net break/reset to dblink Copyright 2006 Kyle Hailey #.4
    5. 5. SQL*Net message from client  Idle Event  Waiting for work from Client  Includes network transmission times for messages coming from shadow  Indicative of Client “think time” or “processing time” “idle” or Client “working” or “idle” waiting for work “waiting” waiting from client ??? Session Shadow orasrp.ru #.5
    6. 6. SQL*Net message to client  Time it takes to pack a message to be sent to the client  Doesn’t include network timing http://blog.tanelpoder.com/2008/02/10/sqlnet-message-to-client-vs-sqlnet-more-data-to-client Client Waiting Waiting for Message Packing Session Shadow #.6
    7. 7. SQL*Net more data to client  Client sends information that spans SDU packets  Time it takes to pack  Might include network timing - unclear Waiting for Client Waiting Message Packing Session Shadow Copyright 2006 Kyle Hailey #.7
    8. 8. SQL*Net more data from client  Client is sending data to shadow that spans packets  Shadow waits for next packet  Could indicate  network latency?  Problem with the client tool Client Working Waiting Session Shadow Copyright 2006 Kyle Hailey #.8
    9. 9. SQL*Net more data from client“OEM-lite”Written in TCL/TKOnly Overview SQL Text Application Server Crashed #.9 Copyright 2006
    10. 10. SQL*Net more data from dblink Shadow at db link is sending data to client that spans packets Sends first packet then waits for shadow to respond, so it can send more “Client” Session dblink Shadow Shadow Copyright 2006 Kyle Hailey #.10
    11. 11. SDU: More Data  SDU : Session Data Unit Message size TDU – Transmission Data Set in sqlnet.ora Unit – see note 44694.1 The TDU parameter has trace_level_client=16 been deprecated in the trace_directory_client=/tmp Oracle Net v8.0 and trace_file_client=client.trc beyond and is ignored. It trace_unique_client = true is only mentioned here for trace_level_server=16 backward compatibility. trace_directory_server=/tmp trace_file_server=server.trc client_187.trc:[12-JAN-2008 11:01:38:209] nsconneg: vsn=313, gbl=0xa01, sdu=2048, tdu=32767 Copyright 2006 Kyle Hailey #.11
    12. 12. SDU 32KV10G = (DESCRIPTION = tnsnames.ora (SDU=32768) (ADDRESS = (PROTOCOL = TCP)(HOST = fuji)(PORT =1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = v10g) ))SID_LIST_LISTENER = listener.ora (SID_LIST = (SID_DESC = (SDU=32768) (SID_NAME = v10g) (ORACLE_HOME = /export/home/oracle10) ))client_3582.trc:[12-JAN-2008 11:37:39:237] nsconneg: vsn=313,gbl=0xa01, sdu=32768, tdu=32767 Copyright 2006 Kyle Hailey #.12
    13. 13. SQL*Net break/reset to client Error in sql statement Control C Usually highlights and error in application Client Waiting Error Session Shadow Copyright 2006 Kyle Hailey #.13
    14. 14. ExampleCREATE TABLE T1 (C1 NUMBER);ALTER TABLE T1 ADD (CONSTRAINT T1_CHECK1 CHECK (C1 IN (J,N)));ALTER SESSION SET EVENTS 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12;INSERT INTO T1 VALUES (1);PARSING IN CURSOR #2 len=25 dep=0 uid=0 oct=2 lid=0 tim=5009300581224 hv=981683409 ad=8e6a7c10INSERT INTO T1 VALUES (1)END OF STMTPARSE #2:c=0,e=2770,p=0,cr=2,cu=0,mis=1,r=0,dep=0,og=1,tim=5009300581220BINDS #2:EXEC #2:c=0,e=128,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=5009300581418ERROR #2:err=1722 tim=512952379WAIT #2: nam=SQL*Net break/reset to client ela= 31 driver id=1650815232 break?=1 p3=0 obj#=-1 tim=5009300581549WAIT #2: nam=SQL*Net break/reset to client ela= 92 driver id=1650815232 break?=0 p3=0 obj#=-1 tim=5009300581662 Copyright 2006 Kyle Hailey #.14
    15. 15. SQL*Net break/reset to dblink Error in sql statement Control C Usually highlights and error in application Waiting error Session dblink Shadow Shadow Copyright 2006 Kyle Hailey #.15
    16. 16. Summary Network/Client/Tool issues  More data from client  More data from dblink Try SDU , RECV_BUF_SIZE and SEND_BUF_SIZE  SQL*Net more data from client  SQL*Net more data to client  SQL*Net more data from dblink For Network Timings Use Application Error Ping  SQL*Net break/reset to client  SQL*Net break/reset to dblink Tnsping Network sniffers Copyright 2006 Kyle Hailey #.16

    ×