\
Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Visualizing Oracle performance data to spot trend changes

Oracle Database Tips by Donald BurlesonJune 1,  2015


Visualizing Oracle data is a critical task and it can be done with a variety of tools:
  • Ion - A tool for quickly visualizing Oracle performance analysis.

  • Excel-DB - A Excel spreadsheet Oracle plug-in that allow for fast charting of Oracle performance data.

So, how do we add a third dimension to an Oracle query and visualize it?  Let's start with this sample Ion screenshot of a two-dimensional plot of tablespace activity over time.  Note the three variables (tablespace_name, physical_writes, and time):


Ion screenshot for tablespace physical writes over time

Creating 2d charts in Excel is easy, and the ability to visualize Oracle performance is critical for Oracle troubleshooting, in cases where the database performance has changed.

 What kind of changes can cause unexpected performance problems?  Here are some common examples:

  • SQL- changes to optimizer parameters  (optimizer_mode, optimizer_index_cost_adj, db_file_multiblock_read_count )(before 11g)) and CBO statistics can cause system-wide performance changes.  This will manifest as changes in logical I/O, and the problem can be spotted by graphing consistent gets by top SQL ordered by gets, plotted along the time dimension.

  • Disk changes - Changing disk characteristics (RAID level, stripe size, controllers) will impact performance.  The salient metrics are physical_reads and file_name, plotted over time.  We can also plot I/O time and top-5 tablespace, total I/O and top-5 sessions.

  • Buffer efficiency - You can visualize the buffer changes over time in two dimensions by plotting the ratio of logical reads (consistent_gets) to physical disk reads over time (the data buffer hit ratio).  To enhance this in three dimensions we add (top-5 SQL ordered by reads, or buffer busy waits) and plot over time.

  • Network performance - Oracle network bottleneck analysis is well understood, and you can plot SQL*Net messages to client + sql*Net message.

  • CPU performance - We can also plot CPU time and consistent gets over time to evaluate CPU efficiency.

We are allowing the end-user to choose the x, y values as well as the start and end snapshots.  We then dynamically create the SQL, run the query and pipe the results to a three dimensional charting tool. 


Network performance - This plots "SQL*Net" waits over time

set pages 999;

column mydate heading 'Yr. Mo Dy Hr'      format a13;
column event                              format a30;
column waits                              format 999,999;
column secs_waited                        format 999,999,999;
column avg_wait_secs                      format 99,999;

select
   to_char(snap_time,'yyyy-mm-dd HH24')           mydate,
   e.event,
   e.total_waits - nvl(b.total_waits,0)           waits,
   ((e.time_waited - nvl(b.time_waited,0))/100) /
   nvl((e.total_waits - nvl(b.total_waits,0)),.01)  avg_wait_secs
from
   stats$system_event b,
   stats$system_event e,
   stats$snapshot     sn
where
   e.snap_id = sn.snap_id
and
   b.snap_id = e.snap_id-1
and
   b.event = e.event
and
   e.event like 'SQL*Net%'
and
   e.total_waits - b.total_waits  > 100
and
   e.time_waited - b.time_waited > 100

 




 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.