Académique Documents
Professionnel Documents
Culture Documents
March 2018
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 2
AWRA Project [Over]Achievements
• Give it a simplified way to improve rules over time (continuous
improvement) ✔
• Create a tool, flexible and transparent, not hard coded, to allow update,
inclusion and deletion of AWR Analysis Flow from end-to-end ✔
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 3
TIME TO RESOLUTION
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 4
Dbperf Team
AWR Advisor (AWRA) & Team and AWRA
Excellence in
Continuous AWR Reports
Improvement & AWRA Web
Standardization 101000100110100101010101000101
Portal
0011010010101010100010101010010
1010001001101001010101010001010101
AWRA and AWR
001010101010001010101001010
Report Training
1010010100010101010010101000101010100
AWRA
Improvements &
Enhancements
AWRA BETA
Release Version
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 7
What is not realized (Main Points)
• Finish HTML version for AWRA Report Analysis
• Semi-auto integration with BugTag database
• Auto-identification of DQA Analysis Accuracy and coverage of Wait Events
• Auto-Validation of XML Files rules errors
• English Rationale output analysis
• AWR Report compare (Good/Bad)
–It impacts on some AWR Report user cases and Analysis results
• More tests
• Investigations for some DQA Classes/Sub Classes
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 8
Miscellaneous
• More than 5000 Lines of configuration on the XML File
– 8 DQA Wait Classes
– 56 DQA Wait Sub Classes
– 238 Wait Events
– 56 Investigation Template Names (Not all has checks and/or action plans yet)
– 101 Checks (Sanity Checks and investigation Checks)
– 32 Special Checks for SQLs
– 3 Wait Event sensibility
– 113 Action plans
• Compatible to 10.1 – 12.2
• 8860 Lines of Python code
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 9
Database Quick Analyzer Wait Classes
(DQA Wait Classes Analysis)
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 10
Wait Classes – AS IS
Pre-Defined Wait
Classes
1:1
Wait Event Wait Event Class
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 11
Wait Classes – AS IS
Pre-Defined Wait
Classes
1:1
Wait Event Wait Event Class
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 12
DQA Wait Classes – TO BE *NEW THINKING!*
*:*
Wait Event Wait Event Class
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 13
DQA Wait Classes Analysis In Practice ….
Enq: tx – index
Log file sync Write complete waits
contention
1. Inserts on
1. Too much index (right 1. DBWR
commits side) settings
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 14
DQA Wait Classes Analysis In Practice ….
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 15
• All flexible
• Allows new investigations
from scratch
• Powered by XML
ELT
DQA ANALYSIS INVESTIGATION CHECKS
(Extract/Load/Tranform) ACTION PLANS
INITIAL CHECKS - Root cause driven (Investigation
- Parse it - Detailed Action Plans
- Sanity checks - Group wait event Templates) RATIONALE
- Load it in Memory - Targeting either solving
- Focused on making analysis - Get the most out of
- Patternize it across the AWR Report the issue OR gathering
sure if any major issue in Single wait event NEXT PHASE
RDBMS version more relevant
CPU, MEM, IO is found analysis - Across SME
- Creates new relevant information on it
- Across SME(RDBMS) - Hot bugs checks
metrics
AWRA FRAMEWORK
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 16
Architecture Model – Investigation Item Vs. Investigation
Template
Example
Library
SGA Resizes cache
Invalidations
CPU and so
Parse
on
Mutexes
From Non
From Users
Users
Indirect Direct
RMAN DATAPUMP
Reads Reads
Segments SQLs
Outliers Outliers
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 18
AWRA Action Plans Example
OSWATCHER
SQLTXTRACT
SQLT SQLT
INSTALL GETREPORT
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 19
Bug Matches – Only for bugs with wait event in symptoms…
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 20
Issue
Today’s Limitations
Database Session/Job SQL Tuning
1. Do not use Good/BAD Approach
1. In case of customer issue is taking a relevant part of Database time (Almost not Database Performance)
2. There is a possibility to mitigate some cases by changing XML File as long as you are trained on AWRA and AWR Reports
3. Oracle RAC
1. Only analyze 1 AWR Report at a time which is not the best way
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 21
IT IS DEMO TIME!!
1. Parse Error
2. Small XML File (Small Brain)
3. Big XML File (Smart Brain)
4. Report Output Analysis
5. RAC Node 1
START DEMO
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 22
AWR ADVISOR (AWRA) – ALL ABOUT IT DOC ID
2370590.1
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 23
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal 26