Beruflich Dokumente
Kultur Dokumente
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Automatic Workload
Repository: Soup to Nuts
Graham Wood
Doug Burns
Doug Burns
Background
http://oracledoug.com
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Graham Wood
Background
Performance guy
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Program Agenda
Basics
AWR Reports
Case Study
Administration and Diagnostics
Conclusions
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Program Agenda
Basics
AWR Reports
Case Study
Administration and Diagnostics
Conclusions
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Basics
Is this the Soup?
Repository for snapshots of Oracle performance data
Introduced with Oracle 10g
Licensed as part of Diagnostic Pack
On by default
Self-managing
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Basics
Snapshots
Capture performed by MMON process
Captures data from V$ performance views
Cumulative data e.g. V$SYSSTAT
Data based on deltas e.g. V$SQL
Active Session History
Metrics
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Basics
Snapshots
Process controlled by AWR metadata
Settings visible in DBA_HIST_WR_CONTROL
Metadata set using DBMS_WORKLOAD_REPOSITORY package
Can also do manual snapshots
10
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Basics
Snapshots
Stores data in AWR tables in SYSAUX tablespace
WRH$_xxx for data
WRM$_xxx for metadata
11
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Basics
Default configuration
SQL> select * from dba_hist_wr_control;
DBID SNAP_INTERVAL
RETENTION
TOPNSQL
+00008 00:00:00.0
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
DEFAULT
AWR Basics
Recommended configuration
One hour or 30 minute snapshot interval
If you think you need less, you are probably using the wrong data
Attend Active Session History Deep Dive Moscone S Rm 104 Wed 15:30
EXECUTE DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS
( interval => 60, retention => 60*24*90);
13
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
-- 90 days
AWR Reports
14
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
Use the report based on the scope of the problem
How many AWR reports are there?
awrrpt.sql
15
ashrpt.sql
ASH report
addmrpt.sql
ADDM report
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Report
Beware!
AWR averages data over the
16
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Report
Beware!
AWR averages data over the
17
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
Analyzing the AWR report
Scope the problem before starting to analyze the data
AWR Report is very long
But you are not expected to read it all
Top few pages contains high level summary
Summary leads you to where to look next
18
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
Analyzing the AWR report
Look at the system overview unless you know the system well
CPU cores
Memory
OS
Oracle version
RAC?
Connected sessions
19
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
Analyzing the report
If resource is maxed out, target that first
DB CPU/sec => DB cores
Paging/Swapping/High System time
20
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
Analyzing the report
Or use Tyler Muths AWR Formatter for Chrome as a helper
http://tylermuth.wordpress.com/2011/04/20/awr-formatter/
Or RUN THE ADDM REPORT
21
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
AWR Reports
ADDM included in 12c AWR
Findings at top of report
Full ADDM report towards end
of report
22
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
23
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
new partitions
Various aggregation and reporting steps at end of run
One of the aggregation jobs had been running for over an hour rather
than a few minutes and had been killed
On a Saturday morning (of course)
When my replacements were all out of signal range (of course)
24
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Overall Approach
Performance Analysis is Informed Common Sense
Asking sensible questions
How long does this usually run for?
Few minutes
When did it start running slowly?
This morning
Ran just fine every other day, including the previous day
25
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
26
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
27
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
comparing
28
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
of basic report
Shows both values side-by-side
29
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
30
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
31
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
than usual
Check SQL statement Elapsed
Time Changes
Shows statements that appear
32
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
33
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
34
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
35
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
different plans
Long Elapsed Time so this is
the culprit
Lots of User I/O Wait Time
36
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
37
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
38
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Colored SQL
Even an AWR fan curses it sometimes!
TOPNSQL defines how many statements AWR should capture
Over multiple dimensions
Which means that you often won't find the 'Good Guy' for comparison
39
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
40
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
ADDM
AWR Report use case
What did ADDM say?
Host CPU was the issue
Latch issue ranked third
41
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
42
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
43
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
44
TIME
----------------------------+000000000 00:00:00.238
+000000000 00:00:03.159
+000000000 00:00:00.476
+000000000 00:00:00.296
+000000000 00:00:00.041
+000000000 00:00:00.011
+000000000 00:00:00.018
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
45
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
46
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
47
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
48
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Arial Times
49
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Arial Times
50
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
51
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
52
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
ORACLE
PRODUCT
LOGO
ANNOUNCEMENT
ALL CAPS,
ARIAL 44 PT,
4-LINE MAX
53
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Sample Image
Go to slide 56 for link to
download current hardware
image collection
ORACLE
PRODUCT
LOGO
54
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
55
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
56
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
57
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
58
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
THIRD PARTY
COMPANY LOGO
59
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Contextual information
about the chart
Bullet copy
4
3
2
Bullet copy
Bullet copy
1
0
Category 1
Category 2
Series 1
60
Series 2
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Category 3
Series 3
Category 4
Category 4
Contextual information
about the chart
Category 3
Bullet copy
Category 2
Bullet copy
Bullet copy
Category 1
0
1
Series 3
61
3
Series 2
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
4
Series 1
Stacked Chart
14
12
Contextual information
about the chart
10
8
Bullet copy
Bullet copy
Bullet copy
2
0
Category 1
Category 2
Series 1
62
Series 2
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Category 3
Series 3
Category 4
Line Chart
6
5
Contextual information
about the chart
Bullet copy
4
3
2
Bullet copy
Bullet copy
1
0
Category 1
Category 2
Series 1
63
Series 2
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Category 3
Series 3
Category 4
Pie Chart
4.3
4.5
Contextual information
about the chart
Bullet copy
Bullet copy
2.5
Bullet copy
3.5
Category 1
64
Category 2
Category 3
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Category 4
Tables
65
Title
Title
Bullet
Bullet
Bullet
Bullet
Sub-bullet
Sub-bullet
Sub-bullet
Sub-bullet
Sub-bullet
Sub-bullet
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
Title
Bullet
Bullet
Sub-bullet
Title
Bullet
Title
Bullet
66
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
67
Title
Title
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
Label
Label
Label
68
Title
Title
Text
Text
Bullet
Bullet
Bullet
Bullet
Text
Text
Bullet
Bullet
Bullet
Bullet
Text
Text
Bullet
Bullet
Bullet
Bullet
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
Label
Label
Label
69
Title
Title
Subtitle
Subtitle
Text
Text
Bullet
Bullet
Bullet
Bullet
Text
Text
Bullet
Bullet
Bullet
Bullet
Text
Text
Bullet
Bullet
Bullet
Bullet
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
Title
70
Title
Title
Title
Title
Title
Label
Label
Label
Label
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
Tables
Title
71
Title
Title
Title
Title
Title
Label
00.00
0.00
000.00
00.00
00.00
00.00
Label
0.00
00.00
0.00
0.00
0.00
0.00
Label
000.00
0.00
00.00
0.00
0.00
000.00
Label
0.00
000.00
0.00
000.00
00.00
00.00
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
72
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
73
Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template