Royal London Group A group of specialist businesses where the bottom line is always financial sense Oracle Statistics – with a little bit extra on top.

Slides:



Advertisements
Similar presentations
Best Practise in Using Finance Simulations in UK Higher Education By: Neil Marriott and Siew Min (Amy) Tan.
Advertisements

Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Copyright © 2011 by the Commonwealth of Pennsylvania. All Rights Reserved. Load Test Report.
Database Management3-1 L3 Database Management Santa R. Susarapu Ph.D. Student Virginia Commonwealth University.
1 DB2 Access Recording Services Auditing DB2 on z/OS with “DBARS” A product developed by Software Product Research.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
Royal London Group A group of specialist businesses where the bottom line is always financial sense Get your Oracle app Fit for release Malcolm Leckie.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Copyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. SQL Workshop Day 4.
#4502 – Streamlining the Physical Inventory Process Using a Custom Solution.
ManageEngine TM Applications Manager 8 Monitoring Custom Applications.
Chapter 3 Database Management
Well, Sort-of.
Distributed DBMSs A distributed database is a single logical database that is physically distributed to computers on a network. Homogeneous DDBMS has the.
SE 464: Industrial Information systems Systems Engineering Department Industrial Information System LAB 02: Introduction to SAP.
Beyond data modeling Model must be normalised – purpose ? Outcome is a set of tables = logical design Then, design can be warped until it meets the realistic.
Harvard University Oracle Database Administration Session 2 System Level.
Gavin Payne Oracle for SQL Server DBAs. Why Oracle? Installation Physical Storage Backup and Recovery 20 slides in 50 minutes Inside the database Programmability.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
Lecture-8/ T. Nouf Almujally
Microsoft Office SharePoint Server Business Intelligence Tom Rizzo Director, Microsoft Office SharePoint Server
Passage Three Introduction to Microsoft SQL Server 2000.
Dynamics AX Technical Overview Application Architecture Dynamics AX Technical Overview.
AND SOME MISCELLANEOUS TOPICS CONCURRENT ACCESS AND SORTING Database Objects.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
CI GLOBAL TECH LLC COMPANY OVERVIEW & OFFERING CI GLOBAL TECH.
1 Presenters: Lucretia Parham Janice Zeigler Armstrong Atlantic State University May 14 10:15 a.m. - 11:15 a.m. Presenters: Lucretia Parham Janice Zeigler.
Benefits of PL/SQL. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –List and explain the benefits of PL/SQL –List.
Introduction Optimizing Application Performance with Pinpoint Accuracy What every IT Executive, Administrator & Developer Needs to Know.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Oracle PL/SQL Programming Steven Feuerstein All About the (Amazing) Function Result Cache of Oracle Database 11g.
Oracle Application Express (Oracle APEX), formerly called HTML DB, is a Free rapid web application development tool for the Oracle database.
REAL TIME (ON-LINE) TRANSACTION PROCESSING Option 1: Transaction Processing Systems.
It’s the Power Of Us! ® Network | Learn | Collaborate | Share How to Leverage SharePoint Connectors and the GP Light User By Jason McKinney,
It’s the Power Of Us! ® Network | Learn | Collaborate | Share How to Leverage SharePoint Connectors and the GP Light User By Jason McKinney,
M1G Introduction to Database Development 6. Building Applications.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Back Office Solution For C.T Smith Stock Brokers WEG-34.
Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles.
AWR: Going beyond the scripts supplied by Oracle Jerry Brenner, 5/17/2007.
Simplified SQL Performance Management in Oracle Database 11g Pete Belknap.
Administration and Monitoring the Database Oracle 10g.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
BW Know-How Call : Performance Tuning dial-in phone numbers! U.S. Toll-free: (877) International: (612) Passcode: “BW”
3-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Chapter 3 Databases and Data.
What is Sure Stats? Sure Stats is an add-on for SAP that provides Organizations with detailed Statistical Information about how their SAP system is being.
The Enterprise Project Management (EPM) Professional March 28th, 2007 Brendan Giles, BSc., PMP, MOS, MCP (EPM) The Key to Successful Adoption of Enterprise.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Srik Raghavan Principal Lead Program Manager Kevin Cox Principal Program Manager SESSION CODE: DAT206.
CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. 1 Main Frame Computing Objectives Explain why data resides on mainframe.
© 2003 Prentice Hall, Inc.3-1 Chapter 3 Database Management Information Systems Today Leonard Jessup and Joseph Valacich.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
An overview of AWR, ASH and ADDM. Learning About AWR Real-World Performance Day with Tom Kyte The Independent Oracle Users Groups presents “A Day of Real-World.
INTRODUCTION TO INFORMATION SYSTEMS LECTURE 9: DATABASE FEATURES, FUNCTIONS AND ARCHITECTURES PART (2) أ/ غدير عاشور 1.
I/Watch™ Weekly Sales Conference Call Presentation (See next slide for dial-in details) Andrew May Technical Product Manager Dax French Product Specialist.
Thank you/Appreciate time Intro me- Manage channel last 2 years
DBMS and SQL.
Shared Services with Spotfire
Purpose, Pitfalls and Performance Implications
From 4 Minutes to 8 Seconds in an Hour (or a bit less)
Purpose, Pitfalls and Performance Implications
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Queries.
MATERI PL/SQL Procedures Functions Packages Database Triggers
SOFTWARE DEVELOPMENT LIFE CYCLE
Presentation transcript:

Royal London Group A group of specialist businesses where the bottom line is always financial sense Oracle Statistics – with a little bit extra on top Lise Parker Technical Designer Scottish Life – part of The Royal London Group 1

Agenda Introduction Some background about my company, me and how we use Oracle 2 Database Statistics What are they and what can they tell you? Bridging The Gap What we’ve done to better understand individual code behaviour The End! Questions?

Royal London Group A group of specialist businesses where the bottom line is always financial sense Introduction About Royal London and Scottish Life About Me About the Database and Application 3

UK’s largest mutual (customer-owned) Life and Pensions provider Multi-brand business run as separate business units 2,880 * employees, primarily UK-based with main offices in Edinburgh, Wilmslow and London £46.8 billion * of funds under management Around 4 million customers * About Royal London * As at 31 st March Introduction

About Scottish Life Founded in 1881, acquired by Royal London in 2001 Pension specialist Internal business users on two UK sites Core business applications primarily developed in-house including secure web application for external customers and business partners 5 Introduction

About Me Worked with Oracle databases and tools since 1996 Work within the Technical Architecture & Design team Provide specialised technical support for Scottish Life Oracle development teams covering both database and code 6 Introduction

About the Database Main policy administration application uses Oracle 11gR1 database and PL/SQL for business logic Complex application landscape with multiple integrations One production database supporting OLTP during day time and batch during night time – c. 1k concurrent users per hour – c. 1m online transactions per day – c. 350 batch reports per night Multiple concurrent batch streams with complex dependencies 7 Large database interaction variation between online and batch scenarios Introduction

About the Applications 8 Windows Web Servers DMZ Internet Internal Network Unix Database Servers Oracle Windows Database Servers MS SQL Windows Application Servers External Users (Financial Advisers, Employers, Employees/ Policyholders) External Business Partners Internal Users Firewall Introduction

Royal London Group A group of specialist businesses where the bottom line is always financial sense Database Statistics Why do we need them? What do you get “out the box”? What can they tell us? What else is available? 9

Why do we need them? 10 Customers expectations of information accessibility have changed as a result of the internet There’s an expectation to receive information: – via multiple channels – in real-time – quickly The database can be a bottleneck if performance is not understood and managed effectively on an on-going basis Key to ensure that database performance doesn’t constrain our business proposition designs and customer experiences Database Statistics

What’s available “out the box” 11 Real time data to historical data AWR Statistics are available as both real time and historical data Cumulative values Metrics Sampled data (ASH) Database Statistics

-- Top 10 CPU consumers in the last 5 mins SELECT * FROM (SELECT session_id,session_serial#,COUNT(*) FROM v$active_session_history WHERE session_state = 'ON CPU' AND sample_time > SYSDATE - INTERVAL '5' minute GROUP BY session_id,session_serial# ORDER BY COUNT(*) DESC) WHERE rownum <= 10; -- Top 10 waiting sessions in the last 5 mins SELECT * FROM (SELECT session_id,session_serial#,COUNT(*) FROM v$active_session_history WHERE session_state = 'WAITING' AND sample_time > SYSDATE - INTERVAL '5' minute GROUP BY session_id,session_serial# ORDER BY COUNT(*) DESC) WHERE rownum <= 10; -- Who is the SID? SELECT serial#,username,osuser,machine,program,resource_consumer_group,client_info FROM v$session WHERE sid = &sid; -- What did the SID do? SELECT DISTINCT sql_id,session_serial# FROM v$active_session_history WHERE sample_time > SYSDATE - INTERVAL '5' minute AND session_id = &sid; -- Retrieve the SQL from the Library Cache: SELECT sql_text FROM v$sql WHERE sql_id = '&sqlid'; What can they tell us – real-time? 12 Real time data continuously updated whilst database is open and in use (v$) Database Statistics

13 -- Top 10 waiting sessions for a specific time period SELECT * FROM (SELECT session_id,session_serial#,COUNT(*) FROM dba_hist_active_sess_history WHERE session_state = ‘WAITING' AND sample_time BETWEEN TO_DATE('01-june ','dd-mon-yyyy hh24') AND TO_DATE('01-june ','dd-mon-yyyy hh24') GROUP BY session_id,session_serial# ORDER BY COUNT(*) DESC) WHERE rownum <= 10; -- Top 10 CPU consumers for a specific time period SELECT * FROM (SELECT session_id,session_serial#,COUNT(*) FROM dba_hist_active_sess_history WHERE session_state = 'ON CPU' AND sample_time BETWEEN TO_DATE('01-june ','dd-mon-yyyy hh24') AND TO_DATE('01-june ','dd-mon-yyyy hh24') GROUP BY session_id,session_serial# ORDER BY COUNT(*) DESC) WHERE rownum <= 10; -- What did the SID do? SELECT DISTINCT sql_id,session_serial# FROM dba_hist_active_sess_history WHERE sample_time BETWEEN TO_DATE('01-june ', 'dd-mon-yyyy hh24') AND TO_DATE('01-june ', 'dd-mon-yyyy hh24') AND session_id = &sid; -- Retrieve the SQL from the Library Cache SELECT sql_text FROM dba_hist_sqltext WHERE sql_id = '&sqlid'; What can they tell us – historical? Database Statistics Real time data available for set amount of days (DBA_HIST)

What else is available? 14 DBMS_APPLICATION_INFO – Oracle package used to record the names of the executing modules or transactions in the database. – These settings are very useful when it comes to tracking performance. – Set MODULE and ACTION sensibly throughout your code structure. Profiling at run time: – Wrap the DBMS_APPLICATION_INFO within a PL/SQL package. – If profiling then record every setting of the MODULE and ACTION in a table. Database Statistics Consider use of DBMS_APPLICATION_INFO in your application designs

Royal London Group A group of specialist businesses where the bottom line is always financial sense Bridging The Gap Our problem What we had and what we wanted The additional framework The GUI we have built 15

Some examples of questions that we needed to answer: – The marketing department wants to know how long it takes to produce a statement from the web at the busiest time. – How can I decide on what to tune that will reduce the overall batch window? – The batch is starting to take longer and longer to run. What is causing this? Our problem 16 Bridging The Gap Very difficult to identify relevant data from global database statistics

PL/SQL SQL What we had and what we wanted 17 PL/SQL SQL Needed statistics relevant to specific business processes Process A Process C Process B Process D Process E Process F Process G Segments SQL statements Transactions CPU I/O ASH AWR Segments SQL statements Transactions CPU I/O ASH AWR PL/SQL SQL Bridging The Gap Process A Process C Process B Process D Process E Process F Process G Segments SQL statements Transactions CPU I/O ASH AWR

Application A Process Application C Process Application D Process Application B Process The additional framework 18 Process DB Bridging The Gap Process Statistics Framework PROCESS_MASTER PROCESS_STATS PROCESS_STATS_ ENTRIES PROCESS_STATS_ ENTRIES PROCESS_CONTROL_ PARAMETERS

Process Data Analysis Tool 19 Bridging The Gap This slide had a movie showing you our Process Stats GUI tool. Instead I have added a few slides showing you screen dumps of this GUI tool so you still have an idea of how we did it.

Process Data Analysis Tool 20

Process Data Analysis Tool 21

Process Data Analysis Tool 22

Process Data Analysis Tool 23

Process Data Analysis Tool 24

Summary Things to consider: – Invest some time to better understand what Oracle statistics “out the box” can tell you about your database behaviour – Is there anything “extra on top” you could add that would provide additional benefit to your particular environment – How you could design your application code to integrate with the Oracle statistics framework – How you can make the statistics information available to developers to help them improve their query designs 25 Be proactive, not reactive!

Royal London Group A group of specialist businesses where the bottom line is always financial sense Any questions? Lise Parker