introducing the edb360 tool

72
Introducing the eDB360 Tool Carlos Sierra

Upload: carlos-sierra

Post on 02-Jul-2015

169 views

Category:

Software


1 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Introducing the eDB360 Tool

Introducing the eDB360 Tool

Carlos Sierra

Page 2: Introducing the eDB360 Tool

• Oracle Performance and SQL Tuning

• Consultant/Developer/DBA

• eDB360 and eAdam

• SQLT and SQLHC

• Exadata

Carlos Sierra

Enkitec (c) 2014 2

Page 3: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 3

Page 4: Introducing the eDB360 Tool

How is eDB360 used?

• Database Health-check

• Offline Performance Analysis

• Sizing

– Capacity Planning

– Databases Consolidation into Engineered System

– Re-platform

9/27/2014 Enkitec © 4

Page 5: Introducing the eDB360 Tool

Typical use of eDB360 (1)

• Consultant onsite for one week

– Monday noon to Friday morning

9/27/2014 Enkitec © 5

• No access to Client’s intranet

• Limited or no access to internet

• Any script requires a round trip to a DBA

– 4 hours average

Page 6: Introducing the eDB360 Tool

Typical use of eDB360 (2)

• Client is considering Engineered System

• Multiple Databases would be migrated

• Resources utilization need to be evaluated

9/27/2014 Enkitec © 6

Page 7: Introducing the eDB360 Tool

Overlaps?

• DBA’s custom scripts

• OEM

• AWR

• ADDM

• Note: eDB360 Complements other tools!

9/27/2014 Enkitec © 7

Page 8: Introducing the eDB360 Tool

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)

9/27/2014 Enkitec © 8

Page 9: Introducing the eDB360 Tool

eDB360 Output

• One ZIP file with a set of files (hundreds)

9/27/2014 Enkitec © 9

• Set of files driven by one index.html file

Page 10: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 10

Page 11: Introducing the eDB360 Tool

9/27/2014 Enkitec © 11

0001_edb360_dbname_index.html

Page 12: Introducing the eDB360 Tool

9/27/2014 Enkitec © 12

Four Formats

Page 13: Introducing the eDB360 Tool

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)

9/27/2014 Enkitec © 13

Page 14: Introducing the eDB360 Tool

9/27/2014 Enkitec © 14

Page 15: Introducing the eDB360 Tool

9/27/2014 Enkitec © 15

7 Dynamic Columns

Page 16: Introducing the eDB360 Tool

Column 1/7

• Database Configuration

• Security

• Memory

• Resources

• Resources (as per Statspack)

9/27/2014 Enkitec © 16

Page 17: Introducing the eDB360 Tool

9/27/2014 Enkitec © 17

Page 18: Introducing the eDB360 Tool

9/27/2014 Enkitec © 18

Page 19: Introducing the eDB360 Tool

9/27/2014 Enkitec © 19

Page 20: Introducing the eDB360 Tool

Cluster and Instances

• Cluster is an aggregated view of all Instances

• Each Instance can be analyzed individually

9/27/2014 Enkitec © 20

Page 21: Introducing the eDB360 Tool

9/27/2014 Enkitec © 21

Page 22: Introducing the eDB360 Tool

9/27/2014 Enkitec © 22

Page 23: Introducing the eDB360 Tool

eDB360 uses Google Charts

• Drag to Zoom and Right click to Reset

9/27/2014 Enkitec © 23

Page 24: Introducing the eDB360 Tool

9/27/2014 Enkitec © 24

Page 25: Introducing the eDB360 Tool

9/27/2014 Enkitec © 25

Page 26: Introducing the eDB360 Tool

Column 2/7

• Database Administration

• Storage

• Automatic Storage Management (ASM)

9/27/2014 Enkitec © 26

Page 27: Introducing the eDB360 Tool

9/27/2014 Enkitec © 27

Page 28: Introducing the eDB360 Tool

9/27/2014 Enkitec © 28

Page 29: Introducing the eDB360 Tool

9/27/2014 Enkitec © 29

Page 30: Introducing the eDB360 Tool

9/27/2014 Enkitec © 30

Page 31: Introducing the eDB360 Tool

9/27/2014 Enkitec © 31

Page 32: Introducing the eDB360 Tool

9/27/2014 Enkitec © 32

Page 33: Introducing the eDB360 Tool

Column 3/7

• Database Resource Management (DBRM)

• Plan Stability

• Cost-based Optimizer (CBO) Statistics

• Performance Summaries

• Operating System (OS) Statistics History

9/27/2014 Enkitec © 33

Page 34: Introducing the eDB360 Tool

9/27/2014 Enkitec © 34

Page 35: Introducing the eDB360 Tool

9/27/2014 Enkitec © 35

Page 36: Introducing the eDB360 Tool

9/27/2014 Enkitec © 36

Page 37: Introducing the eDB360 Tool

9/27/2014 Enkitec © 37

Page 38: Introducing the eDB360 Tool

9/27/2014 Enkitec © 38

Page 39: Introducing the eDB360 Tool

9/27/2014 Enkitec © 39

Page 40: Introducing the eDB360 Tool

9/27/2014 Enkitec © 40

Page 41: Introducing the eDB360 Tool

9/27/2014 Enkitec © 41

Page 42: Introducing the eDB360 Tool

9/27/2014 Enkitec © 42

Page 43: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 43

Page 44: Introducing the eDB360 Tool

9/27/2014 Enkitec © 44

Page 45: Introducing the eDB360 Tool

9/27/2014 Enkitec © 45

Page 46: Introducing the eDB360 Tool

9/27/2014 Enkitec © 46

Page 47: Introducing the eDB360 Tool

9/27/2014 Enkitec © 47

Page 48: Introducing the eDB360 Tool

9/27/2014 Enkitec © 48

Page 49: Introducing the eDB360 Tool

9/27/2014 Enkitec © 49

Page 50: Introducing the eDB360 Tool

Column 5/7

• Active Session History (ASH)

• ASH: On CPU and Top Wait Events

9/27/2014 Enkitec © 50

Page 51: Introducing the eDB360 Tool

9/27/2014 Enkitec © 51

Page 52: Introducing the eDB360 Tool

9/27/2014 Enkitec © 52

Page 53: Introducing the eDB360 Tool

9/27/2014 Enkitec © 53

Page 54: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 54

Page 55: Introducing the eDB360 Tool

9/27/2014 Enkitec © 55

Page 56: Introducing the eDB360 Tool

9/27/2014 Enkitec © 56

Page 57: Introducing the eDB360 Tool

9/27/2014 Enkitec © 57

Page 58: Introducing the eDB360 Tool

9/27/2014 Enkitec © 58

Page 59: Introducing the eDB360 Tool

9/27/2014 Enkitec © 59

Page 60: Introducing the eDB360 Tool

9/27/2014 Enkitec © 60

Page 61: Introducing the eDB360 Tool

Column 7/7

• AWR Reports

• ADDM Reports

• ASH Reports

• SQL Sample

9/27/2014 Enkitec © 61

Page 62: Introducing the eDB360 Tool

9/27/2014 Enkitec © 62

Page 63: Introducing the eDB360 Tool

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)

9/27/2014 Enkitec © 63

Page 64: Introducing the eDB360 Tool

9/27/2014 Enkitec © 64

Page 65: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 65

Page 66: Introducing the eDB360 Tool

9/27/2014 Enkitec © 66

Page 67: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 67

Page 68: Introducing the eDB360 Tool

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

9/27/2014 Enkitec © 68

Page 69: Introducing the eDB360 Tool

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!

9/27/2014 Enkitec © 69

Page 70: Introducing the eDB360 Tool

Beyond eDB360

• eAdam (available)

– AWR Data Mining Tool

9/27/2014 Enkitec © 70

• eSP (proprietary)

– Enkitec’s Sizing and Provisioning Tool

• sqld360 (wip)

– Installs-nothing SQL diagnostics 360-degree view

Page 71: Introducing the eDB360 Tool

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/

9/27/2014 Enkitec © 71

Page 72: Introducing the eDB360 Tool

Contact Information

[email protected]

• carlos-sierra.net

• @csierra_usa

Enkitec (c) 2014 72