Copyright © 2013, Oracle and/or its affiliates. 1.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

Delta Confidential 1 5/29 – 6/6, 2001 SAP R/3 V4.6c PP Module Order Change Management(OCM)
Advanced Piloting Cruise Plot.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Electronic Resources in the EUI Library
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Richmond House, Liverpool (1) 26 th January 2004.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Report Card P Only 4 files are exported in SAMS, but there are at least 7 tables could be exported in WebSAMS. Report Card P contains 4 functions: Extract,
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
ABC Technology Project
Microsoft Access.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Using Explicit Cursors.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Presented by Douglas Greer Creating and Maintaining Business Objects Universes.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Addition 1’s to 20.
25 seconds left…...
Januar MDMDFSSMDMDFSSS
Week 1.
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
PSSA Preparation.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
Weekly Attendance by Class w/e 6 th September 2013.
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
Immunobiology: The Immune System in Health & Disease Sixth Edition
CpSc 3220 Designing a Database
Use the buttons on the top to navigate through the presentation 1 PrevNext Menu.
1 How to improve SQL Performance with new Health Check Tool? Carlos Sierra Consulting Technical Advisor © 2012 Oracle Corporation – Proprietary and Confidential.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
SQL Tuning made much easier with SQLTXPLAIN (SQLT) Mauro Pagano Senior Principal Technical Support Engineer Oracle Confidential – Internal/Restricted/Highly.
Presentation transcript:

Copyright © 2013, Oracle and/or its affiliates. 1

2 SQL Tuning made much easier with SQLTXPLAIN (SQLT) Carlos Sierra Consulting Technical Advisor Center of Expertise (CoE)

Copyright © 2013, Oracle and/or its affiliates. 3 Carlos Sierra SQL Tuner handyman: developer, advisor, trainer, support IT: Oracle(17), UNISYS(12), Ford(3), others(3) Florida(17), Venezuela(3), Puerto Rico(6), Michigan(1), Mexico(X) Tools: SQLTXPLAIN(SQLT), SQLHC, TRCANLZR(TRCA), others Motto: Life is good! Oracle Server Technologies(ST) Center of Expertise(CoE)

Copyright © 2013, Oracle and/or its affiliates. 4 Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report SQL Tuning made much easier with SQLTXPLAIN (SQLT)

Copyright © 2013, Oracle and/or its affiliates. 5 SQLTXPLAIN (SQLT) Introduction

Copyright © 2013, Oracle and/or its affiliates. 6 What is SQLTXPLAIN (SQLT)? Add-on (MOS ) 11g/10g Linux, UNIX, Windows Single instance, RAC, Exadata Easy to install and execute download and use Tool to diagnose SQL statements performing poorly

Copyright © 2013, Oracle and/or its affiliates. 7 SQLTXPLAIN (SQLT) benefits Collect SQL tuning diagnostics for one SQL statement Over a hundred health-checks (HC) around the SQL statement If Oracle Tuning or Diagnostics Pack are properly licensed – Invokes SQL Tuning Advisor (STA) – Includes Active Session History (ASH) and SQL Monitor Report – Includes Automatic Workload Repository (AWR) Automatic SQL tuning test case (TC) extraction SQLT helps to expedite SQL tuning process What is in it for me?

Copyright © 2013, Oracle and/or its affiliates. 8 SQLTXPLAIN (SQLT) mechanics main methods to analyze one SQL statement Inputs one SQL statement and outputs one zip file Output contains a main html report and other files – AWR, ADDM, ASH, 10053, 10046, TKPROF, etc. Exports SQL tuning test cases – SQLT TC and TCX – 11g Test Case Builder (TCB) SQLT installs its own two schemas and objects on them! How does it work?

Copyright © 2013, Oracle and/or its affiliates. 9 SQLT Installation

Copyright © 2013, Oracle and/or its affiliates. 10 How do I install SQLT? Download tool (sqlt.zip file) Unzip into database server Execute sqlt/install/sqcreate.sql connected as SYS Input installation parameters My Oracle Support (MOS)

Copyright © 2013, Oracle and/or its affiliates. 11 SQLT Installation Parameters Optional Connect Identifier Password for user SQLTXPLAIN Default Tablespace Temporary Tablespace Main application user of SQLT Oracle Pack license [ T | D | N ] Provided inline or when asked

Copyright © 2013, Oracle and/or its affiliates. 12 How do you know Installation succeeded?

Copyright © 2013, Oracle and/or its affiliates. 13 How do I uninstall SQLT Execute sqlt/install/sqdrop.sql connected as SYS In case you no longer need SQLT

Copyright © 2013, Oracle and/or its affiliates. 14 SQLT Main Methods

Copyright © 2013, Oracle and/or its affiliates. 15 SQLT Main Methods SQLT XTRACT SQLT XECUTE SQLT XTRXEC SQLT XPLAIN SQLT XTRSBY SQLT XPREXT SQLT XPREXC All act on one SQL statement

Copyright © 2013, Oracle and/or its affiliates. 16 Using SQLT Main Methods

Copyright © 2013, Oracle and/or its affiliates. 17 XTRXEC includes XTRACT and XECUTE XPLAIN XTRSBY Common XTRACT XECUTE SQLT Output Overlap

Copyright © 2013, Oracle and/or its affiliates. 18 SQLT Main HTML Diagnostics Report

Copyright © 2013, Oracle and/or its affiliates. 19 What is included in Main Report? Health-checks SQL text Parameters Cursor sharing SQL Tuning Advisor (STA) report Execution plans Partial list of contents (1/3)

Copyright © 2013, Oracle and/or its affiliates. 20 What is included in Main Report? Plan stability Active Session History (ASH) SQL performance metrics SQL Monitor Segment and session statistics Tables Partial list of contents (2/3)

Copyright © 2013, Oracle and/or its affiliates. 21 What is included in Main Report? Indexes CBO statistics Objects and dependencies Policies Metadata Partial list of contents (3/3)

Copyright © 2013, Oracle and/or its affiliates. 22 Navigating the SQLT Main Report 1. SQL Text 2. Plans Summary 3. Observations 4. Branch as per findings Typical Navigation

Copyright © 2013, Oracle and/or its affiliates. 23 Demonstration Main Report Navigation SQLT XTRACT SQLT XECUTE

Copyright © 2013, Oracle and/or its affiliates. 24 Summary

Copyright © 2013, Oracle and/or its affiliates. 25 SQL Tuning made easier with SQLTXPLAIN Full collection of SQL tuning diagnostics – Consolidated into an easy-to-navigate html report – Consistent view – Allow offline expert analysis Over a hundred health-checks around the SQL statement – Some with pointers to particular notes or bugs Automatic SQL tuning test case (TC) extraction – Allow WHAT-IF evaluations on a test environment Dynamic readme with commands for further diagnostics How is that?

Copyright © 2013, Oracle and/or its affiliates. 26 Want to master SQLTXPLAIN? Book: Oracle SQL Tuning with Oracle SQLTXPLAIN Author: Stelios Charalambides Released: March 20, 2013 Level: Intermediate Available Apress Amazon Barnes&Noble

Copyright © 2013, Oracle and/or its affiliates. 27 Eager to master SQL Tuning? Jonathan Lewis Maria Colgan Tom Kyte Wolfgang Breitling Cary Millsap Christian Antognini Guy Harrison Karen Morton Some SQL Tuning Gurus (Google them!)

Copyright © 2013, Oracle and/or its affiliates. 28 My Oracle Support Notes and Contact Info SQLTXPLAIN (SQLT) Tool Download SQLTXPLAIN (SQLT) FAQ MOS (Metalink) Notes

Copyright © 2013, Oracle and/or its affiliates. 29