dbi servicesSQL Health Check                           Nicolas Jardot                           Consultant                ...
SQL Health CheckAgenda                  Agenda                  i.       Introduction                  ii.      Concept   ...
SQL Health CheckIntroduction Many parameters may influence SQL executions     CBO settings, Objects statistics,… Tuning...
SQL Health CheckIntroduction – HighlightSQLHC is a script from Oracle     Download at My Oracle Support, note 1366133.1 ...
SQL Health CheckIntroduction – Highlight5   www.dbi-services.com   08.11.2012 © dbi services
SQL Health CheckAgenda                  Agenda                  i.       Introduction                  ii.      Concept   ...
SQL Health CheckConceptHow SQLHC script works? Quickly get a report of the execution  environment Require SYS account or...
SQL Health CheckConceptWhat is checked? CBO settings Objects statistics Instance parameters Execution plans8    www.db...
SQL Health CheckConcept9   www.dbi-services.com   08.11.2012 © dbi services
SQL Health CheckConcept10   www.dbi-services.com   08.11.2012 © dbi services
SQL Health CheckConcept Instance parameters11   www.dbi-services.com   08.11.2012 © dbi services
SQL Health CheckConcept12   www.dbi-services.com   08.11.2012 © dbi services
SQL Health CheckAgenda                   Agenda                   i.       Introduction                   ii.      Concept...
SQL Health CheckUsage Run script from SQL Plus     SQL> @sqlhc.sql [ T | D | N ] sql_id      License level          T: ...
Edition Based RedefinitionAgenda                   Agenda                   i.       Introduction                   ii.   ...
SQL Health CheckCase study Human Resource Application16   www.dbi-services.com      08.11.2012 © dbi services
SQL Health CheckCase study - Methodology Full table scan on both tables EMPLOYEES and JOBS      Existing index IDX_JOB_T...
dbi servicesAny Questions? Please Do Ask!                            Nicolas Jardot                            Consultant ...
Upcoming SlideShare
Loading in...5
×

Tune my Database! Mehr Oracle SQL Performance über SQLHC - Yann Neuhaus, Nicolas Jardot, dbi services

502
-1

Published on

In dieser Sesssion zeigen wir Ihnen, wie Sie mit dem Oracle Tool SQL Health-Check (SQLHC) die SQL-Abfragen innerhalb Ihrer Datenbankumgebung einem Performance-Check unterziehen können. Mit SQLHC lassen sich sowohl die CBO-Statistiken als auch die Objekt-Statistiken und die Instanz-Parameter analysieren und optimieren.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
502
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Tune my Database! Mehr Oracle SQL Performance über SQLHC - Yann Neuhaus, Nicolas Jardot, dbi services

  1. 1. dbi servicesSQL Health Check Nicolas Jardot Consultant Mobile +41 79 835 02 95 nicolas.jardot@dbi-services.com www.dbi-services.com Yann Neuhaus CEO – Region Manager Basel Area Mobile +41 79 963 27 20 yann.neuhaus@dbi-services.com www.dbi-services.com1 www.dbi-services.com 08.11.2012 © dbi services
  2. 2. SQL Health CheckAgenda Agenda i. Introduction ii. Concept iii. Usage iv. Case study2 www.dbi-services.com 08.11.2012 © dbi services
  3. 3. SQL Health CheckIntroduction Many parameters may influence SQL executions  CBO settings, Objects statistics,… Tuning requires to check and analyze these parameters Cloud Control allows to monitor SQLs to find which one is the more consuming3 www.dbi-services.com 08.11.2012 © dbi services
  4. 4. SQL Health CheckIntroduction – HighlightSQLHC is a script from Oracle  Download at My Oracle Support, note 1366133.1  dbi services advices to regularly check if new version is available creates a report on an SQL statement focus only on one statement is available for free  SQHC is not dependent of Tuning/Diagnostic Pack license does not require installation4 www.dbi-services.com 08.11.2012 © dbi services
  5. 5. SQL Health CheckIntroduction – Highlight5 www.dbi-services.com 08.11.2012 © dbi services
  6. 6. SQL Health CheckAgenda Agenda i. Introduction ii. Concept iii. Usage iv. Case study6 www.dbi-services.com 08.11.2012 © dbi services
  7. 7. SQL Health CheckConceptHow SQLHC script works? Quickly get a report of the execution environment Require SYS account or DBA role Can be run locally of from distant client Does not create objects in the database7 www.dbi-services.com 08.11.2012 © dbi services
  8. 8. SQL Health CheckConceptWhat is checked? CBO settings Objects statistics Instance parameters Execution plans8 www.dbi-services.com 08.11.2012 © dbi services
  9. 9. SQL Health CheckConcept9 www.dbi-services.com 08.11.2012 © dbi services
  10. 10. SQL Health CheckConcept10 www.dbi-services.com 08.11.2012 © dbi services
  11. 11. SQL Health CheckConcept Instance parameters11 www.dbi-services.com 08.11.2012 © dbi services
  12. 12. SQL Health CheckConcept12 www.dbi-services.com 08.11.2012 © dbi services
  13. 13. SQL Health CheckAgenda Agenda i. Introduction ii. Concept iii. Usage iv. Case study13 www.dbi-services.com 08.11.2012 © dbi services
  14. 14. SQL Health CheckUsage Run script from SQL Plus SQL> @sqlhc.sql [ T | D | N ] sql_id  License level  T: Tuning Pack  D: Diagnostic Pack  N: None The output contains several files *_1_health_check.html *_2_diagnostics.html *_3_execution_plans.html [*_4_sql_detail.html] [*_5_sql_monitor.zip] [*_6_10053_trace_from_cursor.trc]14 www.dbi-services.com 08.11.2012 © dbi services
  15. 15. Edition Based RedefinitionAgenda Agenda i. Introduction ii. Concept iii. Usage iv. Case study15 www.dbi-services.com 08.11.2012 © dbi services
  16. 16. SQL Health CheckCase study Human Resource Application16 www.dbi-services.com 08.11.2012 © dbi services
  17. 17. SQL Health CheckCase study - Methodology Full table scan on both tables EMPLOYEES and JOBS  Existing index IDX_JOB_TITLE on column present in the where clause not used Why index is not used?  Bad/missing statistics or histograms  Instance parameters  Bad selectivity  … Let’s focus on SQLHC report17 www.dbi-services.com 08.11.2012 © dbi services
  18. 18. dbi servicesAny Questions? Please Do Ask! Nicolas Jardot Consultant Mobile +41 79 835 02 95 nicolas.jardot@dbi-services.com www.dbi-services.com Yann Neuhaus CEO – Region Manager Basel Area Mobile +41 79 963 27 20 yann.neuhaus@dbi-services.com www.dbi-services.com „We look forward to working with you!“20 www.dbi-services.com 08.11.2012 © dbi services
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×