Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introducing the eDB360 Tool

12,296 views

Published on

You need to investigate some performance issues on an Oracle database, but you have no access to Oracle Enterprise Manager (OEM), or what is worse, not even to SQL*Plus. Where do you start? What is the first query you ask the DBA to execute for you? What is your second and third? Do you request an AWR report? For which snapshots? This scenario is not uncommon or unheard, it happens often to 3rd party consultants, or even to internal DBAs and Developers when the administration of the database has been subcontracted and access has been restricted.

Performance is not the only case where you may need to reach a database and struggle with access; doing a database health-check or collecting historical performance for a capacity planning exercise may face the same issues. What you wish you had is access to a restricted SQL*Plus account, even if remote, and a toolset to collect as much information as possible from the database of interest; or to ask a DBA with access to this database to simply run this toolset and give you back all the output so you can find answers to most of your questions.

eDB360 is a free tool that installs nothing on the database, executes through a SQL*Plus connection, and produces a zip file with a comprehensive report that provides a 360-degree view of an Oracle database. This session is about edb360. It covers what is included on its output, how you execute this tool, and how it can be used to gain a fair understanding of an Oracle database. This session is for DBAs, Developers and Consultants.

Benefits:
1. Learn how to get a fair 360-degree view of a database
2. Gather enough database information to start a health-check
3. Learn which performance to collect for a sizing exercise

Published in: Software
  • Be the first to comment

Introducing the eDB360 Tool

  1. 1. Introducing the eDB360 Tool Carlos Sierra
  2. 2. Carlos Sierra • Oracle Performance and SQL Tuning • Consultant/Developer/DBA • eDB360 and eAdam • SQLT and SQLHC • Exadata Enkitec (c) 2014 2
  3. 3. What is eDB360? • Oracle database 360-degree view • A tool made of many SQL scripts • Installs nothing on the database • Executes from SQL*Plus (local or remote) • Produces ZIP with html, text, csv and charts 10/1/2014 Enkitec © 3
  4. 4. How is eDB360 used? • Database Health-check • Offline Performance Analysis • Sizing – Capacity Planning – Databases Consolidation into Engineered System – Re-platform 10/1/2014 Enkitec © 4
  5. 5. Typical use of eDB360 (1) • Consultant onsite for one week – Monday noon to Friday morning • No access to Client’s intranet • Limited or no access to internet • Any script requires a round trip to a DBA – 4 hours average 10/1/2014 Enkitec © 5
  6. 6. Typical use of eDB360 (2) • Client is considering Engineered System • Multiple Databases would be migrated • Resources utilization needs to be evaluated 10/1/2014 Enkitec © 6
  7. 7. Overlaps? • DBA’s custom scripts • OEM • AWR • ADDM • Note: eDB360 Complements other tools! 10/1/2014 Enkitec © 7
  8. 8. eDB360 Execution • Refer to readme.txt included • Connect to SQL*Plus as SYS, DBA or user with access to Data Dictionary • Parameters – Oracle Tuning or Diagnostics Pack? [T | D | N] – How many days of history (default 31) 10/1/2014 Enkitec © 8
  9. 9. eDB360 Output • One ZIP file with a set of files (hundreds) • Set of files driven by one index.html file 10/1/2014 Enkitec © 9
  10. 10. Output Content • Queries on several DBA static views – Database configuration • Queries on several GV$ dynamic views – Performance • Some AWR, ADDM and ASH reports • A clever sample of SQL Statements 10/1/2014 Enkitec © 10
  11. 11. 0001_edb360_dbname_index.html 10/1/2014 Enkitec © 11
  12. 12. Four Formats 10/1/2014 Enkitec © 12
  13. 13. Each Report • Source (main DBA or GV$ view name) • Query output (html, text, csv or chart) • Source Description (column name and type) • Query (SQL Text) 10/1/2014 Enkitec © 13
  14. 14. 10/1/2014 Enkitec © 14
  15. 15. 7 Dynamic Columns 10/1/2014 Enkitec © 15
  16. 16. Column 1/7 • Database Configuration • Security • Memory • Resources • Resources (as per Statspack) 10/1/2014 Enkitec © 16
  17. 17. 10/1/2014 Enkitec © 17
  18. 18. 10/1/2014 Enkitec © 18
  19. 19. 10/1/2014 Enkitec © 19
  20. 20. Cluster and Instances • Cluster is an aggregated view of all Instances • Each Instance can be analyzed individually 10/1/2014 Enkitec © 20
  21. 21. 10/1/2014 Enkitec © 21
  22. 22. 10/1/2014 Enkitec © 22
  23. 23. eDB360 uses Google Charts • Drag to Zoom and Right click to Reset 10/1/2014 Enkitec © 23
  24. 24. 10/1/2014 Enkitec © 24
  25. 25. 10/1/2014 Enkitec © 25
  26. 26. Column 2/7 • Database Administration • Storage • Automatic Storage Management (ASM) 10/1/2014 Enkitec © 26
  27. 27. 10/1/2014 Enkitec © 27
  28. 28. 10/1/2014 Enkitec © 28
  29. 29. 10/1/2014 Enkitec © 29
  30. 30. 10/1/2014 Enkitec © 30
  31. 31. 10/1/2014 Enkitec © 31
  32. 32. 10/1/2014 Enkitec © 32
  33. 33. Column 3/7 • Database Resource Management (DBRM) • Plan Stability • Cost-based Optimizer (CBO) Statistics • Performance Summaries • Operating System (OS) Statistics History 10/1/2014 Enkitec © 33
  34. 34. 10/1/2014 Enkitec © 34
  35. 35. 10/1/2014 Enkitec © 35
  36. 36. 10/1/2014 Enkitec © 36
  37. 37. 10/1/2014 Enkitec © 37
  38. 38. 10/1/2014 Enkitec © 38
  39. 39. 10/1/2014 Enkitec © 39
  40. 40. 10/1/2014 Enkitec © 40
  41. 41. 10/1/2014 Enkitec © 41
  42. 42. 10/1/2014 Enkitec © 42
  43. 43. Column 4/7 • System Global Area (SGA) Statistics History • Program Global Area (PGA) Statistics History • Memory Statistics History • System Time Model • System Time Model Components • I/O Waits • I/O Waits Histogram for Top Wait Events 10/1/2014 Enkitec © 43
  44. 44. 10/1/2014 Enkitec © 44
  45. 45. 10/1/2014 Enkitec © 45
  46. 46. 10/1/2014 Enkitec © 46
  47. 47. 10/1/2014 Enkitec © 47
  48. 48. 10/1/2014 Enkitec © 48
  49. 49. 10/1/2014 Enkitec © 49
  50. 50. Column 5/7 • Active Session History (ASH) • ASH: On CPU and Top Wait Events 10/1/2014 Enkitec © 50
  51. 51. 10/1/2014 Enkitec © 51
  52. 52. 10/1/2014 Enkitec © 52
  53. 53. 10/1/2014 Enkitec © 53
  54. 54. Column 6/7 • ASH: Top Timed Events • ASH: Top SQL • ASH: Top Programs • ASH: Top Modules and Actions • ASH: Top Users • ASH: Top PLSQL Procedures 10/1/2014 Enkitec © 54
  55. 55. 10/1/2014 Enkitec © 55
  56. 56. 10/1/2014 Enkitec © 56
  57. 57. 10/1/2014 Enkitec © 57
  58. 58. 10/1/2014 Enkitec © 58
  59. 59. 10/1/2014 Enkitec © 59
  60. 60. 10/1/2014 Enkitec © 60
  61. 61. Column 7/7 • AWR Reports • ADDM Reports • ASH Reports • SQL Sample 10/1/2014 Enkitec © 61
  62. 62. 10/1/2014 Enkitec © 62
  63. 63. AWR, ADDM and ASH (1) • “DB Time” or “background elapsed time” • For each Instance (avoiding duplicates) – Peak during past 7 days – Peak during past 5 work days (8AM to 7PM) – Peak during past 24 hours – Peak during past 4 hours • For each report get also Global (if RAC) 10/1/2014 Enkitec © 63
  64. 64. 10/1/2014 Enkitec © 64
  65. 65. AWR, ADDM and ASH (2) • How many reports on a 4-node RAC? – 4 Instances – 4 Time Intervals (Peak for 7d, 5wd, 24h and 4h) – 1 Global report for each instance report (2x) – 3 report types (AWR, ADDM and ASH) – 4 x 4 x 2 x 3 = 96 reports 10/1/2014 Enkitec © 65
  66. 66. 10/1/2014 Enkitec © 66
  67. 67. SQL Sample (1) • Top SQL as per number of ASH samples – 16 during past hour as per GV$ – 16 during past 4 hours as per DBA_HIST – 16 during past 24 hours as per DBA_HIST – 16 during past 5 working days as per DBA_HIST – 16 during past 7 days as per DBA_HIST • Top 10 16 popular Statements from 5 lists 10/1/2014 Enkitec © 67
  68. 68. SQL Sample (2) • For Top 16 get planx.sql • For Top 12 get sqlmon.sql • For Top 8 get sqlash.sql • For Top 4 get sqlhc.sql (if available on sql dir) • Note: To be enhanced with sqld360 10/1/2014 Enkitec © 68
  69. 69. Closing Remarks • eDB360 takes between 1 and 3 hours to run – Best time to execute is at the end of a day (COB) • eDB360 provides a fair view of a database • A shell script runs eDB360 on all databases • A new Release about once a month • Installs nothing and it is free! 10/1/2014 Enkitec © 69
  70. 70. Beyond eDB360 • eAdam (available) – AWR Data Mining Tool • eSP (proprietary) – Enkitec’s Sizing and Provisioning Tool • sqld360 (wip) – Installs-nothing SQL diagnostics 360-degree view 10/1/2014 Enkitec © 70
  71. 71. References • eDB360 download – http://www.enkitec.com/products/edb360 • eDB360 capabilities – http://carlos-sierra.net/2014/07/27/edb360/ • eAdam capabilities and download – http://carlos-sierra.net/2014/07/27/eadam/ 10/1/2014 Enkitec © 71
  72. 72. Contact Information • carlos.sierra@enkitec.com • carlos-sierra.net • @csierra_usa Enkitec (c) 2014 72

×