SlideShare a Scribd company logo
© 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-Cloud
Splunk
 
Splunk and Multicloud
Splunk and MulticloudSplunk and Multicloud
Splunk and Multicloud
Splunk
 
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-Service
Kyriba Corporation
 
Snowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptxSnowflake_Template_light-2024-redesigned.pptx
Snowflake_Template_light-2024-redesigned.pptx
Samuel168738
 
Supercharging oracle upgrades
Supercharging oracle upgradesSupercharging oracle upgrades
Supercharging oracle upgrades
Daniel Overby Hansen
 
JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013JPA Performance Myths -- JavaOne 2013
JPA Performance Myths -- JavaOne 2013
richardgcurtis
 
Webiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor PresentationWebiplex SuiteWorld Gold Sponsor Presentation
Webiplex SuiteWorld Gold Sponsor Presentation
ClintHofer1
 
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
IDERA Software
 
Common Security Misconception
Common Security MisconceptionCommon Security Misconception
Common Security Misconception
Matthew 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_ext
Oracle 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 Services
IBM
 
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
IDERA 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 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?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.pptx
MadhuriGade2
 
Snowflake_Template_light-2019.pptx
Snowflake_Template_light-2019.pptxSnowflake_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)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

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 

Recently uploaded (20)

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.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.