Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1."— Presentation transcript:

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

2 SQL Tuning made much easier with SQLTXPLAIN (SQLT) Mauro Pagano Principal Technical Support Engineer

3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 3 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 to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracles products remains at the sole discretion of Oracle.

4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 4 Program Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report Q&A

5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 5 Oracle Services Oracle Experts Helping You Succeed with Your Oracle Investments Complete Support for Oracle Hardware, Software, and Engineered Systems Mission Critical Support Services for All Oracle Applications and Technologies Your Complete Training Source for Oracle Hardware and Software Extend Your Oracle Investments to the Cloud with Value, Choice, and Confidence Enabling the success of your Oracle hardware and software investments

6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 6 Oracle Premier Support Comprehensive Coverage Service and Support Quickly diagnose and resolve issues Expert technical support Rapid-response field service Lifetime Support Tools and Resources Get the most of your Oracle products with proactive services Oracle knowledgebase Product health checks My Oracle Support Community Product Innovation Keep pace with change and capitalize on new opportunities Updates New releases Tools to assist with patching and upgrades

7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 7 Get Proactive Portfolioan integral component of your Premier Support Contract Helping you get the most value from Oracle Premier Support

8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 8 SQL Tuning made much easier with SQLTXPLAIN (SQLT)

9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 9 Program Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report Q&A

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

11 Copyright © 2013, Oracle and/or its affiliates. 11 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?

12 Copyright © 2013, Oracle and/or its affiliates. 12 SQLTXPLAIN (SQLT) mechanics 3 + 4 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?

13 Copyright © 2013, Oracle and/or its affiliates. 13 Program Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report Q&A

14 Copyright © 2013, Oracle and/or its affiliates. 14 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) 215187.1

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

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

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

18 Copyright © 2013, Oracle and/or its affiliates. 18 Program Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report Q&A

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

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

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

22 Copyright © 2013, Oracle and/or its affiliates. 22 Program Agenda Introduction Installation Main methods – XTRACT, XECUTE and XTRXEC – XTRSBY and XPLAIN – XPREXT and XPREXC Main HTML diagnostics report Q&A

23 Copyright © 2013, Oracle and/or its affiliates. 23 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)

24 Copyright © 2013, Oracle and/or its affiliates. 24 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)

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

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

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

28 Copyright © 2013, Oracle and/or its affiliates. 28 SQL Additional Methods COMPARE – Compares everything that surrounds a SQL (object definition, statistics, parameters, execution plan, etc) across two systems XPLORE – Evaluates the impact of every CBO parameter / fix on the execution plan – Automates hundreds on tests in single operation What else can I do with SQLT?

29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 29 While Youre at Oracle OpenWorld… Support Breakout Sessions – Oracle Database – Oracle E-Business Suite – SQL Tuning – Oracle Exadata – Siebel CRM – PeopleSoft – JD Edwards – Oracle Business Analytics – Oracle Fusion Middleware – Oracle Solaris – Oracle RAC Cluster – Oracle Communications Solutions – Sun Server and Storage Systems Support Stars Bar Moscone West, Level 2 Oracle experts Live demos Mini-briefings Videos Sun12 – 4Wed9 - 5 Mon10 - 6Thurs9 - 1 Tues10 - 6

30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 30 Join us for fun, networking, beverages and appetizers Meet fellow Community members and Oracle moderators Admission is free but registration is required Details and registration at: www.bit.ly/MeetUpEvent2013 Monday, September 23 6:30 – 9:30 pm 4 th Annual My Oracle Support Community Meet Up Event

31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 31 Summary

32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 32 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?

33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 33 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

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

35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 35 Discover more about Get Proactive: http://www.oracle.com/goto/proactivesupport MOS Notes: 215187.1 SQLTXPLAIN (SQLT) Tool Download 1454160.1 SQLTXPLAIN (SQLT) FAQ MOS Community: SQLTXPLAIN (SQLT): General Discussion Q&A and Important Support Resources

36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 36 Thank you!

37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 37

38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 38


Download ppt "Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1."

Similar presentations


Ads by Google