SlideShare a Scribd company logo
1 of 16
SQL*Net

            Kyle Hailey
    http://oraclemonitor.com
     http//ashmasters.com/
Kyle.hailey@embarcadero.com

                               #.1
Network




  Redo    Lib       Buffer
          Cache     Cache
          Locks

              Network


     IO


                    Copyright 2006 Kyle Hailey   #.2
SQL*Net Waits
SQL*Plus                                            Host Machine
OCI
                                               SGA
SQL*Forms                             Log    Library Buffer
                                      Buffer Cache Cache
                                                  Buffer Cache
Java Application
                                           Log Buffer
etc
 Client
                   Network
                                        Session
                                         Shadow


                       Copyright 2006 Kyle Hailey
                                                                   #.3
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
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
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
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
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
SQL*Net more data from client
“OEM-lite”
Written in TCL/TK
Only
 Overview
 SQL   Text




                     Application Server Crashed


                                                               #.9
                                                  Copyright 2006
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
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
SDU 32K
V10G = (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
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
Example
CREATE 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=9816834
09 ad='8e6a7c10'
INSERT INTO T1 VALUES (1)
END OF STMT
PARSE #2:c=0,e=2770,p=0,cr=2,cu=0,mis=1,r=0,dep=0,og=1,tim=5009300581220
BINDS #2:
EXEC #2:c=0,e=128,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=5009300581418
ERROR #2:err=1722 tim=512952379
WAIT #2: nam='SQL*Net break/reset to client' ela= 31 driver id=1650815232 break?
=1 p3=0 obj#=-1 tim=5009300581549
WAIT #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
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
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

More Related Content

What's hot

Oracle Clusterware and Private Network Considerations - Practical Performance...
Oracle Clusterware and Private Network Considerations - Practical Performance...Oracle Clusterware and Private Network Considerations - Practical Performance...
Oracle Clusterware and Private Network Considerations - Practical Performance...
Guenadi JILEVSKI
 
Windows Server 2008 R2 Overview
Windows Server 2008 R2 OverviewWindows Server 2008 R2 Overview
Windows Server 2008 R2 Overview
Steven Wilder
 
Building Open Source Identity Management with FreeIPA
Building Open Source Identity Management with FreeIPABuilding Open Source Identity Management with FreeIPA
Building Open Source Identity Management with FreeIPA
LDAPCon
 
Windows 2008 R2 Overview
Windows 2008 R2 OverviewWindows 2008 R2 Overview
Windows 2008 R2 Overview
Amit Gatenyo
 

What's hot (20)

Cl115
Cl115Cl115
Cl115
 
Oracle Clusterware and Private Network Considerations - Practical Performance...
Oracle Clusterware and Private Network Considerations - Practical Performance...Oracle Clusterware and Private Network Considerations - Practical Performance...
Oracle Clusterware and Private Network Considerations - Practical Performance...
 
Ctive directory interview question and answers
Ctive directory interview question and answersCtive directory interview question and answers
Ctive directory interview question and answers
 
Server 2008 r2 ppt
Server 2008 r2 pptServer 2008 r2 ppt
Server 2008 r2 ppt
 
Server interview[1]
Server interview[1]Server interview[1]
Server interview[1]
 
Cl309
Cl309Cl309
Cl309
 
Cl107
Cl107Cl107
Cl107
 
Trivadis TechEvent 2017 Kerberos and Databases a Success by Stefan Oehrli
Trivadis TechEvent 2017 Kerberos and Databases a Success by Stefan OehrliTrivadis TechEvent 2017 Kerberos and Databases a Success by Stefan Oehrli
Trivadis TechEvent 2017 Kerberos and Databases a Success by Stefan Oehrli
 
Cl219
Cl219Cl219
Cl219
 
CoreDX DDS Technical Information
CoreDX DDS Technical InformationCoreDX DDS Technical Information
CoreDX DDS Technical Information
 
Windows Server 2008 R2 Overview
Windows Server 2008 R2 OverviewWindows Server 2008 R2 Overview
Windows Server 2008 R2 Overview
 
XenApp 6.5 - Event Log Messages
XenApp 6.5 - Event Log MessagesXenApp 6.5 - Event Log Messages
XenApp 6.5 - Event Log Messages
 
Teradata client4
Teradata client4Teradata client4
Teradata client4
 
Building Open Source Identity Management with FreeIPA
Building Open Source Identity Management with FreeIPABuilding Open Source Identity Management with FreeIPA
Building Open Source Identity Management with FreeIPA
 
Glass
GlassGlass
Glass
 
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
 
Configuring and Troubleshooting XenDesktop Sites
Configuring and Troubleshooting XenDesktop SitesConfiguring and Troubleshooting XenDesktop Sites
Configuring and Troubleshooting XenDesktop Sites
 
Cl116
Cl116Cl116
Cl116
 
Windows 2008 R2 Overview
Windows 2008 R2 OverviewWindows 2008 R2 Overview
Windows 2008 R2 Overview
 
WINDOWS SERVER 2008
WINDOWS SERVER 2008WINDOWS SERVER 2008
WINDOWS SERVER 2008
 

Similar to Oracle 10g Performance: chapter 11 SQL*Net

Data Access Technologies
Data Access TechnologiesData Access Technologies
Data Access Technologies
Dimara Hakim
 
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver MeetupDaneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
Shannon McFarland
 

Similar to Oracle 10g Performance: chapter 11 SQL*Net (20)

Oracle Client Failover - Under The Hood
Oracle Client Failover - Under The HoodOracle Client Failover - Under The Hood
Oracle Client Failover - Under The Hood
 
APIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go StreamingAPIs, STOP Polling, lets go Streaming
APIs, STOP Polling, lets go Streaming
 
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert BialekTrivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
Trivadis TechEvent 2016 Oracle Client Failover - Under the Hood by Robert Bialek
 
IoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideasIoT Secure Bootsrapping : ideas
IoT Secure Bootsrapping : ideas
 
Data Access Technologies
Data Access TechnologiesData Access Technologies
Data Access Technologies
 
Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)
 
Building and deploying large scale real time news system with my sql and dist...
Building and deploying large scale real time news system with my sql and dist...Building and deploying large scale real time news system with my sql and dist...
Building and deploying large scale real time news system with my sql and dist...
 
2022-Db2-Securing_Your_data_in_motion.pdf
2022-Db2-Securing_Your_data_in_motion.pdf2022-Db2-Securing_Your_data_in_motion.pdf
2022-Db2-Securing_Your_data_in_motion.pdf
 
GuideIT Delivery Design - Netscaler
GuideIT Delivery Design - NetscalerGuideIT Delivery Design - Netscaler
GuideIT Delivery Design - Netscaler
 
Java Programming - 07 java networking
Java Programming - 07 java networkingJava Programming - 07 java networking
Java Programming - 07 java networking
 
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver MeetupDaneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
Daneyon Hansen - Intro to OpenStack - Feb13 OpenStack Denver Meetup
 
MySQL 8.0 from December London Open Source Database Meetup
MySQL 8.0 from December London Open Source Database MeetupMySQL 8.0 from December London Open Source Database Meetup
MySQL 8.0 from December London Open Source Database Meetup
 
Scaling asp.net websites to millions of users
Scaling asp.net websites to millions of usersScaling asp.net websites to millions of users
Scaling asp.net websites to millions of users
 
Unit 05: Physical Architecture Design
Unit 05: Physical Architecture DesignUnit 05: Physical Architecture Design
Unit 05: Physical Architecture Design
 
Sqlnet
SqlnetSqlnet
Sqlnet
 
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデートOracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2020年2月度サービス情報アップデート
 
Brocade AWS user group Sydney presentation
Brocade AWS user group Sydney presentationBrocade AWS user group Sydney presentation
Brocade AWS user group Sydney presentation
 
Securing Millions of Devices
Securing Millions of DevicesSecuring Millions of Devices
Securing Millions of Devices
 
Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2
 
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should KnowOracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
 

More from Kyle Hailey

Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
Kyle Hailey
 

More from Kyle Hailey (20)

Hooks in postgresql by Guillaume Lelarge
Hooks in postgresql by Guillaume LelargeHooks in postgresql by Guillaume Lelarge
Hooks in postgresql by Guillaume Lelarge
 
Performance insights twitch
Performance insights twitchPerformance insights twitch
Performance insights twitch
 
History of database monitoring
History of database monitoringHistory of database monitoring
History of database monitoring
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
 
Successfully convince people with data visualization
Successfully convince people with data visualizationSuccessfully convince people with data visualization
Successfully convince people with data visualization
 
Virtual Data : Eliminating the data constraint in Application Development
Virtual Data :  Eliminating the data constraint in Application DevelopmentVirtual Data :  Eliminating the data constraint in Application Development
Virtual Data : Eliminating the data constraint in Application Development
 
DBTA Data Summit : Eliminating the data constraint in Application Development
DBTA Data Summit : Eliminating the data constraint in Application DevelopmentDBTA Data Summit : Eliminating the data constraint in Application Development
DBTA Data Summit : Eliminating the data constraint in Application Development
 
Accelerate Develoment with VIrtual Data
Accelerate Develoment with VIrtual DataAccelerate Develoment with VIrtual Data
Accelerate Develoment with VIrtual Data
 
Delphix and Pure Storage partner
Delphix and Pure Storage partnerDelphix and Pure Storage partner
Delphix and Pure Storage partner
 
Mark Farnam : Minimizing the Concurrency Footprint of Transactions
Mark Farnam  : Minimizing the Concurrency Footprint of TransactionsMark Farnam  : Minimizing the Concurrency Footprint of Transactions
Mark Farnam : Minimizing the Concurrency Footprint of Transactions
 
Dan Norris: Exadata security
Dan Norris: Exadata securityDan Norris: Exadata security
Dan Norris: Exadata security
 
Martin Klier : Volkswagen for Oracle Guys
Martin Klier : Volkswagen for Oracle GuysMartin Klier : Volkswagen for Oracle Guys
Martin Klier : Volkswagen for Oracle Guys
 
What is DevOps
What is DevOpsWhat is DevOps
What is DevOps
 
Data as a Service
Data as a Service Data as a Service
Data as a Service
 
Data Virtualization: Revolutionizing data cloning
Data Virtualization: Revolutionizing data cloningData Virtualization: Revolutionizing data cloning
Data Virtualization: Revolutionizing data cloning
 
BGOUG "Agile Data: revolutionizing database cloning'
BGOUG  "Agile Data: revolutionizing database cloning'BGOUG  "Agile Data: revolutionizing database cloning'
BGOUG "Agile Data: revolutionizing database cloning'
 
Denver devops : enabling DevOps with data virtualization
Denver devops : enabling DevOps with data virtualizationDenver devops : enabling DevOps with data virtualization
Denver devops : enabling DevOps with data virtualization
 
Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
Oracle Open World 2014: Lies, Damned Lies, and I/O Statistics [ CON3671]
 
Jonathan Lewis explains Delphix
Jonathan Lewis explains Delphix Jonathan Lewis explains Delphix
Jonathan Lewis explains Delphix
 
Oaktable World 2014 Toon Koppelaars: database constraints polite excuse
Oaktable World 2014 Toon Koppelaars: database constraints polite excuseOaktable World 2014 Toon Koppelaars: database constraints polite excuse
Oaktable World 2014 Toon Koppelaars: database constraints polite excuse
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

Oracle 10g Performance: chapter 11 SQL*Net

  • 1. SQL*Net Kyle Hailey http://oraclemonitor.com http//ashmasters.com/ Kyle.hailey@embarcadero.com #.1
  • 2. Network Redo Lib Buffer Cache Cache Locks Network IO Copyright 2006 Kyle Hailey #.2
  • 3. SQL*Net Waits SQL*Plus Host Machine OCI SGA SQL*Forms Log Library Buffer Buffer Cache Cache Buffer Cache Java Application Log Buffer etc Client Network Session Shadow Copyright 2006 Kyle Hailey #.3
  • 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. 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. 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. 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. 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. SQL*Net more data from client “OEM-lite” Written in TCL/TK Only Overview SQL Text Application Server Crashed #.9 Copyright 2006
  • 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. 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. SDU 32K V10G = (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. 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. Example CREATE 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=9816834 09 ad='8e6a7c10' INSERT INTO T1 VALUES (1) END OF STMT PARSE #2:c=0,e=2770,p=0,cr=2,cu=0,mis=1,r=0,dep=0,og=1,tim=5009300581220 BINDS #2: EXEC #2:c=0,e=128,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=5009300581418 ERROR #2:err=1722 tim=512952379 WAIT #2: nam='SQL*Net break/reset to client' ela= 31 driver id=1650815232 break? =1 p3=0 obj#=-1 tim=5009300581549 WAIT #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. 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. 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

Editor's Notes

  1. http://www.jlcomp.demon.co.uk/sdu.html http://download-uk.oracle.com/docs/cd/A97630_01/network.920/a96580/advcfg.htm#475479