Introduction to SQL Tuning. 1. Introduction to SQL Tuning. 2001 SkillBuilders, Inc. SKILLBUILDERS



Similar documents
Oracle Database 11g: SQL Tuning Workshop

Oracle Database 11g: SQL Tuning Workshop Release 2

Oracle EXAM - 1Z Oracle Database 11g Release 2: SQL Tuning. Buy Full Product.

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

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

Oracle Architecture, Concepts & Facilities

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/-

Advanced Oracle SQL Tuning

Oracle Architecture. Overview

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

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

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

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Oracle DBA Course Contents

- An Oracle9i RAC Solution

Oracle9i DBA Fundamentals I

Oracle Database 11g: Administration Workshop I Release 2

LOGGING OR NOLOGGING THAT IS THE QUESTION

Oracle Database 11g: Administration Workshop I Release 2

ORACLE DATABASE 11G: COMPLETE

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

Oracle Database Security and Audit

Rdb Directions & Strategies

Oracle Database: SQL and PL/SQL Fundamentals NEW

Performance Baseline of Oracle Exadata X2-2 HR HC. Part II: Server Performance. Benchware Performance Suite Release 8.4 (Build ) September 2013

Oracle 11g Database Administration

Oracle Database 10g: New Features for Administrators

Oracle Database 11g: Administration Workshop I

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

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

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

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 TUNING FOR PEOPLESOFT APPLICATIONS

Part 5: More Data Structures for Relations

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop I Release 2. 5 Jours [35 Heures]

Expert Oracle. Database Architecture. Techniques and Solutions. 10gr, and 11g Programming. Oracle Database 9/, Second Edition.

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

Delivery Method: Instructor-led, group-paced, classroom-delivery learning model with structured, hands-on activities.

What's the Point of Oracle Checkpoints? Harald van Breederode Oracle University 29-OCT-2009

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

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

Senior Oracle Developer Call us today to schedule this resource. CORP: (214) CENDIEN

Oracle 11g DBA Training Course Content

An Oracle White Paper May Guide for Developing High-Performance Database Applications

TUTORIAL WHITE PAPER. Application Performance Management. Investigating Oracle Wait Events With VERITAS Instance Watch

Backup Types. Backup and Recovery. Categories of Failures. Issues. Logical. Cold. Hot. Physical With. Statement failure

Oracle Database 11g: Performance Tuning DBA Release 2

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

PERFORMANCE TIPS FOR BATCH JOBS

High-Performance Oracle: Proven Methods for Achieving Optimum Performance and Availability

Module 2: Database Architecture

Topics in basic DBMS course

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

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

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

ORACLE INSTANCE ARCHITECTURE

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

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

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

RARITAN VALLEY COMMUNITY COLLEGE COMPUTER SCIENCE (CS) DEPARTMENT. CISY-294, Oracle: Database Administration Fundamentals Part I

Performance Baseline of Hitachi Data Systems HUS VM All Flash Array for Oracle

Oracle server: An Oracle server includes an Oracle Instance and an Oracle database.

Oracle Database 12c: Administration Workshop NEW

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Oracle Database 12c: Performance Management and Tuning NEW

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Module 3: Instance Architecture Part 1

Technical Comparison of Oracle Database vs. SQL Server 2000: Focus on Performance. An Oracle White Paper December 2003

Module 15: Monitoring

Enterprise DBA Part 1A: Architecture and Administration

CONFIGURING AND OPERATING STREAMED PROCESSING IN PEOPLESOFT GLOBAL PAYROLL IN PEOPLETOOLS 8.48/9

Oracle Database Creation for Perceptive Process Design & Enterprise

Performance And Scalability In Oracle9i And SQL Server 2000

Oracle Database Capacity Planning. Krishna Manoharan

SQL Server 2005 Features Comparison

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

Oracle9i Data Guard: SQL Apply Best Practices. An Oracle White Paper September 2003

Oracle Database 10g: Parallelism and Scalability Overview Seminar

Oracle - Engineered for Innovation. Thomas Kyte

Scaling To Infinity: Partitioning Data Warehouses on Oracle Database. Thursday 15-November 2012 Tim Gorman

Holistic Approach to DBMS Tuning

Transaction Performance Maximizer InterMax

An Oracle White Paper March Best Practices for Implementing a Data Warehouse on the Oracle Exadata Database Machine

news from Tom Bacon about Monday's lecture

ORACLE DATABASE ADMINISTRATION PROGRAM LEARNING OUTCOMES

Oracle Database. Performance. and Scalability. A Quantitative Approach. Henry H. Liu. as Computer SOCIETY A JOHN WILEY & SONS, INC.

Experiment 5.1 How to measure performance of database applications?

Oracle Database 10g: Administration Workshop II Release 2

Performance Verbesserung von SAP BW mit SQL Server Columnstore

SQL Server Query Tuning

Optimizing with Open Source Technology Postgres

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #

Optimize Oracle Business Intelligence Analytics with Oracle 12c In-Memory Database Option

Oracle Enterprise Manager

Module 8: Server Management

ORACLE DBA 11G TRAINING

Transcription:

Page 1 1. Introduction to SQL Tuning SKILLBUILDERS

Page 2 1.2 Objectives Understand what can be tuned Understand what we need to know in order to tune SQL

Page 3 1.3 What Can Be Tuned? Data Access SQL Application Logic: 3GL code, PL/SQL Database server Instance Tuning, Memory Tuning Utilities SQL*Loader, Import/Export Network Net8, network infrastructure SQL statements such as SELECT, UPDATE and DELETE utilize the Oracle optimizer to determine the fastest access path. However, we can influence the decision of the optimizer when needed to alter the access path. This is the process of tuning the statement. Application logic can be tuned. For example, a 3GL such as C or COBOL can incorporate array processing. PL/SQL can use bulk bind, available in Oracle8i. The database server itself can be tuned - the sized of memory areas such as the database buffer cache have a huge impact on overall performance. Also, tuning the background processes such as DBWR and LGWR is possible. Utilities such as SQL*LOADER can be tuned to optimize the loading of large amounts of data in the the database. For example, the direct path option can significantly reduce overall load times. Finally, the network can be tuned. From and Oracle perspective, this would include tuning Net8 (formerly SQL*Net). Options such as connection pooling can be critical in today s world of high access internet applications

Page 4 1.4 What This Course Covers Data Access Tuning Tuning SQL Statements Tuning PL/SQL programs In this course we will cover SQL tuning and application logic tuning, including tuning PL/SQL programs. Tuning the database server, network and utilities is covered in a database performance tuning for administrators class.

Page 5 Tuning SQL: What We Need to Know 1.5 Understand database processes SQL statement execution, optimization, parallel execution Understand database memory structures Shared Pool, Database Buffer Cache Understand database objects tables, indexes B-Tree, Bitmap, Index-Organized Tables, Function- Based Indexes, Reverse Key Indexes Tuning an SQL statement requires the understanding of many things about the database such as: Database Processes - You must understand how a statement is executed by Oracle and how the Oracle optimizer works. Also, parallelization is critical, especially in multi-cpu environments. Memory Processes - database buffer cache. You must understand the purpose of the shared pool and Database Objects - It is not possible to tune an SQL statement without understanding indexes! Data storage in tables or clusters can also have an effect. Access Paths - The Oracle optimizer can choose from many different access paths. You must understand what these are and which may provide better performance under the current circumstances. Explain and Trace - You will need to learn the mechanics of determining what is going on when you execute the statement you are trying to tune. Tools such as EXPLAIN and trace allow us to see under the covers!

Page 6 Tuning SQL: What We Need to Know Understand Access Paths Full Scans, Index Scans Learn to Explain and Trace Statements Externalize access path being used -EXPLAIN Tune the SQL Statement! Add, modify or drop indexes use hints recode the SQL statement and more! 1.6

Page 7 Tuning Programs: What We Need to Know PL/SQL Promote use of stored database objects Packages Bulk Binds General Sequences Deadlock avoidance Rollback Segments 1.7 PL/SQL programs can be tuned. Just the proper use of stored PL/SQL programs will increase the performance of your application, implementing PL/SQL packages and techniques such as bulk bind will also increase performance. Application performance (3GL or PL/SQL) can sometimes be improved with the use of sequences, coding for deadlock avoidance and be segregating UNDO into a separate rollback segment. All of the techniques mentioned above will be covered in this course