Adaptive Query Optimization

Size: px
Start display at page:

Download "Adaptive Query Optimization"

Transcription

1 Oracle OpenWorld, Christian Antognini BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA 1

2 @ChrisAntognini Senior principal consultant, trainer and partner at Trivadis in Zurich (CH) Focus: get the most out of Oracle Database Logical and physical database design Query optimizer Application performance management Author of Troubleshooting Oracle Performance (Apress, 2008/2014) OakTable Network, Oracle ACE Director 2

3 Introduction Over the years Oracle has extremely improved the capabilities of the query optimizer Most of the improvements fall into one of the following areas Enhance the quality of the inputs (e.g. objects statistics) Make the gathering and management of object statistics easier and more efficient Use new data structures Implement or enhance query transformations Improve plan stability Cope with poor estimations that leads to poor execution plans 12c is no exception, every one of these areas were improved 3

4 Features Adaptive plans (Enterprise Edition only) Join methods Parallel distribution methods Star transformation Adaptive statistics SQL plan directives Automatic reoptimization - Statistics feedback (evolution of cardinality feedback) - Performance feedback Dynamic statistics (evolution of dynamic sampling) 4

5 OPTIMIZER_ADAPTIVE_FEATURES Enables or disables adaptive query optimization features Adaptive plans SQL plan directives Automatic reoptimization - It isn t the case in (bug ) The default value is TRUE OPTIMIZER_DYNAMIC_SAMPLING controls dynamic statistics 5

6 OPTIMIZER_ADAPTIVE_REPORTING_ONLY Enables or disables reporting mode for adaptive query optimization features Useful to assess how an execution plan would change Use DBMS_XPLAN to get detail information about the analysis Might fail with an ORA-1001 (bug ) SELECT * FROM table(dbms_xplan.display_cursor(format=>'report')) The default value is FALSE 6

7 Adaptive Plans Challenge Object statistics don t always provide sufficient information to find an optimal execution plan To get additional insights, the query optimizer can take advantage of features like dynamic sampling and cardinality feedback Don t solve all issues, though 7

8 Adaptive Plans Concept As of 12c, the query optimizer can postpone some decisions until the execution phase The idea is to leverage information collected while executing part of an execution plan to determine how another part should be carried out The query optimizer uses adaptive plans in three situations: To switch the join method from a nested loops join to a hash join and vice versa To switch the PX distribution method from hash to broadcast/round-robin To disable the access to a dimension for execution plans using the star transformation 8

9 Adaptive Plans Join Method Switch The query optimizer adds subplans to execution plans One represents the nested loops join, the other the hash join One of the alternatives is the default plan One of the subplans is chosen during the first execution The choice is based on the number of rows actually processed The query optimizer computes an inflection point A new row source operation is used to partially buffer and count the rows STATISTICS COLLECTOR Limitation: if a too large buffer is required, no adaptive plan is used The execution plan that is actually executed is called the final plan 9

10 Adaptive Plans Join Method Switch Example adaptive_plan.sql SELECT * FROM t1, t2 WHERE t1.id = t2.id AND t1.n = Id Operation Name SELECT STATEMENT 1 HASH JOIN 2 NESTED LOOPS 3 NESTED LOOPS 4 STATISTICS COLLECTOR 5 TABLE ACCESS FULL T1 6 INDEX UNIQUE SCAN T2_PK 7 TABLE ACCESS BY INDEX ROWID T2 8 TABLE ACCESS FULL T

11 Adaptive Plans Join Method Switch Example adaptive_plan.sql SELECT * FROM t1, t2 WHERE t1.id = t2.id AND t1.n = Id Operation Name SELECT STATEMENT 1 HASH JOIN 2 NESTED LOOPS 3 NESTED LOOPS 4 STATISTICS COLLECTOR 5 TABLE ACCESS FULL T1 6 INDEX UNIQUE SCAN T2_PK 7 TABLE ACCESS BY INDEX ROWID T2 8 TABLE ACCESS FULL T

12 Adaptive Plans Join Method Switch Example adaptive_plan.sql SELECT * FROM t1, t2 WHERE t1.id = t2.id AND t1.n = Id Operation Name SELECT STATEMENT 1 HASH JOIN 2 NESTED LOOPS 3 NESTED LOOPS 4 STATISTICS COLLECTOR 5 TABLE ACCESS FULL T1 6 INDEX UNIQUE SCAN T2_PK 7 TABLE ACCESS BY INDEX ROWID T2 8 TABLE ACCESS FULL T

13 Adaptive Plans Join Method Switch Inflection Point For both join methods, the cost associated to different cardinalities is estimated The cardinality of the outer table varies The cardinality of the inner table remains fixed The query optimizer uses a binary search The search takes place between a minimum and maximum cardinality 13

14 Cost Adaptive Plans Join Method Switch Inflection Point Example 20,000 2, Nested Loops Join Hash Join 20 Cardinality (In Order of Execution) 14

15 Adaptive Plans Parallel Distribution Method New distribution method HYBRID HASH It helps avoiding some data skewing problems The actual distribution method is chosen at execution time STATISTICS COLLECTOR The decision takes place during each execution Number of rows < 2 * DOP Left input: BROADCAST / Right input: ROUND-ROBIN Number of rows 2 * DOP Left input: HASH / Right input: HASH 15

16 Adaptive Plans Parallel Distribution Method Example hybrid_hash.sql Operation Name TQ IN-OUT PQ Distrib SELECT STATEMENT SORT AGGREGATE PX COORDINATOR PX SEND QC (RANDOM) :TQ10002 Q1,02 P->S QC (RAND) SORT AGGREGATE Q1,02 PCWP HASH JOIN Q1,02 PCWP PX RECEIVE Q1,02 PCWP PX SEND HYBRID HASH :TQ10000 Q1,00 P->P HYBRID HASH STATISTICS COLLECTOR PX BLOCK ITERATOR Q1,00 PCWC Q1,00 PCWC TABLE ACCESS FULL T1 Q1,00 PCWP PX RECEIVE Q1,02 PCWP PX SEND HYBRID HASH :TQ10001 Q1,01 P->P HYBRID HASH PX BLOCK ITERATOR Q1,01 PCWC TABLE ACCESS FULL T2 Q1,01 PCWP

17 Adaptive Plans Star Transformation With the star transformation, the data of each dimension that has a restriction applied to it might be joined to the corresponding bitmap index of the fact If the number of rowids returned by such a join is underestimated, applying the filter can be detrimental to the performance With an adaptive plan the access to some dimensions can be disabled Decision takes place during the first execution only 17

18 Adaptive Plans Star Transformation Example Operation Name VIEW VW_ST_5497B905 NESTED LOOPS BITMAP CONVERSION TO ROWIDS BITMAP AND BITMAP MERGE BITMAP KEY ITERATION TABLE ACCESS FULL COLORS BITMAP INDEX RANGE SCAN CAR_COLOR_IDX STATISTICS COLLECTOR BITMAP MERGE BITMAP KEY ITERATION TABLE ACCESS FULL MODELS BITMAP INDEX RANGE SCAN CAR_MODEL_IDX TABLE ACCESS BY USER ROWID CARS

19 Adaptive Plans V$SQL.IS_RESOLVED_ADAPTIVE_PLAN NULL means that the execution plan associated to the cursor isn t adaptive N means that the final execution plan hasn t been determined Y means that the final execution plan was determined Also set if reporting mode is enabled Set for join method switches and star transformation only 19

20 Adaptive Statistics SQL Plan Directives SQL plan directives are automatically created when misestimates occur They are temporarily stored in the SGA and flushed to disk every 15 min by a background process They aren t tied to a specific SQL statement, but to specific tables/columns Several of them can be used for a single SQL statement They instruct the database engine to automatically create extended statistics Only column groups are considered The limit of 20 extensions applies to them as well If creating extended statistics isn t supported/possible/sensible, they instruct the query optimizer to use dynamic sampling 20

21 Adaptive Statistics Management of SQL Plan Directives The database engine automatically maintains SQL plan directives They are automatically created They are automatically purged if not used (by default after 53 weeks) They can be manually managed through DBMS_SPD Flush to disk SQL plan directives temporarily stored in the SGA Change retention period Immediate purge Alter attributes (ENABLED, AUTO_DROP) Pack/Unpack Requirement: ADMINISTER SQL MANAGEMENT OBJECT privilege 21

22 Adaptive Statistics SQL Plan Directives in the Data Dictionary DBA_SQL_PLAN_DIRECTIVES DBA_SQL_PLAN_DIR_OBJECTS SQL> SELECT type, reason, count(*) 2 FROM dba_sql_plan_directives 3 GROUP BY type, reason; TYPE REASON COUNT(*) DYNAMIC_SAMPLING SINGLE TABLE CARDINALITY MISESTIMATE 81 DYNAMIC_SAMPLING JOIN CARDINALITY MISESTIMATE 180 DYNAMIC_SAMPLING GROUP BY CARDINALITY MISESTIMATE 6 22

23 Adaptive Statistics Statistics Feedback statistics_feedback1.sql statistics_feedback2.sql Evolution of cardinality feedback Used for single-table cardinalities as well as join cardinalities Information about misestimates might be persisted through SQL plan directives For misestimates due to table functions no information is stored V$SQL.IS_REOPTIMIZABLE Y means that the next execution will trigger a reoptimization N means that no reoptimization is necessary R means that reoptimization information is available, but reporting mode was enabled 23

24 Adaptive Statistics Performance Feedback Enabled when PARALLEL_DEGREE_POLICY = ADAPTIVE Assessment of the auto DOP after the first execution If auto DOP is suboptimal, the next execution will trigger a reoptimization 24

25 Adaptive Statistics Dynamic Statistics dynamic_statistics.sql Evolution of dynamic sampling Used for single-table cardinalities as well as join and group-by cardinalities The query optimizer decides when and how to use dynamic statistics The data collected through dynamic statistics is shared through the result cache The sampling can t exceed a given amount of time The maximum is determined based on past executions (cursor cache, AWR) To use the new features OPTIMIZER_DYNAMIC_SAMPLING has to be set to 11 25

26 Summary Adaptive query optimization introduced a number of very interesting features The query optimizer is getting more and more dynamic 26

27 Questions and answers... Christian Antognini Senior Principal Consultant BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA Trivadis

Bloom Filters. Christian Antognini Trivadis AG Zürich, Switzerland

Bloom Filters. Christian Antognini Trivadis AG Zürich, Switzerland Bloom Filters Christian Antognini Trivadis AG Zürich, Switzerland Oracle Database uses bloom filters in various situations. Unfortunately, no information about their usage is available in Oracle documentation.

More information

Oracle White Paper June 2013. Optimizer with Oracle Database 12c

Oracle White Paper June 2013. Optimizer with Oracle Database 12c Oracle White Paper June 2013 Optimizer with Oracle Database 12c Disclaimer The following is intended to outline our general product direction. It is intended for information purposes only, and may not

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

Drilling Deep Into Exadata Performance With ASH, SQL Monitoring and Exadata Snapper

Drilling Deep Into Exadata Performance With ASH, SQL Monitoring and Exadata Snapper Drilling Deep Into Exadata Performance With ASH, SQL Monitoring and Exadata Snapper Tanel Põder Enkitec h=p:// h=p://blog.tanelpoder.com 1 Intro: About me Tanel Põder Former Oracle Database Performance

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

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

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

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

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

PARALLEL SQL. Chapter 13

PARALLEL SQL. Chapter 13 Chapter 13 PARALLEL SQL Parallel SQL enables a SQL statement to be processed by multiple threads or processes simultaneously. Today s widespread use of dual and quad core processors means that even the

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

Modern PL/SQL Code Checking and Dependency Analysis

Modern PL/SQL Code Checking and Dependency Analysis Modern PL/SQL Code Checking and Dependency Analysis Philipp Salvisberg Senior Principal Consultant BASEL BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA

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

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #2610771

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #2610771 ENHANCEMENTS TO SQL SERVER COLUMN STORES Anuhya Mallempati #2610771 CONTENTS Abstract Introduction Column store indexes Batch mode processing Other Enhancements Conclusion ABSTRACT SQL server introduced

More information

Oracle Audit in a Nutshell - Database Audit but how?

Oracle Audit in a Nutshell - Database Audit but how? Oracle Audit in a Nutshell - Database Audit but how? DOAG + SOUG Security-Lounge Stefan Oehrli Senior Consultant Discipline Manager Trivadis AG Basel 24. April 2012 BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF

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

Safe Harbor Statement

Safe Harbor Statement Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment

More information

CUIT with Visual Studio and TFS

CUIT with Visual Studio and TFS CUIT with Visual Studio and TFS TechEvent 2014 Thomas Gassmann Daniel Steinlin BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA 1 AGENDA 1. What

More information

SOUG-SIG Data Replication With Oracle GoldenGate Looking Behind The Scenes Robert Bialek Principal Consultant Partner

SOUG-SIG Data Replication With Oracle GoldenGate Looking Behind The Scenes Robert Bialek Principal Consultant Partner SOUG-SIG Data Replication With Oracle GoldenGate Looking Behind The Scenes Robert Bialek Principal Consultant Partner BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN

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

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

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

Performance Tuning for the Teradata Database

Performance Tuning for the Teradata Database Performance Tuning for the Teradata Database Matthew W Froemsdorf Teradata Partner Engineering and Technical Consulting - i - Document Changes Rev. Date Section Comment 1.0 2010-10-26 All Initial document

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 Failover Database Cluster with Grid Infrastructure 12c Release 1

Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 Robert Bialek, MU-IMS Principal Consultant BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH

More information

Oracle Database In-Memory A Practical Solution

Oracle Database In-Memory A Practical Solution Oracle Database In-Memory A Practical Solution Sreekanth Chintala Oracle Enterprise Architect Dan Huls Sr. Technical Director, AT&T WiFi CON3087 Moscone South 307 Safe Harbor Statement The following is

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

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

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

SQL. by Steven Holzner, Ph.D. ALPHA. A member of Penguin Group (USA) Inc.

SQL. by Steven Holzner, Ph.D. ALPHA. A member of Penguin Group (USA) Inc. SQL by Steven Holzner, Ph.D. A ALPHA A member of Penguin Group (USA) Inc. Contents Part 1: Mastering the SQL Basics 1 1 Getting into SQL 3 Understanding Databases 4 Creating Tables Creating Rows and Columns

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

Query Optimization in Oracle 12c Database In-Memory

Query Optimization in Oracle 12c Database In-Memory Query Optimization in Oracle 12c Database In-Memory Dinesh Das *, Jiaqi Yan *, Mohamed Zait *, Satyanarayana R Valluri, Nirav Vyas *, Ramarajan Krishnamachari *, Prashant Gaharwar *, Jesse Kamp *, Niloy

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 Architecture, Concepts & Facilities

Oracle Architecture, Concepts & Facilities COURSE CODE: COURSE TITLE: CURRENCY: AUDIENCE: ORAACF Oracle Architecture, Concepts & Facilities 10g & 11g Database administrators, system administrators and developers PREREQUISITES: At least 1 year of

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

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

Hadoop Internals for Oracle Developers and DBAs Exploring the HDFS and MapReduce Data Flow

Hadoop Internals for Oracle Developers and DBAs Exploring the HDFS and MapReduce Data Flow Hadoop Internals for Oracle Developers and DBAs Exploring the HDFS and MapReduce Data Flow Tanel Põder Enkitec h=p:// h=p://blog.tanelpoder.com @tanelpoder 1 Intro: About me Tanel Põder Former Oracle Database

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

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

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

Cloud aber Sicher. Florian van Keulen. Senior Consultant Cloud & Security

Cloud aber Sicher. Florian van Keulen. Senior Consultant Cloud & Security Cloud aber Sicher Florian van Keulen Senior Consultant Cloud & Security BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Since

More information

Database Administration with MySQL

Database Administration with MySQL Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational

More information

Secure Test Data Management with ORACLE Data Masking

Secure Test Data Management with ORACLE Data Masking Secure Test Data Management with ORACLE Data Masking Michael Schellin Consultant, OCM DOAG Regio München, Dec 2009 Baden Basel Bern Brugg Lausanne Zürich Düsseldorf Frankfurt/M. Freiburg i. Br. Hamburg

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

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

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

ROLAP with Column Store Index Deep Dive. Alexei Khalyako SQL CAT Program Manager alexeik@microsoft.com

ROLAP with Column Store Index Deep Dive. Alexei Khalyako SQL CAT Program Manager alexeik@microsoft.com ROLAP with Column Store Index Deep Dive Alexei Khalyako SQL CAT Program Manager alexeik@microsoft.com What are we doing now? 1000 of concurrent users 4TB Cube High speed loading Current design 14 th Jan

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 BI 11g R1: Build Repositories

Oracle BI 11g R1: Build Repositories Oracle University Contact Us: 1.800.529.0165 Oracle BI 11g R1: Build Repositories Duration: 5 Days What you will learn This Oracle BI 11g R1: Build Repositories training is based on OBI EE release 11.1.1.7.

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

WELCOME. Where and When should I use the Oracle Service Bus (OSB) Guido Schmutz. UKOUG Conference 2012 04.12.2012

WELCOME. Where and When should I use the Oracle Service Bus (OSB) Guido Schmutz. UKOUG Conference 2012 04.12.2012 WELCOME Where and When should I use the Oracle Bus () Guido Schmutz UKOUG Conference 2012 04.12.2012 BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN 1

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

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

How To Ensure Data Security On Anor

How To Ensure Data Security On Anor Oracle Database Security How much would you like? DOAG + SOUG Security-Lounge Stefan Oehrli Senior Consultant Discipline Manager Trivadis AG Basel 24. April 2012 BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT

More information

SQL Memory Management in Oracle9i

SQL Memory Management in Oracle9i SQL Management in Oracle9i Benoît Dageville Mohamed Zait Oracle Corporation Oracle Corporation 500 Oracle Parway 500 Oracle Parway Redwood Shores, CA 94065 Redwood Shores, CA 94065 U.S.A U.S.A Benoit.Dageville@oracle.com

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

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

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

<Insert Picture Here> Best Practices for Extreme Performance with Data Warehousing on Oracle Database

<Insert Picture Here> Best Practices for Extreme Performance with Data Warehousing on Oracle Database 1 Best Practices for Extreme Performance with Data Warehousing on Oracle Database Rekha Balwada Principal Product Manager Agenda Parallel Execution Workload Management on Data Warehouse

More information

Oracle Data Guard Fast Start Failover understood!

Oracle Data Guard Fast Start Failover understood! Oracle Data Guard Fast Start Failover understood! Dr. Martin Wunderli http://www.trivadis.com Principal Consultant Partner Basel Baden Bern Lausanne Zurich Düsseldorf Frankfurt/M. Freiburg i. Br. Hamburg

More information

Oracle Database In- Memory Op4on in Ac4on

Oracle Database In- Memory Op4on in Ac4on Oracle Database In- Memory Op4on in Ac4on Tanel Põder & Kerry Osborne Accenture Enkitec Group h4p:// 1 Tanel Põder Intro: About Consultant, Trainer, Troubleshooter Oracle Database Performance geek Exadata

More information

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

Scaling To Infinity: Partitioning Data Warehouses on Oracle Database. Thursday 15-November 2012 Tim Gorman www.evdbt.com NoCOUG Scaling To Infinity: Partitioning Data Warehouses on Oracle Database Thursday 15-November 2012 Tim Gorman www.evdbt.com NoCOUG Speaker Qualifications Co-author 1. Oracle8 Data Warehousing, 1998

More information

SQL Server Query Tuning

SQL Server Query Tuning SQL Server Query Tuning Klaus Aschenbrenner Independent SQL Server Consultant SQLpassion.at Twitter: @Aschenbrenner About me Independent SQL Server Consultant International Speaker, Author Pro SQL Server

More information

low-level storage structures e.g. partitions underpinning the warehouse logical table structures

low-level storage structures e.g. partitions underpinning the warehouse logical table structures DATA WAREHOUSE PHYSICAL DESIGN The physical design of a data warehouse specifies the: low-level storage structures e.g. partitions underpinning the warehouse logical table structures low-level structures

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

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

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 Business Intelligence Server Administration Guide. Version 10.1.3.2 December 2006

Oracle Business Intelligence Server Administration Guide. Version 10.1.3.2 December 2006 Oracle Business Intelligence Server Administration Guide Version 10.1.3.2 December 2006 Part Number: B31770-01 Copyright 2006, Oracle. All rights reserved. The Programs (which include both the software

More information

Audit Management with DBMS_AUDIT_MGMT

Audit Management with DBMS_AUDIT_MGMT Audit Management with DBMS_AUDIT_MGMT Stefan Oehrli Senior Consultant & Discipline Manager Security stefan.oehrli@trivadis.com Zürich, March 24, 2011 Basel Baden Brugg Bern Lausanne Zürich Düsseldorf Frankfurt/M.

More information

Query Processing C H A P T E R12. Practice Exercises

Query Processing C H A P T E R12. Practice Exercises C H A P T E R12 Query Processing Practice Exercises 12.1 Assume (for simplicity in this exercise) that only one tuple fits in a block and memory holds at most 3 blocks. Show the runs created on each pass

More information

Oracle 11g Database Administration

Oracle 11g Database Administration Oracle 11g Database Administration Part 1: Oracle 11g Administration Workshop I A. Exploring the Oracle Database Architecture 1. Oracle Database Architecture Overview 2. Interacting with an Oracle Database

More information

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries

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

Anatomy of a SQL Tuning Session

Anatomy of a SQL Tuning Session Anatomy of a SQL Tuning Session Wolfgang Breitling www.centrexcc.com Copyright 2009 Centrex Consulting Corporation. Personal use of this material is permitted. However, permission to reprint/republish

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

Understanding SQL Server Execution Plans. Klaus Aschenbrenner Independent SQL Server Consultant SQLpassion.at Twitter: @Aschenbrenner

Understanding SQL Server Execution Plans. Klaus Aschenbrenner Independent SQL Server Consultant SQLpassion.at Twitter: @Aschenbrenner Understanding SQL Server Execution Plans Klaus Aschenbrenner Independent SQL Server Consultant SQLpassion.at Twitter: @Aschenbrenner About me Independent SQL Server Consultant International Speaker, Author

More information

ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT

ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT ORACLE 9I / 10G / 11G / PL/SQL COURSE CONTENT INTRODUCTION: Course Objectives I-2 About PL/SQL I-3 PL/SQL Environment I-4 Benefits of PL/SQL I-5 Benefits of Subprograms I-10 Invoking Stored Procedures

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

Inside the PostgreSQL Query Optimizer

Inside the PostgreSQL Query Optimizer Inside the PostgreSQL Query Optimizer Neil Conway neilc@samurai.com Fujitsu Australia Software Technology PostgreSQL Query Optimizer Internals p. 1 Outline Introduction to query optimization Outline of

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

Top 10 Performance Tips for OBI-EE

Top 10 Performance Tips for OBI-EE Top 10 Performance Tips for OBI-EE Narasimha Rao Madhuvarsu L V Bharath Terala October 2011 Apps Associates LLC Boston New York Atlanta Germany India Premier IT Professional Service and Solution Provider

More information

Chapter 13: Query Processing. Basic Steps in Query Processing

Chapter 13: Query Processing. Basic Steps in Query Processing Chapter 13: Query Processing! Overview! Measures of Query Cost! Selection Operation! Sorting! Join Operation! Other Operations! Evaluation of Expressions 13.1 Basic Steps in Query Processing 1. Parsing

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

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com murachbooks@murach.com Expanded

More information

HBase Schema Design. NoSQL Ma4ers, Cologne, April 2013. Lars George Director EMEA Services

HBase Schema Design. NoSQL Ma4ers, Cologne, April 2013. Lars George Director EMEA Services HBase Schema Design NoSQL Ma4ers, Cologne, April 2013 Lars George Director EMEA Services About Me Director EMEA Services @ Cloudera ConsulFng on Hadoop projects (everywhere) Apache Commi4er HBase and Whirr

More information

Oracle InMemory Database

Oracle InMemory Database Oracle InMemory Database Calgary Oracle Users Group December 11, 2014 Outline Introductions Who is here? Purpose of this presentation Background Why In-Memory What it is How it works Technical mechanics

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

Resource Manager Overview. Sue Lee, Director of Development 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Resource Manager Overview. Sue Lee, Director of Development 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Resource Manager Overview Sue Lee, Director of Development 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Agenda Resource Manager Use Cases Consolidation Mixed Workloads Managing

More information

Oracle 11g PL/SQL training

Oracle 11g PL/SQL training Oracle 11g PL/SQL training Course Highlights This course introduces students to PL/SQL and helps them understand the benefits of this powerful programming language. Students learn to create PL/SQL blocks

More information

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals 1 Properties of a Database 1 The Database Management System (DBMS) 2 Layers of Data Abstraction 3 Physical Data Independence 5 Logical

More information

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 10g: Administration Workshop II Release 2 ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Administration Workshop II Release 2 Duration: 5 Days What you will learn This course advances your success as an Oracle professional

More information

FHE DEFINITIVE GUIDE. ^phihri^^lv JEFFREY GARBUS. Joe Celko. Alvin Chang. PLAMEN ratchev JONES & BARTLETT LEARN IN G. y ti rvrrtuttnrr i t i r

FHE DEFINITIVE GUIDE. ^phihri^^lv JEFFREY GARBUS. Joe Celko. Alvin Chang. PLAMEN ratchev JONES & BARTLETT LEARN IN G. y ti rvrrtuttnrr i t i r : 1. FHE DEFINITIVE GUIDE fir y ti rvrrtuttnrr i t i r ^phihri^^lv ;\}'\^X$:^u^'! :: ^ : ',!.4 '. JEFFREY GARBUS PLAMEN ratchev Alvin Chang Joe Celko g JONES & BARTLETT LEARN IN G Contents About the Authors

More information

Oracle Big Data, In-memory, and Exadata - One Database Engine to Rule Them All Dr.-Ing. Holger Friedrich

Oracle Big Data, In-memory, and Exadata - One Database Engine to Rule Them All Dr.-Ing. Holger Friedrich Oracle Big Data, In-memory, and Exadata - One Database Engine to Rule Them All Dr.-Ing. Holger Friedrich Agenda Introduction Old Times Exadata Big Data Oracle In-Memory Headquarters Conclusions 2 sumit

More information

Datenbanksysteme II: Implementation of Database Systems Implementing Joins

Datenbanksysteme II: Implementation of Database Systems Implementing Joins Datenbanksysteme II: Implementation of Database Systems Implementing Joins Material von Prof. Johann Christoph Freytag Prof. Kai-Uwe Sattler Prof. Alfons Kemper, Dr. Eickler Prof. Hector Garcia-Molina

More information

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

An Oracle White Paper May 2010. Guide for Developing High-Performance Database Applications An Oracle White Paper May 2010 Guide for Developing High-Performance Database Applications Introduction The Oracle database has been engineered to provide very high performance and scale to thousands

More information

Oracle Total Recall with Oracle Database 11g Release 2

Oracle Total Recall with Oracle Database 11g Release 2 An Oracle White Paper September 2009 Oracle Total Recall with Oracle Database 11g Release 2 Introduction: Total Recall = Total History... 1 Managing Historical Data: Current Approaches... 2 Application

More information

Building a Hybrid Data Warehouse Model

Building a Hybrid Data Warehouse Model Page 1 of 13 Developer: Business Intelligence Building a Hybrid Data Warehouse Model by James Madison DOWNLOAD Oracle Database Sample Code TAGS datawarehousing, bi, All As suggested by this reference implementation,

More information

Chapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL

Chapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL Chapter 9 Joining Data from Multiple Tables Oracle 10g: SQL Objectives Identify a Cartesian join Create an equality join using the WHERE clause Create an equality join using the JOIN keyword Create a non-equality

More information