Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

All of the Performance Tuning Features in Oracle SQL Developer, 2018 Edition

2 338 vues

Publié le

Updated slides from 2015 - all of the tuning features in Oracle SQL Developer, as off version 18.3

Publié dans : Logiciels
  • Soyez le premier à commenter

All of the Performance Tuning Features in Oracle SQL Developer, 2018 Edition

  1. 1. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQLDevTune All the Things Jeff Smith Senior Principal Product Manager Jeff.d.smith@oracle.com || @thatjeffsmith Database Tools, Oracle Corp
  2. 2. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Not Just THAT SQLDev Guy… • Database Development Tools team • Product manager/story teller • Corrupted my first database in 1999 • I bother help people online, everywhere • Contact me for a free remote presentation for your group/company – Jeff.d.smith@oracle.com – @thatjeffsmith – https://www.thatjeffsmith.com
  3. 3. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | thatJeffSmith on • 60+ Videos • Feature demos • Tips & Tricks • Short & Long Form – SQL Developer – SQLcl – Data Modeler – ORDS
  4. 4. Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 4 SQL Developer Snapshot Time Tested Launched in 2005 An Industry Standard 5M+ Oracle DBAs & Developers Always Improving Quarterly Releases 4
  5. 5. Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 5 SQL Developer Snapshot Time Tested Launched in 2005 An Industry Standard 5M+ Oracle DBAs & Developers Always Improving Quarterly Releases 4
  6. 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |   Top 15 Download on OTN  Telling Your Friends  5,000,000+
  7. 7. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Project Raptor  Early Adopter on OTN 2005 1.1  File Based PL/SQL editing  Reports  Ships with 11gR1 1.5.x  Localizations - Japanese, Spanish, Italian, German, French, Portuguese, Chinese, & Koreans  Ships with 11gR2 SQLDev v1.0  SQL Worksheet  Procedure Editor  The world takes notice! 1.5  Schema Copy/Diff/Export  Thick connections  Versioning  TimesTen 2.1  Unit Testing  Data Modeler Viewer  Unshared SQL Worksheets 2007 201020092006 3.0  Full Data Modeler  View > DBA  SQL Tuning Advisor  Query Builder 2008 2011 2012 3.1  New Database DIFF  PDF Reports  RMAN  Data Pump 2013 3.2  APEX Listener / ORDS Support  Database 12c Support  Schema Service Support 4.0  Java 7  ASH/AWR/ADDM  Color Coded Connections  Command line Interface 4.0.3  Optimized Code Insight  Oracle Big Data Appliance 2014 2015 2016 4.1  ORDS Included/Full GUI  instance Viewer  SQLcl  Copy PDB to DBaaS  Larry live demos PDB relocate @ OOW 4.2  Real Time SQL Monitoring  Top SQL Report  Formatter & Other Editor Enhancements  Easier RESTful Services Development 2017 SQLcl  New CLI  Modern SQL*Plus Release History
  8. 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2017 2017.2  Bug Fixes  Sharding  Data Guard 17.3 & 17.4  Bug Fixes Quarterly Releases!!! 2018 Release History 18.1  Autonomous Data Warehouse Support  New Welcome Screen/Connections  SQL Injection Detection  PL/Scope SQL Statement Support  Better Formatting 18.2/3  PL/SQL Injection Detection  Cloud data Loads  SQL Developer Web
  9. 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | I’m Not Performance Expert/Guru/Professional I’m Your Tools Valet
  10. 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Let’s Go!
  11. 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Strategy and Analysis Relational Database Design Data Type Star Schema Physical Multidimensional ERD DFD Logical Reporting Import Models Domains Performance Problems Generally Start Here
  12. 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Design – No Keys?
  13. 13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Keys & Indexes?
  14. 14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Design Rules – Who’s Breaking Them?
  15. 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | This is just the WORST THING EVER
  16. 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Start the Design Conversation EARLY And Make it Easy to Communicate and Share!
  17. 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | I love it when a plan comes together!!
  18. 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Queries and Plans Have a bad query…  See the plan (explain, dbms_x, v$sql_plan)  Compare plans  AutoTrace (HotSpots)  Configuring Display (columns)  Links and Hints
  19. 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AutoTrace  Grab session stats  Execute Query  Grab session stats  Show Plan and Stats  After 1 minute, we’ll start showing rolling stats
  20. 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 1. Nodes where cardinality estimation is wrong as witnessed by collected runtime statistics. The node with maximum discrepancy is formally a hotspot. One course of action for performance analyst to follow is adjusting cardinality estimation (e.g. with a hint), thus influencing the optimizer to choose a different plan. 2. Nodes where the execution have spent bulk of the time. Formally, we take cumulative run time of a node (v$sql_plan_statistics.last_elapsed_time) and subtract cumulative run time of it's children. Autotrace HotSpots
  21. 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Autotrace HotSpots
  22. 22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Get Predicates (and notes) in Your Plans
  23. 23. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | GET:  Predicates  Other XML  Last Output Rows
  24. 24. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |  enable things you want to see in your plans, like QBLOCK_NAME or change their labels
  25. 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | V$SQL_PLAN – click dropdown to get cached plans
  26. 26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Suggest Hints Are You Smarter than the Optimizer?
  27. 27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | DBMS_XPLAN – click dropdown to get PKG()
  28. 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Tuning Advisor Tasks Licensing:  Warnings – you will know when you are going to use a Tuning or Diagnostic Pack Feature  Control Availability for each database connection in the preferences
  29. 29. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Automatic SQL Tuning Advisor – Build a Report
  30. 30. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Real Time SQL Monitoring Web View:  No flash!  Export to HTML  Improvements coming in 18.4/19.1
  31. 31. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Monitor Sessions It’s a Report, so you can:  change the content  Add Actions
  32. 32. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Trace Files Yes, we have an editor for those, but…  Experts say you don’t need to look in TRC files  They can get quite big and nasty – stick with the Plans
  33. 33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Project Raptor  Early Adopter on OTN 2005 1.1  File Based PL/SQL editing  Reports  Ships with 11gR1 1.5.x  Localizations - Japanese, Spanish, Italian, German, French, Portuguese, Chinese, & Koreans  Ships with 11gR2 SQLDev v1.0  SQL Worksheet  Procedure Editor  The world takes notice! 1.5  Schema Copy/Diff/Export  Thick connections  Versioning  TimesTen 2.1  Unit Testing  Data Modeler Viewer  Unshared SQL Worksheets 2007 201020092006 3.0  Full Data Modeler  View > DBA  SQL Tuning Advisor  Query Builder 2008 2011 2012 3.1  New Database DIFF  PDF Reports  RMAN  Data Pump 2013 3.2  APEX Listener / ORDS Support  Database 12c Support  Schema Service Support 4.0  Java 7  ASH/AWR/ADDM  Color Coded Connections  Command line Interface 4.0.3  Optimized Code Insight  Oracle Big Data Appliance 2014 2015 2016 4.1  ORDS Included/Full GUI  instance Viewer  SQLcl  Copy PDB to DBaaS  Larry live demos PDB relocate @ OOW 4.2  Real Time SQL Monitoring  Top SQL Report  Formatter & Other Editor Enhancements  Easier RESTful Services Development 2017 SQLcl  New CLI  Modern SQL*Plus Release History SQLDev 3.1 DBA PANEL IS BORN!!!
  34. 34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | DBA Panel Pages  ASH/AWR  Snapshots  Baselines  Instance Viewer
  35. 35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | • Accessed from the View menu • Add Existing Connections • Intended for HIGHLY privileged users DBA Panel Pages
  36. 36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH/AWR
  37. 37. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Manage snapshots, baselines, generate reports & compares
  38. 38. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Instance Viewer – real time performance report Doesn’t Require:  agents  DB objects to install  expensive views  alerts  history  $$$
  39. 39. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | TopSQL Report
  40. 40. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Wait Events Drill Down report does require Diagnostic Pack…data from gv$active_session_history ash, gv$sqlarea sa Want to see more details? Double Click for a report
  41. 41. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | How does SQLDev get the Perf Data? See ALL the SQL  View > Log  Statements Panel  Elapsed time & Bind parameter values
  42. 42. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Thanks! All My Stuff:  blogs on thatjeffsmith.com  videos on youtube  slides on SlideShare

×