You are on page 1of 16

Oracle 10g Advanced

Performance Tuning

Kyle Hailey
Performance Vision
http://perfvision.com/ftp/emea
#.2

Who is Kyle Hailey


 1990 Oracle
 90 Oracle Unix support
 92 Ported v6 onto Dec Ultrix
 93 Oracle France
 94 Gold Support Specialist
 95 Performance Expert at Digital Europe
 98 Kernel Development California

 2000 Dot.Com
 2001 Quest
 2002 Oracle OEM 10g
 2005 Embarcadero
 2006 Independent

When not being being a Geek writing for the Oaktable etc
- photographer
- Just Married and new home owner in Portland
- and wonder how I missed the dot.com millions

Copyright 2006 Kyle Hailey


#.3

Make Things Simple


 I’m passionate about making it simple
 I love graphics
 Correlating
 Increased density
 Put related things together
 Colors and sizes help guide
 Providing known Solutions
 Guiding Investigation

Copyright 2006 Kyle Hailey


#.4

Graphics
“The human nervous
system … is
exceptionally good at
parsing visual
information, especially
when that information is
coded by color and/or
motion.”
#.5
Parsability of Graphics

Infocus – (overhead
projectors) sited a study that
humans can parse graphical
information 400,000 times
faster than textual data
#.6

What are the Trends?


#.7

Trends: With Graphics

I II III IV
Trends: Waits Over Time
#.8

date 17:13 17:13 17:14 17:14 17:15 17:15 17:16 17:16 17:17
17:17 17:18 17:18 17:19 17:19 17:20 17:20 17:21 17:21
17:22 17:22 17:23 17:23 17:24 17:24 17:25 17:25 17:26
17:26 17:27 17:27 17:28 17:28 17:29 17:29 17:30 17:30
17:31 17:31 17:32 17:32 17:33 17:33 17:34 17:34 17:35
17:35 17:36 17:36 17:37 17:37 17:38 17:38 17:39 17:39
17:40 17:40 17:41 17:41 17:42
log_file_switch_completion_3 0 0 0 0 2982936 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 237642 0 0 0 0
0 0 0 0 0 0 0 0 2100419
0 0 0 0
log_buffer_space_3 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 6478221 0
14945538 5219836 0 0
QL*Net_break/reset_to_client_3 8501199 11385539 7044359 8234690 6183237 2333297 7776659 6118198
6495648 7518489 11455326 7702865 11085762 7634300 10582833 13260400 8544422
13172524 8502041 12010958 9208533 9384118 10208957 7399676 6747457 6231611
13441429 7344615 8761884 6642950 7256315 7073623 8442915 7060399 7485662
6601072 6349018 9929440 4902230 6079359 5751021 9455790 9087866 9341209
7664906 16499162 10234535 10588829 8638014 8918795 4312962 8056957 4944408
7195059 3332565 3154348 5530740 4965315 7011341 5248675 6846116 6740378
5817539 9012238 7464656 9055304 8781313 9115954 9858761
latch_free_3 4306495 1931327 3327222 2181023 1764023 3238736 1637877 1922399 1786672
2312507 23083793 1091835 1862666 6949805 6453080 781313 2767384 1164596
2249654 440342 2076414 4062214 2408959 2886800 2177722 3332627 1237003
2098221 5986478 828048 2570183 2104943 2686288 2259440 2388341 2044871
1462208 2306024 1635624 2132461 783102 2677123 4743636 1292606 1499421
2439544 2753717 1905407 3017933 1651176 3686294 1088209 922402 2319624
2645539 1260079 4316997 1311242 2087917
rdbms_ipc_reply_3 27920139 31888722 29909917 27903331 27939736 29891410 29901186 29953756 27895419
29879828 28086221 29906822 27903067 29915873 29896307 31878918 28271932 29883910
29885870 29906113 27933209 27794807 29879997 28842040 30138759 12102954 0
0 0 0 0 0 0 0 0 0
0 4681562 0 0 1018 22981 0 0 0
383 0 0 0 0 0 0 0 0
0 0 0 3079 0 700 0 604 0
0 42240 0 0 0 508 2702
log_file_sync_3 4897094 5984818 8773859 6732708 2528699 21640100 4667088 9349937 6102384
5648418 16238557 9202562 4214425 12911555 8677281 1982443 5549138 2978201
4361914 2924674 3969540 4608851 4499043 5563593 7480457 8736114 4087525
7916623 9531711 4204114 4002465 4230277 4795701 6324440 4740469 5123660
2891044 8931372 4254477 6177218 5119836 4701245 9094181 6751040 6969569
8678671 10627609 8452116 13505152 9052070 9199762 6939591 39153732 18974176
71305938 25005388 6781095 3927165 enqueue_3 39067 87598 58429 93754
38807 270867 64623 76158 125199 39092426 73909741 82618 78157
12192579 30084139 30154100 30426042 30034564 30058775 30062114 27062239 27585615
#.9

Trends: Waits over Time


#.10

Counties in US
3101 Counties in US
50 pages

06/11/08 10
#.11

Ideas for Today

OEM

ASH

Sampling Waits

Copyright 2006 Kyle Hailey


#.12
Characters in our Play
 OEM 10g
 Comes to save us, but not always there
 Looks good but is complicated, a little slow
 Doesn’t always find the answer (but pretty good)

 ASH
 Comes to save us when Statspack & AWR fails us
 10g only and need license
 Can simulate for free on any version

 Statspack & AWR


 Super easy and reliable
 Not pretty and overwhelming data
 Most importantly missing data we want

Copyright 2006 Kyle Hailey


#.13

One Other Character - SASH


S-ASH
OEM 10g and ASH are the best, but …
When not available, here’s alternative

 Simulated ASH
 Free alternative to OEM 10g and ASH
 Graphic interface available - ASHMON

http://perfvision.com/sash.php
http://perfvision.com/ashmon.php

Copyright 2006 Kyle Hailey


#.14

Objective: Put you Ahead of the Curve

 V7
 Introduced Waits
 Revolutionized performance monitoring
 Took years to adopt wait interface

 V10 introduces
 OEM 10g
 Active Session History (ASH)
 Average Active Sessions (AAS)

 10g New Revolution


 Be ahead of the curve for the Oracle 10g Performance
Revolution

Copyright 2006 Kyle Hailey


#.15
Today’s Overview
 Holy Grail – Average Active Session (AAS)
 CPU ( with yard stick, max cpu)
 Wait
 Variation over time

 Active Session History (ASH)


 Foundation for AAS
 Uses Sampling Technology
 New Revolution

 OEM 10g
 Puts it all together
 Important Extra - Wait Analysis
 How to go beyond OEM 10g
 Use ASH to identifies and solve wait problems
 Explanations/solutions to top Wait Events

Copyright 2006 Kyle Hailey


#.16

Sections

Part I - Part II –
 New Ideas  Waits
 ASH  Buffer Cache
 AAS  IO

 OEM 10g  Redo

 10g New Features  Enqueues


 SharedPool
 SQL*Net

Copyright 2006 Kyle Hailey