All of the Performance Tuning Features in Oracle SQL Developer

Jeff Smith
Jeff SmithDistinguished Product Manager at Oracle Corp
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
All of the Performance Tunng Features
In Oracle SQL Developer
Jeff Smith
Jeff.d.smith@oracle.com || @thatjeffsmith
Senior Principal Product Manager
Database Development Tools Group
Oracle Confidential – Internal/Restricted/Highly Restricted
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
 FREE Oracle Database IDE/GUI
 Windows, OS X, *NIX
 More than 4,500,000 users worldwide
 My Oracle Support available via your DB license
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer, Major Feature Areas
 PL/SQL IDE
 SQL editor
 GUI for browsing and managing database objects
 Ad Hoc reporting
 Database Design & Data Modeling
 Database Administration
 3rd Party RDBMS Migrations to Oracle
 Deploy and Administer Oracle REST Data Services
 REST Enablement of the Database
 Command Line Interface
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer
Release History
Project Raptor
 Early Adopter on OTN
2005
SQLDev 1.1
 File Based PL/SQL editing
 Reports
 Ships with 11gR1
SQLDev 1.5.x
 Localizations -
Japanese, Spanish,
Italian, German, French,
Portuguese, Chinese, &
Koreans
 Ships with 11gR2
SQLDev 1.0
 SQL Worksheet
 Procedure Editor
 The world takes notice!
SQLDev 1.5
 Schema Copy/Diff/Export
 Thick connections
 Versioning
 TimesTen
SQLDev 2.1
 Unit Testing
 Data Modeler Viewer
 Unshared SQL Worksheets
2007 201020092006
SQLDev 3.0
 Full Data Modeler
 View > DBA
 SQL Tuning Advisor
 Query Builder
2008 2011 2012
SQLDev 3.1
 New Database DIFF
 PDF Reports
 RMAN
 Data Pump
2013
SQLDev 3.2
 APEX Listener / ORDS
Support
 Database 12c Support
 Schema Service Support
SQLDev 4.0
 Java 7
 ASH/AWR/ADDM
 Color Coded Connections
 Command line Interface
SQLDev 4.0.3
 Optimized Code Insight
 Oracle Big Data Appliance
2014 2015 2016
SQLDev 4.1
 ORDS Included/Full GUI
 instance Viewer
 SQLcl
 Copy PDB to DBaaS
 Larry live demos PDB relocate @ OOW
SQLDev v4.2
 Real Time SQL Monitoring
TOP SQL Report
 Formatter & Other Editor Enhancements
SQLDev WEB
17
SQLcl
 New CLI
 Modern SQL*Plus
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Developer Data Modeler
Included for free, also available as a separate download/program
Good application performance STARTS with a good data model!
Strategy and Analysis
Relational
Database Design
Data Type
Star Schema Physical
Multidimensional
ERD DFD
Logical
Reporting
Import Models
Domains
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Queries and Plans
Have a bad query…
 see the plan
 compare plans
 run it, get perf stats
 get tuning help
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 (new for 4.1)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Autotrace HotSpots (new for 4.1)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Get Predicates (and notes) in Your Plans
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
GET:
 Predicates
 Other XML
 Last Output Rows
(4.1)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
V$SQL_PLAN – click dropdown to get cached plans
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Compares – pin plan, get new plan, COMPARE
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Real Time SQL Monitoring (v4.1 and older)
Web View:
 EZ to get too 
Save report as
web file
 EM Flash
presentation
 Share with your
devs?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Monitor Sessions Report
Tools Monitor
Sessions:
 Run Stock OR
 Copy to custom
report
 Add Actions
 Color the data
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Monitor Sessions Report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle SQL Developer
Release History
Project Raptor
 Early Adopter on OTN
2005
SQLDev 1.1
 File Based PL/SQL editing
 Reports
 Ships with 11gR1
SQLDev 1.5.x
 Localizations -
Japanese, Spanish,
Italian, German, French,
Portuguese, Chinese, &
Koreans
 Ships with 11gR2
SQLDev 1.0
 SQL Worksheet
 Procedure Editor
 The world takes notice!
SQLDev 1.5
 Schema Copy/Diff/Export
 Thick connections
 Versioning
 TimesTen
SQLDev 2.1
 Unit Testing
 Data Modeler Viewer
 Unshared SQL Worksheets
2007 201020092006
SQLDev 3.0
 Full Data Modeler
 View > DBA
 SQL Tuning Advisor
 Query Builder
2008 2011 2012
SQLDev 3.1
DBA PANEL
IS BORN!!!
2013
SQLDev 3.2
 APEX Listener / ORDS
Support
 Database 12c Support
 Schema Service Support
SQLDev 4.0
 Java 7
 ASH/AWR/ADDM
 Color Coded Connections
 Command line Interface
SQLDev 4.0.3
 Optimized Code Insight
 Oracle Big Data Appliance
2014 2015 2016
SQLDev 4.1
 ORDS Included/Full GUI
 instance Viewer
 SQLcl
 Copy PDB to DBaaS
 Larry live demos PDB relocate @ OOW
SQLDev v4.2
 Real Time SQL Monitoring
TOP SQL Report
 Formatter & Other Editor Enhancements
SQLDev WEB
17
SQLcl
 New CLI
 Modern SQL*Plus
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
DBA Panel Pages
 ASH/AWR
 Snapshots
 Baselines
 Instance Viewer
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
• Accessed from the View menu
• Add Existing Connections
• Intended for HIGHLY privileged users
The DBA Panel, available as of v3.1
DBA Panel Pages
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ASH/AWR – New for Version 4.0
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Manage snapshots, baselines, generate reports & compares
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
 $$$
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
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Updates for Version 4.2
Currently Available As an Early Adopter
 Updated Real Time SQL Monitoring
 Top SQL for Instance Viewer
 More flexible SQL Plans
 Suggest Optimizer Hints
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Real Time SQL Monitoring
Click pic for link to Animated Demo
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Plans, Explain, Cached, & AutoTrace
Add Any Plan Column Suggest Hints
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
TopSQL Report
Click pic for link to Animated Demo
1 of 28

More Related Content

What's hot(20)

10 Creating Triggers10 Creating Triggers
10 Creating Triggers
rehaniltifat3.9K views
R12 Fixed Assets General QuestionsR12 Fixed Assets General Questions
R12 Fixed Assets General Questions
Baker Khader Abdallah, PMP5.1K views
Oracle apps-technical-tutorialOracle apps-technical-tutorial
Oracle apps-technical-tutorial
Cheikh Ahmadou Bamba DIOP93.7K views
Preparing for EBS R12.2-upgrade-fullPreparing for EBS R12.2-upgrade-full
Preparing for EBS R12.2-upgrade-full
Berry Clemens15.1K views
Oracle Database Performance Tuning ConceptOracle Database Performance Tuning Concept
Oracle Database Performance Tuning Concept
Chien Chung Shen2.2K views
Oracle 資料庫檔案介紹Oracle 資料庫檔案介紹
Oracle 資料庫檔案介紹
Chien Chung Shen1.4K views
08 Dynamic SQL and Metadata08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata
rehaniltifat1.6K views
Getting started with postgresqlGetting started with postgresql
Getting started with postgresql
botsplash.com1.6K views
Oracle PLSQL Step By Step GuideOracle PLSQL Step By Step Guide
Oracle PLSQL Step By Step Guide
Srinimf-Slides 4.2K views
Redo internals pptRedo internals ppt
Redo internals ppt
Riyaj Shamsudeen1.1K views

Viewers also liked(20)

Similar to All of the Performance Tuning Features in Oracle SQL Developer(20)

Recently uploaded(20)

Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptx
Hajira Mahmood21 views
Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL Preview
CXL Forum120 views
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh36 views

All of the Performance Tuning Features in Oracle SQL Developer

  • 1. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | All of the Performance Tunng Features In Oracle SQL Developer Jeff Smith Jeff.d.smith@oracle.com || @thatjeffsmith Senior Principal Product Manager Database Development Tools Group Oracle Confidential – Internal/Restricted/Highly Restricted
  • 2. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |  FREE Oracle Database IDE/GUI  Windows, OS X, *NIX  More than 4,500,000 users worldwide  My Oracle Support available via your DB license
  • 3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer, Major Feature Areas  PL/SQL IDE  SQL editor  GUI for browsing and managing database objects  Ad Hoc reporting  Database Design & Data Modeling  Database Administration  3rd Party RDBMS Migrations to Oracle  Deploy and Administer Oracle REST Data Services  REST Enablement of the Database  Command Line Interface
  • 4. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer Release History Project Raptor  Early Adopter on OTN 2005 SQLDev 1.1  File Based PL/SQL editing  Reports  Ships with 11gR1 SQLDev 1.5.x  Localizations - Japanese, Spanish, Italian, German, French, Portuguese, Chinese, & Koreans  Ships with 11gR2 SQLDev 1.0  SQL Worksheet  Procedure Editor  The world takes notice! SQLDev 1.5  Schema Copy/Diff/Export  Thick connections  Versioning  TimesTen SQLDev 2.1  Unit Testing  Data Modeler Viewer  Unshared SQL Worksheets 2007 201020092006 SQLDev 3.0  Full Data Modeler  View > DBA  SQL Tuning Advisor  Query Builder 2008 2011 2012 SQLDev 3.1  New Database DIFF  PDF Reports  RMAN  Data Pump 2013 SQLDev 3.2  APEX Listener / ORDS Support  Database 12c Support  Schema Service Support SQLDev 4.0  Java 7  ASH/AWR/ADDM  Color Coded Connections  Command line Interface SQLDev 4.0.3  Optimized Code Insight  Oracle Big Data Appliance 2014 2015 2016 SQLDev 4.1  ORDS Included/Full GUI  instance Viewer  SQLcl  Copy PDB to DBaaS  Larry live demos PDB relocate @ OOW SQLDev v4.2  Real Time SQL Monitoring TOP SQL Report  Formatter & Other Editor Enhancements SQLDev WEB 17 SQLcl  New CLI  Modern SQL*Plus
  • 5. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Developer Data Modeler Included for free, also available as a separate download/program Good application performance STARTS with a good data model! Strategy and Analysis Relational Database Design Data Type Star Schema Physical Multidimensional ERD DFD Logical Reporting Import Models Domains
  • 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Queries and Plans Have a bad query…  see the plan  compare plans  run it, get perf stats  get tuning help
  • 7. 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 (new for 4.1)
  • 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Autotrace HotSpots (new for 4.1)
  • 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Get Predicates (and notes) in Your Plans
  • 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | GET:  Predicates  Other XML  Last Output Rows (4.1)
  • 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | V$SQL_PLAN – click dropdown to get cached plans
  • 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Compares – pin plan, get new plan, COMPARE
  • 13. 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
  • 14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Real Time SQL Monitoring (v4.1 and older) Web View:  EZ to get too  Save report as web file  EM Flash presentation  Share with your devs?
  • 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Monitor Sessions Report Tools Monitor Sessions:  Run Stock OR  Copy to custom report  Add Actions  Color the data
  • 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Monitor Sessions Report
  • 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer Release History Project Raptor  Early Adopter on OTN 2005 SQLDev 1.1  File Based PL/SQL editing  Reports  Ships with 11gR1 SQLDev 1.5.x  Localizations - Japanese, Spanish, Italian, German, French, Portuguese, Chinese, & Koreans  Ships with 11gR2 SQLDev 1.0  SQL Worksheet  Procedure Editor  The world takes notice! SQLDev 1.5  Schema Copy/Diff/Export  Thick connections  Versioning  TimesTen SQLDev 2.1  Unit Testing  Data Modeler Viewer  Unshared SQL Worksheets 2007 201020092006 SQLDev 3.0  Full Data Modeler  View > DBA  SQL Tuning Advisor  Query Builder 2008 2011 2012 SQLDev 3.1 DBA PANEL IS BORN!!! 2013 SQLDev 3.2  APEX Listener / ORDS Support  Database 12c Support  Schema Service Support SQLDev 4.0  Java 7  ASH/AWR/ADDM  Color Coded Connections  Command line Interface SQLDev 4.0.3  Optimized Code Insight  Oracle Big Data Appliance 2014 2015 2016 SQLDev 4.1  ORDS Included/Full GUI  instance Viewer  SQLcl  Copy PDB to DBaaS  Larry live demos PDB relocate @ OOW SQLDev v4.2  Real Time SQL Monitoring TOP SQL Report  Formatter & Other Editor Enhancements SQLDev WEB 17 SQLcl  New CLI  Modern SQL*Plus
  • 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | DBA Panel Pages  ASH/AWR  Snapshots  Baselines  Instance Viewer
  • 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | • Accessed from the View menu • Add Existing Connections • Intended for HIGHLY privileged users The DBA Panel, available as of v3.1 DBA Panel Pages
  • 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH/AWR – New for Version 4.0
  • 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Manage snapshots, baselines, generate reports & compares
  • 22. 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  $$$
  • 23. 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
  • 24. 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
  • 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Updates for Version 4.2 Currently Available As an Early Adopter  Updated Real Time SQL Monitoring  Top SQL for Instance Viewer  More flexible SQL Plans  Suggest Optimizer Hints
  • 26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Real Time SQL Monitoring Click pic for link to Animated Demo
  • 27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Plans, Explain, Cached, & AutoTrace Add Any Plan Column Suggest Hints
  • 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | TopSQL Report Click pic for link to Animated Demo

Editor's Notes

  1. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To Replace the LOGO on this sample slide: Right-click the sample LOGO and choose Change Picture. Navigate to the location where the new logo is stored, select desired logo file and click on the Open button to replace the sample logo.