#.1 SQL*Net Kyle Hailey http//ashmasters.com/

Slides:



Advertisements
Similar presentations
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
Advertisements

IO Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Waits Covered in this Section  db file sequential read  db file scattered.
Enqueue Waits : Locks. #.2 Copyright 2006 Kyle Hailey Locks REDO Lib Cache Buffer Cache IO Locks Network.
Copyright  Oracle Corporation, All rights reserved. 2 Java and Databases: An Overview.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
1 Tuning with Oracle’s SQL Trace David Kurtz Go-Faster Consultancy Ltd.
Buffer Cache Waits. #.2 Copyright 2006 Kyle Hailey Buffer Cache Waits Waits Disk I/O Buffer Busy Library Cache Enqueue SQL*Net Free Buffer Hot Blocks.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Helper Protocols Protocols that either make it easier for IP to do its job, or extend the capabilities of the network layer.
1 Interpreting Wait Events To Boost System Performance Roger Schrag Database Specialists, Inc.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration CSCI E256 Session 7 Oracle Networking.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Log File Waits  Redo is written to disk when  User commits  Log Buffer.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Redo REDO Lib Cache Buffer Cache Locks Network I/O.
Basic JDBC Use Oracle JDBC Drivers must be in the CLASSPATH
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
1 Tuning PL/SQL procedures using DBMS_PROFILER 20-August 2009 Tim Gorman Evergreen Database Technologies, Inc. Northern California Oracle.
Module 5: Data Access. Overview Introduce database components involved in data access Introduce concepts of Transact -SQL and Procedural SQL as tools.
Waits Defined Kyle Hailey #.2 Copyright 2006 Kyle Hailey Top 36 Foreground Waits write complete waits library cache.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Client-Server – Lecture 4 Copyright System Managers LLC 2007 all rights reserved.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
5 Copyright © 2007, Oracle. All rights reserved. Configuring the Oracle Network Environment.
12 Copyright © 2004, Oracle. All rights reserved. Oracle Net Services.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Load Balancing & Failover (RAC) RAC 负载均衡和失效接管. About ACOUG  ACOUG: All China Oracle User Group 
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
Part II : Waits Events Kyle Hailey
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Deploying Oracle Names Jeff D’Abate Sr. Database Administrator Enterprise Application Services November 19, 2004.
6 Copyright © 2009, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
RAC parameter tuning for remote access Carlos Fernando Gamboa, Brookhaven National Lab, US Frederick Luehring, Indiana University, US Distributed Database.
SQL*Net & Other Waits. #.2 Copyright 2006 Kyle Hailey Network Redo Lib Cache Buffer Cache IO Locks Network.
1 06/05/08 Statspack Kyle Hailey
3 Copyright © Oracle Corporation, All rights reserved. Basic Oracle Net Server Side Configuration.
Presented by Rebecca Meinhold But How Does the Internet Work?
Database as a networked server DB at the centre of the network Network Access Map for DB environment Tracking of tools and apps Remove unnecessary network.
3 Copyright © 2004, Oracle. All rights reserved. Controlling Access to the Oracle Listener.
Chapter 18 Host Configuration : DHCP
Monitoring Troubleshooting TCP/IP Chapter 3. Objectives for this Chapter Troubleshoot TCP/IP addressing Diagnose and resolve issues related to incorrect.
3 Copyright © 2006, Oracle. All rights reserved. Statistics and Wait Events.
IWR Ideen werden Realität Forschungszentrum Karlsruhe in der Helmholtz-Gemeinschaft Institut für Wissenschaftliches Rechnen Oracle Network Configuration.
External Routines Oracle Database PL/SQL 10g Programming Chapter 12.
1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary.
5 Copyright © Oracle Corporation, All rights reserved. Usage and Configuration of the Oracle Shared Server.
OEM 10g Performance and Tuning. #.2 Copyright 2006 Kyle Hailey Performance SQL Diagnostics SQLTuning Performance Session DB HOME.
© 2005 Solution Beacon, LLC. All Rights Reserved. Release 11i Workshops Release 11i … Please Add RAC Session Leader Kevin Dahl, Solution Beacon Release.
SQL*Net & Other Waits. #.2 Copyright 2006 Kyle Hailey SQL*Net Waits Session Shadow Log Buffer Buffer Cache Log Buffer Buffer Cache SGA Library Cache Host.
Basic Oracle Net Services Client-Side Configuration
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Interpreting Wait Events To Boost System Performance
Chapter 18 Host Configuration : DHCP
Oracle Memory Internals
Oracle Architectural Components
Chapter 18 Host Configuration : DHCP
Updating Databases With Open SQL
Introduction of Week 5 Assignment Discussion
Updating Databases With Open SQL
Presentation transcript:

#.1 SQL*Net Kyle Hailey http//ashmasters.com/

#.2 Copyright 2006 Kyle Hailey NetworkRedo Lib Cache Buffer Cache IO Locks Network

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

#.4 Copyright 2006 Kyle Hailey SQL*Net Waits P1 and P2 Idle (or not?)  SQL*Net message from client Packing and Network:  SQL*Net message to client  SQL*Net more data to client  SQL*Net more data from client Error  SQL*Net break/reset to client Dblink equivalents  SQL*Net message to dblink  SQL*Net more data to dblink  SQL*Net more data from dblink  SQL*Net break/reset to dblink For Network Timings Use Ping Tnsping Network sniffers

#.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” Session Shadow “idle” waiting for work from client Client “idle” “idle” or “working” “working” or waiting “waiting” ??? orasrp.ru

#.6 Copyright 2006 Kyle Hailey SQL*Net message to client  Time it takes to pack a message to be sent to the client  Doesn’t include network timing Session Shadow Waiting for MessagePacking Client Waiting

#.7 Copyright 2006 Kyle Hailey SQL*Net more data to client  Client sends information that spans SDU packets  Time it takes to pack  Might include network timing - unclear Session Shadow Client Waiting for MessagePacking Waiting

#.8 Copyright 2006 Kyle Hailey 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 Session Shadow Waiting Client Working

#.9 Copyright 2006 Kyle Hailey SQL*Net more data from client  “OEM-lite”  Written in TCL/TK  Only  Overview  SQL Text Application Server Crashed

#.10 Copyright 2006 Kyle Hailey 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 Session Shadow dblink Shadow “Client”

#.11 Copyright 2006 Kyle Hailey SDU: More Data  SDU : Session Data Unit Message size Set in sqlnet.ora client_187.trc:[12-JAN :01:38:209] nsconneg: vsn=313, gbl=0xa01, sdu=2048, tdu=32767 trace_level_client=16trace_directory_client=/tmptrace_file_client=client.trc trace_unique_client = true trace_level_server=16trace_directory_server=/tmptrace_file_server=server.trc TDU – Transmission Data Unit – see note The TDU parameter has been deprecated in the Oracle Net v8.0 and beyond and is ignored. It is only mentioned here for backward compatibility.

#.12 Copyright 2006 Kyle Hailey SDU 32K V10G = (DESCRIPTION = (SDU=32768) (SDU=32768) (ADDRESS = (PROTOCOL = TCP)(HOST = fuji)(PORT = 1522)) (ADDRESS = (PROTOCOL = TCP)(HOST = fuji)(PORT = 1522)) (CONNECT_DATA = (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = v10g) (SERVER = DEDICATED) (SERVICE_NAME = v10g) ) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_LIST = (SID_DESC = (SID_DESC = (SDU=32768) (SDU=32768) (SID_NAME = v10g) (SID_NAME = v10g) (ORACLE_HOME = /export/home/oracle10) (ORACLE_HOME = /export/home/oracle10) )) )) listener.ora tnsnames.ora client_3582.trc:[12-JAN :37:39:237] nsconneg: vsn=313, gbl=0xa01, sdu=32768, tdu=32767

#.13 Copyright 2006 Kyle Hailey SQL*Net break/reset to client  Error in sql statement  Control C  Usually highlights and error in application Session Shadow Waiting Error Client

#.14 Copyright 2006 Kyle Hailey Example PARSING IN CURSOR #2 len=25 dep=0 uid=0 oct=2 lid=0 tim= hv= 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= BINDS #2: EXEC #2:c=0,e=128,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim= ERROR #2:err=1722 tim= WAIT #2: nam='SQL*Net break/reset to client' ela= 31 driver id= break? =1 p3=0 obj#=-1 tim= WAIT #2: nam='SQL*Net break/reset to client' ela= 92 driver id= break? =0 p3=0 obj#=-1 tim= CREATE TABLE T1 (C1 NUMBER); ALTER TABLE T1 ADD (CONSTRAINT T1_CHECK1 CHECK (C1 IN ('J','N'))); (CONSTRAINT T1_CHECK1 CHECK (C1 IN ('J','N'))); ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'; '10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'; INSERT INTO T1 VALUES (1);

#.15 Copyright 2006 Kyle Hailey SQL*Net break/reset to dblink  Error in sql statement  Control C  Usually highlights and error in application Session Shadow Waiting dblink Shadow error

#.16 Copyright 2006 Kyle Hailey 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  Application Error  SQL*Net break/reset to client  SQL*Net break/reset to dblink For Network Timings Use Ping Tnsping Network sniffers