Fine Tune Oracle Execution Plans for Performance Gains. Janis Griffin Senior DBA

Size: px
Start display at page:

Download "Fine Tune Oracle Execution Plans for Performance Gains. Janis Griffin Senior DBA"

Transcription

1 Fine Tune Oracle Execution Plans for Performance Gains Janis Griffin Senior DBA 1

2 Who Am I? Senior DBA for Confio Current Years in Oracle Former Database Design & Implementation Specialize in Performance Tuning Review Database Performance for Customers and Prospects Common Thread How do I tune it? 2

3 Agenda What are Execution Plans How to View Them Interpret Plan Details / Tips / Techniques Tune Case Study Additional Tools 3

4 What are Execution Plans Execution plans provide the sequence of operations performed in order to run SQL Statements. They show: Order of the tables referenced in the statement Access method for each table in the statement INDEX INLIST ITERATOR TABLE ACCESS VIEW Join method in statement accessing multiple tables HASH JOIN MERGE JOIN NESTED LOOPS Data manipulations CONCATENATION COUNT FILTER SORT 4

5 Execution Plan Information 5 Operation - Name of the internal action performed in each step. First Row is always: DELETE STATEMENT INSERT STATEMENT SELECT STATEMENT UPDATE STATEMENT Options Variation of Operation Object_name Table or Index Parent_id Related Operations More Information Not listed here Operation List: AND-EQUAL CONNECT BY CONCATENATION COUNT DOMAIN INDEX FILTER FIRST ROW FOR UPDATE HASH JOIN INDEX ITERATOR INTERSECTION MERGE JOIN MINUS NESTED LOOPS PARTITION REMOTE SEQUENCE SORT TABLE ACCESS UNION VIEW Option Examples: AGGREGATE ALL BY INDEX ROWID BY LOCAL INDEX ROWID BY USER ROWID CARTESIAN FAST FULL SCAN FULL FULL OUTER FULL SCAN GROUP BY ITERATOR ORDER BY OUTER PARTITION RANGE SCAN SAMPLE FAST FULL SCAN SKIP SCAN UNIQUE

6 What are Execution Plans Optimizer s detailed steps to execute a SQL Statement SELECT e.empno EID, e.ename "Employee_name", d.dname "Department, e.hiredate "Hired_Date" FROM emp e, dept d WHERE d.deptno = '40' AND e.deptno = d.deptno; Access Index Scan Id Operation & Option Name SELECT STATEMENT 1 NESTED LOOPS 2 TABLE ACCESS BY INDEX ROWID DEPT 3 INDEX UNIQUE SCAN PK_DEPT 4 TABLE ACCESS FULL EMP Emp Pk_Dept Access Dept Nested Loops 6

7 EXPLAIN PLAN Estimated plan - can be wrong for many reasons Explain Plan For sql statement Set autotrace (on trace exp stat off) V$SQL_PLAN (Oracle 9i+) Actual execution plan Use DBMS_XPLAN for display How To View Plans Tracing (all versions) / TKPROF Get all sorts of good information Works when you know a problem will occur Historical Plans AWR, Confio Ignite Shows plan changes over time DBMS_XPLAN - Table Functions to Format & Display Plans DISPLAY - contents of a plan table. DISPLAY_AWR the plan of a stored SQL statement in AWR. DISPLAY_CURSOR - the execution plan of any loaded cursor. DISPLAY_SQL_PLAN_BASELINE 1+ plans for a SQL statement DISPLAY_SQLSET - multi-plans of statements in SQL tuning set 7

8 DBMS_XPLAN 11g New Functions 11g BUILD_PLAN_XML Return the last plan, or a named plan, explained as XML DISPLAY Shows the last plan explained EXPLAIN PLAN ** Only FUNCTION in Oracle 9i DISPLAY_AWR DISPLAY_CURSOR DISPLAY_PLAN DISPLAY_SQLSET DISPLAY_SQL_PLAN_BASELINE FORMAT_NUMBER FORMAT_NUMBER2 FORMAT_SIZE FORMAT_SIZE2 FORMAT_TIME_S PREPARE_PLAN_XML_QUERY PREPARE_RECORDS VALIDATE_FORMAT Format & display the plan of a stored SQL statement in AWR Format & display the execution plan of any loaded cursor Return the last plan, or a named plan, explained as a CLOB Format & display the execution plan of statements stored in a SQL tuning set Displays one or more plans for the specified SQL statement Returns a number as a string Returns a number as a string formatted with a leading space (CHR(32)) Undocumented Undocumented Undocumented - function to build the XML version of a select query that is run before the display function to retrieve and display the execution plan of a SQL Used Internally Used Internally 8

9 Execution Plan Details SELECT e.empno EID, e.ename "Employee_name, d.dname "Department, e.hiredate "Date_Hired" FROM emp e, dept d WHERE d.deptno = :P1 AND e.deptno = d.deptno; SET AUTOTRACE TRACEONLY: 9

10 Need Table & Index Info Understand objects in execution plans. Table & Segment sizes Number of Rows Indexes & their column order Column data types Cardinality of columns / Data Skew Statistic Gathering Histograms? Use TuningStats.sql Run it for expensive data access targets 10

11 Table & Column Statistics SELECT column_name, num_distinct, num_nulls, num_buckets, density, sample_size FROM user_tab_columns WHERE table_name = EMP ORDER BY column_name; SELECT count(*) FROM EMP; COUNT(*) SELECT 6013/4 dist FROM DUAL; DIST SELECT DEPTNO, count(*) FROM EMP GROUP BY DEPTNO; DEPTNO COUNT(*) Would an index on EMP.DEPTNO increase performance?

12 Histograms exec dbms_stats.gather_schema_stats( -ownname => 'SCOTT', options => 'GATHER AUTO', estimate_percent => dbms_stats.auto_sample_size, method_opt => 'for all columns size auto... exec dbms_stats.gather_table_stats( ownname => 'SCOTT', tabname => 'EMP', method_opt=>'for COLUMNS deptno SIZE 2'); 12

13 Extra Info - Bind Values V$SQL_BIND_CAPTURE STATISTICS_LEVEL = TYPICAL or ALL Collected at 15 minute intervals SELECT name, position, datatype_string, value_string FROM v$sql_bind_capture WHERE sql_id = '0zz5h1003f2dw ; NAME POSITION DATATYPE_STRING VALUE_STRING :P1 1 VARCHAR2(128) 40 EMP Columns: Name Type EMPNO NUMBER(4) ENAME VARCHAR2(10) JOB VARCHAR2(9) MGR NUMBER(4) HIREDATE DATE SAL NUMBER(7,2) COMM NUMBER(7,2) DEPTNO NUMBER(2) 13 Bind Values also provided by tracing Level 4 bind values Level 8 wait information Level 12 bind values and wait information

14 Execution Plan Details SELECT e.empno EID, e.ename "Employee_name, d.dname "Department, e.hiredate "Date_Hired" FROM emp e, dept dwhere d.deptno = :P1 AND e.deptno = d.deptno; Actual Plan: V$SQL_PLAN using dbms_xplan.display_cursor 14

15 Plans Not Created Equal SELECT company, attribute FROM data_out WHERE segment = :B1 Wait Time 100% on db file scattered read Plan from EXPLAIN PLAN Plan from V$SQL_PLAN using DBMS_XPLAN 15

16 Execution Plans Can Change With Oracle optimizer, execution plans can change as the underlying inputs to the optimizer change. Same Sql Different Schemas Same schema changes i.e. adding / dropping indexes Same Sql Different Costs Data volume & Statistic Changes over time Bind variable types and values Initialization parameters (set globally or session level) V$SQL_SHARED_CURSOR Can give clues to why plan changed Approximately 60 columns showing mismatches /differences 16

17 Tuning List How to Find the Expensive Operators Examine Costs / Row Count / Time Table Access Full? Review Filter and Access Predicates Shows how query is interpreted, e.g. bind variables Can help Diagnose Data Type Issues Evaluate Object Stats Table Definitions Sizes and Row Counts Determine Existing Indexes Index Definitions Index Selectivity Evaluate Column Stats Limiting Factors from WHERE Clause 17 Review Join Columns Are they indexed / data scew?

18 Example SQL Statement Find inventory of products in a specific category at a particular location? SELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION,CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE,MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1 ; Average Execution Time seconds Wait Event Waits 90% on direct path read 18

19 19 Why this SQL Statement?

20 Actual Plan SELECT. columns FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1

21 Actual Plan No Statistics SELECT. columns FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1

22 Understanding the Objects PRODUCTS View No Statistics DBMS_STATS Improved in 11g

23 Actual Plan With Statistics

24 How to tune? SELECT. columns FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1 ; V$SQL_BIND_CAPTURE NAME POSITION DATATYPE_STRING VALUE_STRING :B3 1 NUMBER category_id :B2 2 NUMBER warehouse_id :B1 3 NUMBER 15 - rownum INVENTORIES Table Filter (warehouse_id=454) records select round((1000 / * 100), 2) pct_of_inventory from dual; PCT_OF_INVENTORY

25 How to tune? SELECT. columns FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1 ; V$SQL_BIND_CAPTURE NAME POSITION DATATYPE_STRING VALUE_STRING :B3 1 NUMBER category_id PRODUCT_INFORMATION Table Filter (category_id = 136) 6 records USER_TAB_HISTOGRAMS

26 New Plan CREATE INDEX inventories_ix1 ON inventories(warehouse_id); 100% on CPU

27 Did performance improve? CREATE INDEX inventories_ix1 ON inventories(warehouse_id);

28 Which is the better Plan?

29 View using Display Plan EXPLAIN PLAN SET STATEMENT_ID = 'inventory' FOR SELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION,CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE,MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1; set pages 0 head off set linesize 132 set long col xplan format a100 spool inventory.html SELECT dbms_xplan.display_plan(statement_id => 'inventory',type=>'html') AS XPLAN FROM dual; spool off;

30 View using Display Plan

31 Free Graphical Plans 31

32 Free Graphical Plans

33 Summary Execution Plans show the internal steps Oracle takes to run SQL statements Reports how the data is accessed, manipulated and joined Shows Expensive steps with Cost and Time spent. Gives information on Bind Variables (predicate information) Viewing actual plans are better then using EXPLAIN PLAN V$SQL_PLAN using DBMS_XPLAN.display_cursor( &sql_id, 0) Tracing / TKPROF Gather additional data when tuning an execution plan Table sizes, Index selectivity and column details How Statistic Gathering is performed Bind value from V$SQL_BIND_CAPTURE Tune only the execution plans that make a difference Monitor response time Using Ignite 33

34 Tuning Aids DBMS_XPLAN Table Functions New Additions 11g SQL Plan management (DBMS_SPM) Free For Enterprise users Oracle - Note: requires Tuning/Diagnostic Packs SQL Tuning Advisor ADDM

35 DBMS_XPLAN Functions New Functions 11g BUILD_PLAN_XML Return the last plan, or a named plan, explained as XML DISPLAY Shows the last plan explained EXPLAIN PLAN ** Only FUNCTION in Oracle 9i DISPLAY_AWR DISPLAY_CURSOR DISPLAY_PLAN DISPLAY_SQLSET DISPLAY_SQL_PLAN_BASELINE FORMAT_NUMBER FORMAT_NUMBER2 FORMAT_SIZE FORMAT_SIZE2 FORMAT_TIME_S PREPARE_PLAN_XML_QUERY PREPARE_RECORDS VALIDATE_FORMAT Format & display the plan of a stored SQL statement in AWR Format & display the execution plan of any loaded cursor Return the last plan, or a named plan, explained as a CLOB Format & display the execution plan of statements stored in a SQL tuning set Displays one or more plans for the specified SQL statement Returns a number as a string Returns a number as a string formatted with a leading space (CHR(32)) Undocumented Undocumented Undocumented - function to build the XML version of a select query that is run before the display function to retrieve and display the execution plan of a SQL Used Internally Used Internally 35

36 DBMS_XPLAN Example EXPLAIN PLAN set statement_id = pri for select SELECT dbms_xplan.build_plan_xml(statement_id => pri ) AS XPLAN FROM dual; In browser: file:///c:/users/jgriffin/explan/xml.xml 36

37 SQL Plan Management 11g DBMS_SPM manages execution plans & ensures only known or verified plans are used ALTER_SQL_PLAN_BASELINE CONFIGURE CREATE_STGTAB_BASELINE DROP_SQL_PLAN_BASELINE EVOLVE_SQL_PLAN_BASELINE LOAD_PLANS_FROM_CURSOR_CACHE LOAD_PLANS_FROM_SQLSET PACK_STGTAB_BASELINE UNPACK_STGTAB_BASELINE Changes an attribute of a single plan or all plans associated with a SQL statement using the attribute name/value format Set configuration options for the SQL Management Base (SMB) as well as the maintenance of SQL plan baselines Creates a staging table that will be used for the purpose of transporting SQL plan baselines from one system to another Drops a single plan, or all plans associated with a SQL statement Evolves SQL plan baselines associated with one or more SQL statements Loads one or more plans present in the cursor cache for a SQL statement Loads plans stored in a SQL tuning set (STS) into SQL plan baselines Packs (exports) SQL plan baselines from SQL management base into a staging table Unpacks (imports) SQL plan baselines from a staging table into SQL management base 37

38 OEM Tuning Advisor Without Statistics With Statistics 38

39 Manual Run - 10g/11g column sql_id new_value sql_id select sql_id from v$sql where hash_value = &hash_value; DECLARE l_sql_tune_task_id VARCHAR2(100); BEGIN l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task ( sql_id => '&sql_id', scope => DBMS_SQLTUNE.scope_comprehensive, time_limit => 60, task_name => '&sql_id', description => 'Tuning task for statement 19v5guvsgcd1v.'); DBMS_OUTPUT.put_line('l_sql_tune_task_id: ' l_sql_tune_task_id); END; / EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => '&sql_id'); SET LONG 10000; SET PAGESIZE 1000 SET LINESIZE 200 SELECT DBMS_SQLTUNE.report_tuning_task('&sql_id') AS recommendations FROM dual; SET PAGESIZE 24 exec DBMS_SQLTUNE.drop_tuning_task (task_name =>'&sql_id');

40 Advisor Recommendations

41 Sql Tuning Advice - New index contains same columns but reversed.

42 OEM ADDM With Statistics 42

43 ADDM Commands-11g only 10g, must run the addmrpt.sql in?/rdbms/admin) var tname VARCHAR2(60); prompt Enter Start Date (mm/dd/yy hh24) accept beg_time prompt Enter End Date (mm/dd/yy hh24) accept end_time DECLARE bsnap NUMBER; esnap NUMBER; BEGIN select distinct BEGIN_SNAP_ID,END_SNAP_ID into bsnap,esnap from WRI$_ADV_ADDM_TASKS where BEGIN_TIME between to_date('&beg_time', 'mm/dd/yy hh24') and to_date('&end_time', 'mm/dd/yy hh24'); :tname := 'ADDM: ' bsnap '-' esnap; DBMS_ADDM.ANALYZE_DB(:tname, bsnap, esnap); END; / SET LONG SET PAGESIZE SELECT DBMS_ADDM.GET_REPORT(:tname) FROM DUAL;

44 ADDM Example Current Hour Example of ADDM Out put Analysis for current hour. Specific findings and suggestions

INTRODUCTION TO QUERY PERFORMANCE TUNING: A 12 STEP PROGRAM JANIS GRIFFIN SENIOR DBA / PERFORMANCE EVANGELIST

INTRODUCTION TO QUERY PERFORMANCE TUNING: A 12 STEP PROGRAM JANIS GRIFFIN SENIOR DBA / PERFORMANCE EVANGELIST INTRODUCTION TO QUERY PERFORMANCE TUNING: A 12 STEP PROGRAM JANIS GRIFFIN SENIOR DBA / PERFORMANCE EVANGELIST WHO AM I?» Senior DBA / Performance Evangelist for Solarwinds Janis.Griffin@solarwinds.com

More information

Oracle Database 11g: SQL Tuning Workshop

Oracle Database 11g: SQL Tuning Workshop Oracle University Contact Us: + 38516306373 Oracle Database 11g: SQL Tuning Workshop Duration: 3 Days What you will learn This Oracle Database 11g: SQL Tuning Workshop Release 2 training assists database

More information

Oracle Database 11g: SQL Tuning Workshop Release 2

Oracle Database 11g: SQL Tuning Workshop Release 2 Oracle University Contact Us: 1 800 005 453 Oracle Database 11g: SQL Tuning Workshop Release 2 Duration: 3 Days What you will learn This course assists database developers, DBAs, and SQL developers to

More information

SQL Tuning Proven Methodologies

SQL Tuning Proven Methodologies SQL Tuning Proven Methodologies V.Hariharaputhran V.Hariharaputhran o Twelve years in Oracle Development / DBA / Big Data / Cloud Technologies o All India Oracle Users Group (AIOUG) Evangelist o Passion

More information

1. This lesson introduces the Performance Tuning course objectives and agenda

1. This lesson introduces the Performance Tuning course objectives and agenda Oracle Database 11g: Performance Tuning The course starts with an unknown database that requires tuning. The lessons will proceed through the steps a DBA will perform to acquire the information needed

More information

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress* Oracle Database 11 g Performance Tuning Recipes Sam R. Alapati Darl Kuhn Bill Padfield Apress* Contents About the Authors About the Technical Reviewer Acknowledgments xvi xvii xviii Chapter 1: Optimizing

More information

Top 25+ DB2 SQL Tuning Tips for Developers. Presented by Tony Andrews, Themis Inc. tandrews@themisinc.com

Top 25+ DB2 SQL Tuning Tips for Developers. Presented by Tony Andrews, Themis Inc. tandrews@themisinc.com Top 25+ DB2 SQL Tuning Tips for Developers Presented by Tony Andrews, Themis Inc. tandrews@themisinc.com Objectives By the end of this presentation, developers should be able to: Understand what SQL Optimization

More information

D B M G Data Base and Data Mining Group of Politecnico di Torino

D B M G Data Base and Data Mining Group of Politecnico di Torino Politecnico di Torino Database Management System Oracle Hints Data Base and Data Mining Group of Politecnico di Torino Tania Cerquitelli Computer Engineering, 2014-2015, slides by Tania Cerquitelli and

More information

Oracle Database 11g: Performance Tuning DBA Release 2

Oracle Database 11g: Performance Tuning DBA Release 2 Oracle University Contact Us: 1.800.529.0165 Oracle Database 11g: Performance Tuning DBA Release 2 Duration: 5 Days What you will learn This Oracle Database 11g Performance Tuning training starts with

More information

An Oracle White Paper May 2011. The Oracle Optimizer Explain the Explain Plan

An Oracle White Paper May 2011. The Oracle Optimizer Explain the Explain Plan An Oracle White Paper May 2011 The Oracle Optimizer Explain the Explain Plan Introduction... 1 The Execution Plan... 2 Displaying the Execution plan... 3 What is Cost... 8 Understanding the execution plan...

More information

SQL Optimization & Access Paths: What s Old & New Part 1

SQL Optimization & Access Paths: What s Old & New Part 1 SQL Optimization & Access Paths: What s Old & New Part 1 David Simpson Themis Inc. dsimpson@themisinc.com 2008 Themis, Inc. All rights reserved. David Simpson is currently a Senior Technical Advisor at

More information

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos Keep It Simple - Common, Overlooked Performance Tuning Tips Paul Jackson Hotsos Who Am I? Senior Consultant at Hotsos Oracle Ace Co-Author of Oracle Applications DBA Field Guide Co-Author of Oracle R12

More information

Execution plans and tools

Execution plans and tools Execution plans and tools Dawid Wojcik Execution plans Execution plan Text or graphical representation of steps Oracle server takes to execute specific SQL Execution plan is a tree in which every node

More information

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 12c: Performance Management and Tuning NEW Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning

More information

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures] Plan de cours disponible à l adresse http://www.adhara.fr/.aspx Objectif Use the Oracle Database tuning methodology appropriate to the available tools Utilize database advisors to proactively tune an Oracle

More information

D B M G Data Base and Data Mining Group of Politecnico di Torino

D B M G Data Base and Data Mining Group of Politecnico di Torino Database Management Data Base and Data Mining Group of tania.cerquitelli@polito.it A.A. 2014-2015 Optimizer objective A SQL statement can be executed in many different ways The query optimizer determines

More information

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events Introducción Objetivos Objetivos del Curso Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events Using Automatic Workload Repository Managing the

More information

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop What you will learn This Oracle Database 11g SQL Tuning Workshop training is a DBA-centric course that teaches you how

More information

Delivering Oracle Success. Automatic SQL Tuning in Oracle Database 10g and 11g. Lucy Feng. RMOUG Training Days February 15-17, 2011

Delivering Oracle Success. Automatic SQL Tuning in Oracle Database 10g and 11g. Lucy Feng. RMOUG Training Days February 15-17, 2011 Delivering Oracle Success Automatic SQL Tuning in Oracle Database 10g and 11g Lucy Feng RMOUG Training Days February 15-17, 2011 About DBAK Oracle solution provider Co-founded in 2005 Based in Englewood,

More information

Displaying Data from Multiple Tables. Chapter 4

Displaying Data from Multiple Tables. Chapter 4 Displaying Data from Multiple Tables Chapter 4 1 Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data from more than one table using equality

More information

Oracle Database 12c: SQL Tuning for Developers. Sobre o curso. Destinatários. Oracle - Linguagens. Nível: Avançado Duração: 18h

Oracle Database 12c: SQL Tuning for Developers. Sobre o curso. Destinatários. Oracle - Linguagens. Nível: Avançado Duração: 18h Oracle Database 12c: SQL Tuning for Developers Oracle - Linguagens Nível: Avançado Duração: 18h Sobre o curso In the Oracle Database: SQL Tuning for Developers course, you learn about Oracle SQL tuning

More information

Displaying Data from Multiple Tables

Displaying Data from Multiple Tables Displaying Data from Multiple Tables 1 Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data from more than one table using eguality and

More information

Advanced Oracle SQL Tuning

Advanced Oracle SQL Tuning Advanced Oracle SQL Tuning Seminar content technical details 1) Understanding Execution Plans In this part you will learn how exactly Oracle executes SQL execution plans. Instead of describing on PowerPoint

More information

Fallacies of the Cost Based Optimizer

Fallacies of the Cost Based Optimizer Fallacies of the Cost Based Optimizer Wolfgang Breitling breitliw@centrexcc.com Who am I Independent consultant since 1996 specializing in Oracle and Peoplesoft setup, administration, and performance tuning

More information

SQL the natural language for analysis ORACLE WHITE PAPER JUNE 2015

SQL the natural language for analysis ORACLE WHITE PAPER JUNE 2015 SQL the natural language for analysis ORACLE WHITE PAPER JUNE 2015 Contents Overview 1 Introduction 1 Powerful Framework 1 Simplified Optimization 6 Continuous Evolution 8 Standards Based 9 Why Oracle

More information

Best Practices for DB2 on z/os Performance

Best Practices for DB2 on z/os Performance Best Practices for DB2 on z/os Performance A Guideline to Achieving Best Performance with DB2 Susan Lawson and Dan Luksetich www.db2expert.com and BMC Software September 2008 www.bmc.com Contacting BMC

More information

Iggy Fernandez, Database Specialists DEFINING EFFICIENCY TUNING BY EXAMPLE CREATING AND POPULATING THE TABLES

Iggy Fernandez, Database Specialists DEFINING EFFICIENCY TUNING BY EXAMPLE CREATING AND POPULATING THE TABLES XTREME SQL TUNING: THE TUNING LIMBO Iggy Fernandez, Database Specialists This paper is based on the chapter on SQL tuning in my book Beginning Oracle Database 11g Administration (Apress, 2009). I present

More information

Top 10 Oracle SQL Developer Tips and Tricks

Top 10 Oracle SQL Developer Tips and Tricks Top 10 Oracle SQL Developer Tips and Tricks December 17, 2013 Marc Sewtz Senior Software Development Manager Oracle Application Express Oracle America Inc., New York, NY The following is intended to outline

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Oracle Database 12c: Introduction to SQL Ed 1.1

Oracle Database 12c: Introduction to SQL Ed 1.1 Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Introduction to SQL Ed 1.1 Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,

More information

Oracle EXAM - 1Z0-117. Oracle Database 11g Release 2: SQL Tuning. Buy Full Product. http://www.examskey.com/1z0-117.html

Oracle EXAM - 1Z0-117. Oracle Database 11g Release 2: SQL Tuning. Buy Full Product. http://www.examskey.com/1z0-117.html Oracle EXAM - 1Z0-117 Oracle Database 11g Release 2: SQL Tuning Buy Full Product http://www.examskey.com/1z0-117.html Examskey Oracle 1Z0-117 exam demo product is here for you to test the quality of the

More information

The Sins of SQL Programming that send the DB to Upgrade Purgatory Abel Macias. 1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

The Sins of SQL Programming that send the DB to Upgrade Purgatory Abel Macias. 1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. The Sins of SQL Programming that send the DB to Upgrade Purgatory Abel Macias 1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. Who is Abel Macias? 1994 - Joined Oracle Support 2000

More information

DB2 Developers Guide to Optimum SQL Performance

DB2 Developers Guide to Optimum SQL Performance DB2 Developers Guide to Optimum SQL Performance Réunion du Guide DB2 pour z/os France Lundi 18 mars 2013 Tour Euro Plaza, Paris-La Défense Tom Beavin Silicon Valley Lab Email: beavin@us.ibm.com 2012 IBM

More information

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle 1Z0-117 Oracle Database 11g Release 2: SQL Tuning Oracle To purchase Full version of Practice exam click below; http://www.certshome.com/1z0-117-practice-test.html FOR Oracle 1Z0-117 Exam Candidates We

More information

Query tuning by eliminating throwaway

Query tuning by eliminating throwaway Query tuning by eliminating throwaway This paper deals with optimizing non optimal performing queries. Abstract Martin Berg (martin.berg@oracle.com) Server Technology System Management & Performance Oracle

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to

More information

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management DBA Best Practices: A Primer on Managing Oracle Databases Leng Leng Tan Vice President, Systems and Applications Management The following is intended to outline our general product direction. It is intended

More information

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Physical Design. Phases of database design. Physical design: Inputs.

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Physical Design. Phases of database design. Physical design: Inputs. Phases of database design Application requirements Conceptual design Database Management Systems Conceptual schema Logical design ER or UML Physical Design Relational tables Logical schema Physical design

More information

SQL QUERY TUNING FOR ORACLE. Getting It Right the First Time

SQL QUERY TUNING FOR ORACLE. Getting It Right the First Time SQL QUERY TUNING FOR ORACLE Getting It Right the First Time INTRODUCTION As part of my job as a Senior DBA, I get to review Oracle database performance data with hundreds of customers a year. During the

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

Execution Plans: The Secret to Query Tuning Success. MagicPASS January 2015

Execution Plans: The Secret to Query Tuning Success. MagicPASS January 2015 Execution Plans: The Secret to Query Tuning Success MagicPASS January 2015 Jes Schultz Borland plan? The following steps are being taken Parsing Compiling Optimizing In the optimizing phase An execution

More information

Writing SQL. PegaRULES Process Commander

Writing SQL. PegaRULES Process Commander Writing SQL PegaRULES Process Commander Copyright 2007 Pegasystems Inc., Cambridge, MA All rights reserved. This document describes products and services of Pegasystems Inc. It may contain trade secrets

More information

Subqueries Chapter 6

Subqueries Chapter 6 Subqueries Chapter 6 Objectives After completing this lesson, you should be able to do the follovving: Describe the types of problems that subqueries can solve Define subqueries List the types of subqueries

More information

Maximizing Materialized Views

Maximizing Materialized Views Maximizing Materialized Views John Jay King King Training Resources john@kingtraining.com Download this paper and code examples from: http://www.kingtraining.com 1 Session Objectives Learn how to create

More information

Instant SQL Programming

Instant SQL Programming Instant SQL Programming Joe Celko Wrox Press Ltd. INSTANT Table of Contents Introduction 1 What Can SQL Do for Me? 2 Who Should Use This Book? 2 How To Use This Book 3 What You Should Know 3 Conventions

More information

SQL Server Query Tuning

SQL Server Query Tuning SQL Server Query Tuning A 12-Step Program By Thomas LaRock, Technical Evangelist and Head Geek Confio Software 4772 Walnut Street, Suite 100 Boulder, CO 80301 www.confio.com Introduction Query tuning is

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led

More information

Mini User's Guide for SQL*Plus T. J. Teorey

Mini User's Guide for SQL*Plus T. J. Teorey Mini User's Guide for SQL*Plus T. J. Teorey Table of Contents Oracle/logging-in 1 Nested subqueries 5 SQL create table/naming rules 2 Complex functions 6 Update commands 3 Save a query/perm table 6 Select

More information

SQL Query Evaluation. Winter 2006-2007 Lecture 23

SQL Query Evaluation. Winter 2006-2007 Lecture 23 SQL Query Evaluation Winter 2006-2007 Lecture 23 SQL Query Processing Databases go through three steps: Parse SQL into an execution plan Optimize the execution plan Evaluate the optimized plan Execution

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along

More information

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit. Is your database application experiencing poor response time, scalability problems, and too many deadlocks or poor application performance? One or a combination of zparms, database design and application

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the

More information

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features 1 Oracle SQL Developer 3.0: Overview and New Features Sue Harper Senior Principal Product Manager The following is intended to outline our general product direction. It is intended

More information

Oracle Database 10g: New Features for Administrators

Oracle Database 10g: New Features for Administrators Oracle Database 10g: New Features for Administrators Course ON10G 5 Day(s) 30:00 Hours Introduction This course introduces students to the new features in Oracle Database 10g Release 2 - the database for

More information

MOC 20461C: Querying Microsoft SQL Server. Course Overview

MOC 20461C: Querying Microsoft SQL Server. Course Overview MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server

More information

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy MyOra 3.5 SQL Tool for Oracle User Guide Kris Murthy Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL Editor...

More information

Using TimesTen between your Application and Oracle. between your Application and Oracle. DOAG Conference 2011

Using TimesTen between your Application and Oracle. between your Application and Oracle. DOAG Conference 2011 DOAG Conference 2011 Using TimesTen between your Application and Oracle Jan Ott, Roland Stirnimann Senior Consultants Trivadis AG BASEL 1 BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG

More information

Oracle DBA Course Contents

Oracle DBA Course Contents Oracle DBA Course Contents Overview of Oracle DBA tasks: Oracle as a flexible, complex & robust RDBMS The evolution of hardware and the relation to Oracle Different DBA job roles(vp of DBA, developer DBA,production

More information

SQL Performance Hero and OMG Method vs the Anti-patterns. Jeff Jacobs Jeffrey Jacobs & Associates jmjacobs@jeffreyjacobs.com

SQL Performance Hero and OMG Method vs the Anti-patterns. Jeff Jacobs Jeffrey Jacobs & Associates jmjacobs@jeffreyjacobs.com SQL Performance Hero and OMG Method vs the Anti-patterns Jeff Jacobs Jeffrey Jacobs & Associates jmjacobs@jeffreyjacobs.com Survey Says DBAs Developers Architects Heavily non-oracle development shop Concerned

More information

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 12c: Performance Management and Tuning NEW Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning

More information

Hacking and Protecting Oracle DB. Slavik Markovich CTO, Sentrigo

Hacking and Protecting Oracle DB. Slavik Markovich CTO, Sentrigo Hacking and Protecting Oracle DB Slavik Markovich CTO, Sentrigo What s This Presentation About? Explore SQL injection in depth Protect your code Finding vulnerable code Real world example What We'll Not

More information

First, here are our three tables in a fictional sales application:

First, here are our three tables in a fictional sales application: Introduction to Oracle SQL Tuning Bobby Durrett Introduction Tuning a SQL statement means making the SQL query run as fast as you need it to. In many cases this means taking a long running query and reducing

More information

Database Query 1: SQL Basics

Database Query 1: SQL Basics Database Query 1: SQL Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic

More information

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package 7 2015-11-24. Data Federation Administration Tool Guide

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package 7 2015-11-24. Data Federation Administration Tool Guide SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package 7 2015-11-24 Data Federation Administration Tool Guide Content 1 What's new in the.... 5 2 Introduction to administration

More information

Programming with SQL

Programming with SQL Unit 43: Programming with SQL Learning Outcomes A candidate following a programme of learning leading to this unit will be able to: Create queries to retrieve information from relational databases using

More information

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering About Author Kai Yu Senior System Engineer, Dell Oracle Solutions

More information

Who am I? Copyright 2014, Oracle and/or its affiliates. All rights reserved. 3

Who am I? Copyright 2014, Oracle and/or its affiliates. All rights reserved. 3 Oracle Database In-Memory Power the Real-Time Enterprise Saurabh K. Gupta Principal Technologist, Database Product Management Who am I? Principal Technologist, Database Product Management at Oracle Author

More information

Oracle/SQL Tutorial 1

Oracle/SQL Tutorial 1 Oracle/SQL Tutorial 1 Michael Gertz Database and Information Systems Group Department of Computer Science University of California, Davis gertz@cs.ucdavis.edu http://www.db.cs.ucdavis.edu This Oracle/SQL

More information

SQL Performance for a Big Data 22 Billion row data warehouse

SQL Performance for a Big Data 22 Billion row data warehouse SQL Performance for a Big Data Billion row data warehouse Dave Beulke dave @ d a v e b e u l k e.com Dave Beulke & Associates Session: F19 Friday May 8, 15 8: 9: Platform: z/os D a v e @ d a v e b e u

More information

Response Time Analysis

Response Time Analysis Response Time Analysis A Pragmatic Approach for Tuning and Optimizing Database Performance By Dean Richards Confio Software 4772 Walnut Street, Suite 100 Boulder, CO 80301 866.CONFIO.1 www.confio.com Introduction

More information

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/- Oracle Objective: Oracle has many advantages and features that makes it popular and thereby makes it as the world's largest enterprise software company. Oracle is used for almost all large application

More information

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia 1. SQL Review Single Row Functions Character Functions Date Functions Numeric Function Conversion Functions General Functions

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle SQL. Course Summary. Duration. Objectives Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data

More information

Query Optimization in Oracle Database10g Release 2. An Oracle White Paper June 2005

Query Optimization in Oracle Database10g Release 2. An Oracle White Paper June 2005 Query Optimization in Oracle Database10g Release 2 An Oracle White Paper June 2005 Query Optimization in Oracle Database 10g Release 2 Executive Overview...4 Introduction...4 What is a query optimizer?...4

More information

Real-Time SQL Monitoring. December 2009

Real-Time SQL Monitoring. December 2009 Real-Time SQL Monitoring December 2009 Real-Time SQL Monitoring INTRODUCTION Real-time SQL monitoring, introduced in Oracle Database 11g, provides a very effective way to identify run-time performance

More information

How To Improve Performance In A Database

How To Improve Performance In A Database 1 PHIL FACTOR GRANT FRITCHEY K. BRIAN KELLEY MICKEY STUEWE IKE ELLIS JONATHAN ALLEN LOUIS DAVIDSON 2 Database Performance Tips for Developers As a developer, you may or may not need to go into the database

More information

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering Oracle OpenWorld 2010, Session S316263 3:00-4:00pm, Thursday 23-Sep-2010

More information

Advanced SQL. Jim Mason. www.ebt-now.com Web solutions for iseries engineer, build, deploy, support, train 508-728-4353. jemason@ebt-now.

Advanced SQL. Jim Mason. www.ebt-now.com Web solutions for iseries engineer, build, deploy, support, train 508-728-4353. jemason@ebt-now. Advanced SQL Jim Mason jemason@ebt-now.com www.ebt-now.com Web solutions for iseries engineer, build, deploy, support, train 508-728-4353 What We ll Cover SQL and Database environments Managing Database

More information

SQL Tuning Without Trying

SQL Tuning Without Trying SQL Tuning Without Trying Arup Nanda Longtime Oracle DBA Scenario Situation: Query from hell pops up, brings the DB to its knees DBA is blamed for the failure Aftermath DBA: Developer should have taken

More information

The Power of 11g Automatic SQL Tuning Julian Dontcheff, Nokia, OCM

The Power of 11g Automatic SQL Tuning Julian Dontcheff, Nokia, OCM The Power of 11g Automatic SQL Tuning Julian Dontcheff, Nokia, OCM What is Automatic SQL Tuning? Oracle automatically runs the SQL Tuning Advisor on selected high-load SQL statements from the Automatic

More information

Introduction to the Oracle DBMS

Introduction to the Oracle DBMS Introduction to the Oracle DBMS Kristian Torp Department of Computer Science Aalborg University www.cs.aau.dk/ torp torp@cs.aau.dk December 2, 2011 daisy.aau.dk Kristian Torp (Aalborg University) Introduction

More information

Performance Tuning for the JDBC TM API

Performance Tuning for the JDBC TM API Performance Tuning for the JDBC TM API What Works, What Doesn't, and Why. Mark Chamness Sr. Java Engineer Cacheware Beginning Overall Presentation Goal Illustrate techniques for optimizing JDBC API-based

More information

SQL SELECT Query: Intermediate

SQL SELECT Query: Intermediate SQL SELECT Query: Intermediate IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview SQL Select Expression Alias revisit Aggregate functions - complete Table join - complete Sub-query in where Limiting

More information

University of Massachusetts Amherst Department of Computer Science Prof. Yanlei Diao

University of Massachusetts Amherst Department of Computer Science Prof. Yanlei Diao University of Massachusetts Amherst Department of Computer Science Prof. Yanlei Diao CMPSCI 445 Midterm Practice Questions NAME: LOGIN: Write all of your answers directly on this paper. Be sure to clearly

More information

RDBMS Using Oracle. Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture. kamran.munir@gmail.com. Joining Tables

RDBMS Using Oracle. Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture. kamran.munir@gmail.com. Joining Tables RDBMS Using Oracle Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture Joining Tables Multiple Table Queries Simple Joins Complex Joins Cartesian Joins Outer Joins Multi table Joins Other Multiple

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 Oracle University Contact Us: 1.800.529.0165 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database.

More information

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com Oracle Database 10g The Self-Managing Database Benoit Dageville Oracle Corporation benoit.dageville@oracle.com Agenda Oracle10g: Oracle s first generation of self-managing database Oracle s Approach to

More information

University of Aarhus. Databases 2009. 2009 IBM Corporation

University of Aarhus. Databases 2009. 2009 IBM Corporation University of Aarhus Databases 2009 Kirsten Ann Larsen What is good performance? Elapsed time End-to-end In DB2 Resource consumption CPU I/O Memory Locks Elapsed time = Sync. I/O + CPU + wait time I/O

More information

In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR

In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR 1 2 2 3 In this session, we use the table ZZTELE with approx. 115,000 records for the examples. The primary key is defined on the columns NAME,VORNAME,STR The uniqueness of the primary key ensures that

More information

Tune That SQL for Supercharged DB2 Performance! Craig S. Mullins, Corporate Technologist, NEON Enterprise Software, Inc.

Tune That SQL for Supercharged DB2 Performance! Craig S. Mullins, Corporate Technologist, NEON Enterprise Software, Inc. Tune That SQL for Supercharged DB2 Performance! Craig S. Mullins, Corporate Technologist, NEON Enterprise Software, Inc. Table of Contents Overview...................................................................................

More information

SQL Introduction Chapter 7, sections 1 & 4. Introduction to SQL. Introduction to SQL. Introduction to SQL

SQL Introduction Chapter 7, sections 1 & 4. Introduction to SQL. Introduction to SQL. Introduction to SQL SQL Introduction Chapter 7, sections 1 & 4 Objectives To understand Oracle s SQL client interface Understand the difference between commands to the interface and SQL language. To understand the Oracle

More information

Database Programming with PL/SQL: Learning Objectives

Database Programming with PL/SQL: Learning Objectives Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs

More information

MS SQL Performance (Tuning) Best Practices:

MS SQL Performance (Tuning) Best Practices: MS SQL Performance (Tuning) Best Practices: 1. Don t share the SQL server hardware with other services If other workloads are running on the same server where SQL Server is running, memory and other hardware

More information

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which is resulting in either having to cross train DBA s

More information

Producing Readable Output with SQL*Plus

Producing Readable Output with SQL*Plus Producing Readable Output with SQL*Plus Chapter 8 Objectives After completing this lesson, you should be able to do the following: Produce queries that require an input variable Customize the SQL*Plus

More information

Partitioning under the hood in MySQL 5.5

Partitioning under the hood in MySQL 5.5 Partitioning under the hood in MySQL 5.5 Mattias Jonsson, Partitioning developer Mikael Ronström, Partitioning author Who are we? Mikael is a founder of the technology behind NDB

More information

Understanding Query Processing and Query Plans in SQL Server. Craig Freedman Software Design Engineer Microsoft SQL Server

Understanding Query Processing and Query Plans in SQL Server. Craig Freedman Software Design Engineer Microsoft SQL Server Understanding Query Processing and Query Plans in SQL Server Craig Freedman Software Design Engineer Microsoft SQL Server Outline SQL Server engine architecture Query execution overview Showplan Common

More information

DBMS / Business Intelligence, SQL Server

DBMS / Business Intelligence, SQL Server DBMS / Business Intelligence, SQL Server Orsys, with 30 years of experience, is providing high quality, independant State of the Art seminars and hands-on courses corresponding to the needs of IT professionals.

More information

Oracle 10g PL/SQL Training

Oracle 10g PL/SQL Training Oracle 10g PL/SQL Training Course Number: ORCL PS01 Length: 3 Day(s) Certification Exam This course will help you prepare for the following exams: 1Z0 042 1Z0 043 Course Overview PL/SQL is Oracle's Procedural

More information

Improving SQL efficiency using CASE

Improving SQL efficiency using CASE Improving SQL efficiency using CASE Some time ago I wrote The Power of Decode - a paper on using the DECODE function to improve report performance. I was aware at the time that DECODE was being replaced

More information