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

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
"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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
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
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
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
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governanceWSO2
 
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
 
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
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
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
 

Recently uploaded (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
"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 ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
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
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
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
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 

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.