Submit Search
Upload
Use AWR to save resources
•
0 likes
•
27 views
F
Frank Vidtfeldt Larsen
Follow
Presentation given at Danish Oracle User Group day October 22 2019
Read less
Read more
Technology
Report
Share
Report
Share
1 of 46
Download now
Download to read offline
Recommended
Test your PL/SQL with utPLSQL
Test your PL/SQL with utPLSQL
Daniel Overby Hansen
Do you know where your databases are?
Do you know where your databases are?
DATAVERSITY
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
Miguel Araújo
Data Warehouse - Incremental Migration to the Cloud
Data Warehouse - Incremental Migration to the Cloud
Michael Rainey
Confoo 202 - MySQL Group Replication and ReplicaSet
Confoo 202 - MySQL Group Replication and ReplicaSet
Dave Stokes
IDERA Live | Monitor the Performance of Multiple-Platform Databases in the Cloud
IDERA Live | Monitor the Performance of Multiple-Platform Databases in the Cloud
IDERA Software
Does it only have to be ML + AI?
Does it only have to be ML + AI?
Harald Erb
IDERA Slides: Managing Complex Data Environments
IDERA Slides: Managing Complex Data Environments
DATAVERSITY
Recommended
Test your PL/SQL with utPLSQL
Test your PL/SQL with utPLSQL
Daniel Overby Hansen
Do you know where your databases are?
Do you know where your databases are?
DATAVERSITY
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
Miguel Araújo
Data Warehouse - Incremental Migration to the Cloud
Data Warehouse - Incremental Migration to the Cloud
Michael Rainey
Confoo 202 - MySQL Group Replication and ReplicaSet
Confoo 202 - MySQL Group Replication and ReplicaSet
Dave Stokes
IDERA Live | Monitor the Performance of Multiple-Platform Databases in the Cloud
IDERA Live | Monitor the Performance of Multiple-Platform Databases in the Cloud
IDERA Software
Does it only have to be ML + AI?
Does it only have to be ML + AI?
Harald Erb
IDERA Slides: Managing Complex Data Environments
IDERA Slides: Managing Complex Data Environments
DATAVERSITY
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
DataWorks Summit
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Perficient, Inc.
Splunk und Multi-Cloud
Splunk und Multi-Cloud
Splunk
Splunk and Multicloud
Splunk and Multicloud
Splunk
Splunk and Multicloud
Splunk and Multicloud
Splunk
Open Banking and the Realization of Banking-as-a-Service
Open Banking and the Realization of Banking-as-a-Service
Kyriba Corporation
Snowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptx
Samuel168738
Supercharging oracle upgrades
Supercharging oracle upgrades
Daniel Overby Hansen
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013
richardgcurtis
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor Presentation
ClintHofer1
IDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data Environments
IDERA Software
Common Security Misconception
Common Security Misconception
Matthew Ong
Get ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_ext
Oracle Developers
Creating a Single Global Finance Platform at DTCC with IBM Services
Creating a Single Global Finance Platform at DTCC with IBM Services
IBM
Move InterBase Management to the Next Level with Aqua Data Studio
Move InterBase Management to the Next Level with Aqua Data Studio
IDERA Software
Docker Compose Setup for MySQL InnoDB Cluster
Docker Compose Setup for MySQL InnoDB Cluster
Balasubramanian Kandasamy
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
scoopnewsgroup
The trial period is over - Microservices adoption gains momentum
The trial period is over - Microservices adoption gains momentum
Shahir Daya
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
MadhuriGade2
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
SIHIEUNGUYEN
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
Kumar Satyam
More Related Content
Similar to Use AWR to save resources
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
DataWorks Summit
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Perficient, Inc.
Splunk und Multi-Cloud
Splunk und Multi-Cloud
Splunk
Splunk and Multicloud
Splunk and Multicloud
Splunk
Splunk and Multicloud
Splunk and Multicloud
Splunk
Open Banking and the Realization of Banking-as-a-Service
Open Banking and the Realization of Banking-as-a-Service
Kyriba Corporation
Snowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptx
Samuel168738
Supercharging oracle upgrades
Supercharging oracle upgrades
Daniel Overby Hansen
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013
richardgcurtis
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor Presentation
ClintHofer1
IDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data Environments
IDERA Software
Common Security Misconception
Common Security Misconception
Matthew Ong
Get ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_ext
Oracle Developers
Creating a Single Global Finance Platform at DTCC with IBM Services
Creating a Single Global Finance Platform at DTCC with IBM Services
IBM
Move InterBase Management to the Next Level with Aqua Data Studio
Move InterBase Management to the Next Level with Aqua Data Studio
IDERA Software
Docker Compose Setup for MySQL InnoDB Cluster
Docker Compose Setup for MySQL InnoDB Cluster
Balasubramanian Kandasamy
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
scoopnewsgroup
The trial period is over - Microservices adoption gains momentum
The trial period is over - Microservices adoption gains momentum
Shahir Daya
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
MadhuriGade2
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
SIHIEUNGUYEN
Similar to Use AWR to save resources
(20)
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
Making the Most of Data in Multiple Data Sources (with Virtual Data Lakes)
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Blue Shield of CA Revolutionizes its Portal Environment on IBM PureApplicatio...
Splunk und Multi-Cloud
Splunk und Multi-Cloud
Splunk and Multicloud
Splunk and Multicloud
Splunk and Multicloud
Splunk and Multicloud
Open Banking and the Realization of Banking-as-a-Service
Open Banking and the Realization of Banking-as-a-Service
Snowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptx
Supercharging oracle upgrades
Supercharging oracle upgrades
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor Presentation
IDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data Environments
Common Security Misconception
Common Security Misconception
Get ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_ext
Creating a Single Global Finance Platform at DTCC with IBM Services
Creating a Single Global Finance Platform at DTCC with IBM Services
Move InterBase Management to the Next Level with Aqua Data Studio
Move InterBase Management to the Next Level with Aqua Data Studio
Docker Compose Setup for MySQL InnoDB Cluster
Docker Compose Setup for MySQL InnoDB Cluster
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
Data Strategy – What Does an Enterprise Data Cloud Mean for Your Agency?
The trial period is over - Microservices adoption gains momentum
The trial period is over - Microservices adoption gains momentum
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
Recently uploaded
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
Kumar Satyam
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
Samir Dash
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
WSO2
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
rightmanforbloodline
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
WSO2
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
AnitaRaj43
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
WSO2
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Orbitshub
Recently uploaded
(20)
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
Architecting Cloud Native Applications
Architecting Cloud Native Applications
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Use AWR to save resources
1.
© 2019 USE AWR
TO SAVE RESOURCES DANIEL OVERBY HANSEN, LEAD DEVELOPER FRANK VIDTFELDT LARSEN, LEAD DEVELOPER
2.
© 20192 WELCOME LET’S HAVE
FUN
3.
© 20193 BRINGING INTEGRATED
SOLUTIONS TO INVESTMENT MANAGERS THE WORLD’S LEADING PROVIDER • Global provider of software and services to financial industry • Established in 1971 • Headquartered in Copenhagen, Denmark • Offices across Europe, North America and Asia-Pacific • Flagship product, SimCorp Dimension®, built on-top of Oracle Database • More than USD 20 trillion managed on SimCorp Dimension®
4.
© 20194 A SHORT
BIO THE PRESENTERS Frank Vidtfeldt Larsen Lead Developer frank-v-larsen Daniel Overby Hansen Lead Developer dohdatabase @dohdatabase
5.
© 20195 WHAT’S IN
IT FOR YOU GOAL 1 Inspire you to use AWR proactively 2 Demonstrate how easy to setup an AWR warehouse 3 Show by example unnecessary resource consumption 4 Inspire you to save resources and license fees
6.
© 20196 THE WAREHOUSE
”PROJECT”
7.
© 20197 TABLE STRUCTURE •
One table to describe all installations, host, sid/service and installation name • All DBA_HIST_xxx views are created as tables in the AWR warehouse in a compressed tablespace • One table to store generic sql id and sql_text • A few indices
8.
© 20198 SIZE • 160
in-house development installation • 470 GB compressed • AWR snapshot interval hourly • 8-month of data • Largest table 100GB (DBA_HIST_ACTIVE_SESS_HISTORY), however you could consider if the table is relevant in the warehouse.
9.
© 20199 REFRESH DATA
PROCESS • One package controls cleanup and daily apply of data. • Data are collected via database links • For DBA_HIST_xxx tables without snap_id columns we use “MERGE INTO” • Load time is less than an hour for all installations. • Any errors are logged in a logging table
10.
© 201910 GENERIC SQL
ID (1) • Thanks to Carlos Sierra’s for sharing he’s function to create a unique sql_id from any text https://carlos-sierra.net/2013/09/12/function-to-compute-sql_id-out-of-sql_text/ • Combined with the REPLACE function we can create unique sql_id and sql_text
11.
© 201911 GENERIC SQL
ID (2)
12.
© 2019© 2019 HOW
WE BECAME FRIENDS WITH STORAGE ADMIN 12
13.
© 201913 HOW WE
BECAME FRIENDS WITH STORAGE ADMIN CASE #1 – PHYSICAL I/O 1 Finding segments that produces most physical I/O 2 Using DBA_HIST_SEG_STAT as driver 3 Use the sum of PHYSICAL_READS_DELTA and group by database and day
14.
© 201914 HOW WE
BECAME FRIENDS WITH STORAGE ADMIN CASE #1 – PHYSICAL I/O
15.
© 201915 HOW WE
BECAME FRIENDS WITH STORAGE ADMIN CASE #1 – PHYSICAL I/O 1 Top sinner: table SYS.SCHEDULER$_EVENT_LOG 2 Used by DBMS_SCHEDULER 3 Average daily I/O produced: 15-20 TB 4 Maximum daily I/O produced: 59 TB
16.
© 201916 HOW WE
BECAME FRIENDS WITH STORAGE ADMIN CASE #1 – PHYSICAL I/O TRUNCATE TABLE
17.
© 201917 HOW WE
BECAME FRIENDS WITH STORAGE ADMIN CASE #1 – PHYSICAL I/O
18.
© 2019© 2019 A
SPINNING CPU IS A BEAUTIFUL CPU 18
19.
© 201919 SQL TUNING
TASK CASE #2 – CPU 1 Finding SQLs that burn most CPU 2 Using DBA_HIST_SQLSTAT as driver 3 Use the sum of CPU_TIME and group by day and SQL_ID
20.
© 201920 SQL TUNING
TASK CASE #2 – CPU
21.
© 201921 SQL TUNING
TASK CASE #2 – CPU
22.
© 2019© 201922 Do
we really want to use up to five CPUs during the weekend to run SQL Tuning Task? Or do we want to use those CPUs to e.g. generate better statistics? Or mine bitcoins?
23.
© 201923 ENTERPRISE MANAGER CASE
#3 – CPU
24.
© 201924 ENTERPRISE MANAGER CASE
#3 – CPU
25.
© 201925 ENTERPRISE MANAGER CASE
#3 – CPU
26.
© 201926 ENTERPRISE MANAGER CASE
#3 – CPU
27.
© 201927 ENTERPRISE MANAGER CASE
#3 – CPU
28.
© 2019© 201928 On
average these two Enterprise Manager metrics use one CPU - all day, everyday! Do we really need Enterprise Manager to verify our recovery strategy? Even if we do – do we need to verify it 12 times an hour?
29.
© 201929 REGEXP_LIKE BUG CASE
#4 – CPU
30.
© 201930 REGEXP_LIKE BUG CASE
#4 – CPU
31.
© 201931 REGEXP_LIKE BUG CASE
#4 – CPU
32.
© 2019© 201932 On
average this SQL was consuming more than two CPUs all day, everyday! By regularly applying Release Updates we eventually got rid of this annoyance
33.
© 201933 GOOD THING
ORACLE DOESN’T LICENSE PER CPU … OR … WAIT-A-MINUTE THANK YOU
34.
© 2019© 2019 HOW
WE BECAME FRIENDS WITH THE BACKUP GUY 34
35.
© 201935 WHAT ON
EARTH IS GOING ON CASE #5 – REDO LOG GENERATION
36.
© 2019© 201936 Probably
something unsual is going on… This would (hopefully) have been discovered anyway – but it can be used to find other anomalies
37.
© 2019© 2019 HOT
BLOCKS 37
38.
© 201938 QUEUE CASE #6
– HOT BLOCKS
39.
© 201939 QUEUE CASE #6
– HOT BLOCKS
40.
© 201940 QUEUE CASE #6
– HOT BLOCKS
41.
© 2019© 201941 This
is a development database. Most likely they have no clue… Let’s be a rock star DBA and have a friendly, and educating talk over a cup of coffee
42.
© 2019© 2019 FAMOUS
LAST WORDS 42
43.
© 201943 TIPS AND
TRICKS – AND FAMOUS LAST WORDS LESSONS LEARNED 1 2 3 Always aim for the lowest hanging fruits, i.e. the top consumers Use your knowledge of the business to sort out those that can’t be changed anyway Apply patches regularly
44.
© 201944 TIPS AND
TRICKS – AND FAMOUS LAST WORDS LESSONS LEARNED 5 6 For recursive SQLs it is useful to search MOS for the SQL_ID The level of instrumentation in an Oracle database is incredible AWR is a real treasure chest waiting to be found 4 Check for issues after configuration changes
45.
© 2019© 2019 QUESTIONS? 45
46.
© 2019 LEGAL NOTICE The
contents of this publication are for general information and illustrative purposes only and are used at the reader’s own risk. SimCorp uses all reasonable endeavors to ensure the accuracy of the information. However, SimCorp does not guarantee or warrant the accuracy, completeness, factual correctness, or reliability of any information in this publication and does not accept liability for errors, omissions, inaccuracies, or typographical errors. The views and opinions expressed in this publication are not necessarily those of SimCorp. © 2019 SimCorp A/S. All rights reserved. Without limiting rights under copyright, no part of this document may be reproduced, stored in, or introduced into a retrieval system, or transmitted in any form, by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose without the express written permission of SimCorp A/S. SimCorp, the SimCorp logo, SimCorp ®, and SimCorp Services are either registered trademarks or trademarks of SimCorp A/S in Denmark and/or other countries. Refer to www.simcorp.com/trademarks for a full list of SimCorp A/S trademarks. Other trademarks referred to in this document are the property of their respective owners.
Download now