SlideShare a Scribd company logo
1 of 46
Download to read offline
© 2019
USE AWR TO SAVE RESOURCES
DANIEL OVERBY HANSEN, LEAD DEVELOPER
FRANK VIDTFELDT LARSEN, LEAD DEVELOPER
© 20192
WELCOME
LET’S HAVE FUN
© 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®
© 20194
A SHORT BIO
THE PRESENTERS
Frank Vidtfeldt Larsen
Lead Developer
frank-v-larsen
Daniel Overby Hansen
Lead Developer
dohdatabase
@dohdatabase
© 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
© 20196
THE WAREHOUSE ”PROJECT”
© 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
© 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.
© 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
© 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
© 201911
GENERIC SQL ID (2)
© 2019© 2019
HOW WE BECAME FRIENDS
WITH STORAGE ADMIN
12
© 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
© 201914
HOW WE BECAME FRIENDS WITH STORAGE ADMIN
CASE #1 – PHYSICAL I/O
© 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
© 201916
HOW WE BECAME FRIENDS WITH STORAGE ADMIN
CASE #1 – PHYSICAL I/O
TRUNCATE
TABLE
© 201917
HOW WE BECAME FRIENDS WITH STORAGE ADMIN
CASE #1 – PHYSICAL I/O
© 2019© 2019
A SPINNING CPU
IS A BEAUTIFUL CPU
18
© 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
© 201920
SQL TUNING TASK
CASE #2 – CPU
© 201921
SQL TUNING TASK
CASE #2 – CPU
© 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?
© 201923
ENTERPRISE MANAGER
CASE #3 – CPU
© 201924
ENTERPRISE MANAGER
CASE #3 – CPU
© 201925
ENTERPRISE MANAGER
CASE #3 – CPU
© 201926
ENTERPRISE MANAGER
CASE #3 – CPU
© 201927
ENTERPRISE MANAGER
CASE #3 – CPU
© 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?
© 201929
REGEXP_LIKE BUG
CASE #4 – CPU
© 201930
REGEXP_LIKE BUG
CASE #4 – CPU
© 201931
REGEXP_LIKE BUG
CASE #4 – CPU
© 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
© 201933
GOOD THING ORACLE DOESN’T LICENSE PER CPU … OR … WAIT-A-MINUTE
THANK YOU
© 2019© 2019
HOW WE BECAME FRIENDS WITH
THE BACKUP GUY
34
© 201935
WHAT ON EARTH IS GOING ON
CASE #5 – REDO LOG GENERATION
© 2019© 201936
Probably something unsual is going on…
This would (hopefully) have been discovered anyway –
but it can be used to find other anomalies
© 2019© 2019
HOT BLOCKS
37
© 201938
QUEUE
CASE #6 – HOT BLOCKS
© 201939
QUEUE
CASE #6 – HOT BLOCKS
© 201940
QUEUE
CASE #6 – HOT BLOCKS
© 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
© 2019© 2019
FAMOUS LAST WORDS
42
© 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
© 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
© 2019© 2019
QUESTIONS?
45
© 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.

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)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...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-CloudSplunk und Multi-Cloud
Splunk und Multi-CloudSplunk
 
Splunk and Multicloud
Splunk and MulticloudSplunk and Multicloud
Splunk and MulticloudSplunk
 
Splunk and Multicloud
Splunk and Multicloud 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-ServiceOpen Banking and the Realization of Banking-as-a-Service
Open Banking and the Realization of Banking-as-a-ServiceKyriba Corporation
 
Snowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptxSnowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptxSamuel168738
 
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013richardgcurtis
 
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor PresentationWebiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor PresentationClintHofer1
 
IDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data EnvironmentsIDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data EnvironmentsIDERA Software
 
Common Security Misconception
Common Security MisconceptionCommon Security Misconception
Common Security MisconceptionMatthew Ong
 
Get ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_extGet ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_extOracle Developers
 
Creating a Single Global Finance Platform at DTCC with IBM Services
Creating a Single Global Finance Platform at DTCC with IBM ServicesCreating a Single Global Finance Platform at DTCC with IBM Services
Creating a Single Global Finance Platform at DTCC with IBM ServicesIBM
 
Move InterBase Management to the Next Level with Aqua Data Studio
Move InterBase Management to the Next Level with Aqua Data StudioMove InterBase Management to the Next Level with Aqua Data Studio
Move InterBase Management to the Next Level with Aqua Data StudioIDERA Software
 
Docker Compose Setup for MySQL InnoDB Cluster
Docker Compose Setup for MySQL InnoDB ClusterDocker Compose Setup for MySQL InnoDB Cluster
Docker Compose Setup for MySQL InnoDB ClusterBalasubramanian 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?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 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.pptxSnowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptxMadhuriGade2
 
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptxSnowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptxSIHIEUNGUYEN
 

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)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...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-CloudSplunk und Multi-Cloud
Splunk und Multi-Cloud
 
Splunk and Multicloud
Splunk and MulticloudSplunk and Multicloud
Splunk and Multicloud
 
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-ServiceOpen 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.pptxSnowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptx
 
Supercharging oracle upgrades
Supercharging oracle upgradesSupercharging oracle upgrades
Supercharging oracle upgrades
 
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013
 
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor PresentationWebiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor Presentation
 
IDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data EnvironmentsIDERA Live | Working with Complex Data Environments
IDERA Live | Working with Complex Data Environments
 
Common Security Misconception
Common Security MisconceptionCommon Security Misconception
Common Security Misconception
 
Get ready for_an_autonomous_data_driven_future_ext
Get ready for_an_autonomous_data_driven_future_extGet 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 ServicesCreating 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 StudioMove 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 ClusterDocker 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?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 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.pptxSnowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
 
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptxSnowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptx
 

Recently uploaded

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...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 TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)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 EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe 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....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 ..."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 PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI 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 ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting 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...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 TakeoffStrategize 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)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 EngineeringChoreo: 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 FMECloud 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 FMECloud 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....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 ..."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 PlatformLess 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 ..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.pptxCorporate 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 businessWhy 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 AnitarajAI 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 2024Modular 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 PakistanCNIC 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 EnterpriseNavigating 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.pdfRising 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
  • 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
  • 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?
  • 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?
  • 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
  • 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.