© 2010 Quest Software, Inc. ALL RIGHTS RESERVED Integrating Workload Replay into Database Change Management Bert Scalzo Database Domain Expert / Oracle.

Slides:



Advertisements
Similar presentations
Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Advertisements

Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Performance Testing - Kanwalpreet Singh.
1.
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
Copyright © 2007 Quest Software SQL Server Consolidation: Perfect Planning Prevents Poor Performance.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer Tips & Tricks Jeff Smith
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Track the changes in your Apex application between releases: Yes you can Plsql.
Chapter 6: Database Evolution Title: AutoAdmin “What-if” Index Analysis Utility Authors: Surajit Chaudhuri, Vivek Narasayya ACM SIGMOD 1998.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer What’s New in Version 4.1 Jeff Smith
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Advanced Metadata Modeling Modeling for the Oracle Business Intelligence Cloud.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer For the DBA Jeff Smith
Best Practices for Supporting Oracle Hyperion EPM and Business Intelligence Solutions Mitra Veluri Senior Principal Technical Support Engineer David Valociek.
Introduction to Software Testing
Backup and Recovery Part 1.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Managing Database Change with Data Modeling Bert Scalzo, PhD
Sitefinity Performance and Architecture
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
Chapter 17: Watching Your System BAI617. Chapter Topics Working With Event Viewer Performance Monitor Resource Monitor.
Application Express 4.1 New Features Hilary Farrell, Principal Member of Technical Staff, Oracle.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
1. When things go wrong: how to find SQL error Sveta Smirnova Principle Technical Support Engineer, Oracle.
Manage Engine: Q Engine. What is it?  Tool developed by Manage Engine that allows one to test web applications using a variety of different tests to.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Reporting from Contract.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
1 Mobile Document Capture using Apple iPhone and IBM Content Navigator October, 2012.
| Building the Effective Enterprise QAD Trade Promotion Management Rob DiMeola – Principal Business Analyst, R&D QAD Trade Promotion Management.
Data: Migrating, Distributing and Audit Tracking Michelle Ayers, Advisory Solution Consultant
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Improving Agility in Product Development and Pricing to Gain a Competitive Edge.
Oracle Patching and Maintenance A practical guide for System Administrators October 2009.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 2 Open Data Web Services for Oracle BPM August, 2013 Forms.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Contract Management.
Partner Logo Overcoming Buyer Objections Q
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Event Management & ITIL V3
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
SQL Tuning made much easier with SQLTXPLAIN (SQLT) Mauro Pagano Senior Principal Technical Support Engineer Oracle Confidential – Internal/Restricted/Highly.
Quick Tips for Database Performance Tuning Sergey Koltakov Kurt Engeleiter Product Manager.
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.
1. S318417: OAUG SysAdmin SIG Angelo Rosado, Oracle Senior Product Manager Kenneth Baxter, Oracle Strategy Product Manager Biju Mohan, Oracle Principal.
Cloud Computing Project By:Jessica, Fadiah, and Bill.
Systems Analysis and Design in a Changing World, Fourth Edition
1. When things go wrong: how to find SQL error Sveta Smirnova Principle Technical Support Engineer, Oracle.
Computer Systems Week 14: Memory Management Amanda Oddie.
Microsoft Management Seminar Series SMS 2003 Change Management.
Memory management.
Workforce Scheduling Release 5.0 for Windows Implementation Overview OWS Development Team.
Oracle Fusion Applications 11gR1 ( ) Functional Overview (L2) Manage Inbound Logistics (L3) Manage and Disposition Inventory Returns.
Data Center Management Microsoft System Center. Objective: Drive Cost of Data Center Management 78% Maintenance 22% New Issue:Issue: 78% of IT budgets.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
If you have a transaction processing system, John Meisenbacher
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 5 Lifehacks for the Apex Development environment Five frameworks you should use.
Closing the Query Processing Loop in Oracle 11g Allison Lee, Mohamed Zait.
CON8473 – Oracle Distribution of OpenStack Ronen Kofman Director of Product Management Oracle OpenStack September, 2014 Copyright © 2014, Oracle and/or.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9: Database Administration All Powder Board and Ski.
SQL Database Management
Lead SQL BankofAmerica Blog: SQLHarry.com
Maximum Availability Architecture Enterprise Technology Centre.
Introduction.
Introduction of Week 6 Assignment Discussion
Introduction of Week 3 Assignment Discussion
QAD Reporting Framework
Oracle Essbase: Scenario and What-If Modeling Made Simple
Performance And Scalability In Oracle9i And SQL Server 2000
Oracle Java SE Subscriptions; Protect Your Investment in Java SE
Presentation transcript:

© 2010 Quest Software, Inc. ALL RIGHTS RESERVED Integrating Workload Replay into Database Change Management Bert Scalzo Database Domain Expert / Oracle ACE

2 Author’s Books Coming Soon

3 Purpose Learn how one can rely on Benchmark Factory and actual captured database workload replay to more reliably ensure that normal database changes don’t degrade the user experience... Might save your reputation, sanity and job Note: Not Oracle specific, but examples here shown using BMF and Oracle trace file replay

4 Agenda Common challenges when dealing with database change Benefits of using database workload replay in change management methodology Performing database workload replay with Benchmark Factory The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Quest Software’s products remain at the sole discretion of Quest Software.

5 Database Change All applications & databases change over time Often changes are small & thus seemingly safe Sometimes changes are significant & very risky All change introduces risk – no matter the size! In fact studies have shown that the most “buggy” changes to code occur when less than 5 lines are modified (i.e. quick fixes are not very successful) Database changes work much the same: when you try “quick and simple” modifications without much thought, bad things generally happen ….

6 The Many Sources of Change Hardware upgrades, virtual resource re-allocation, or virtual machine relocation Software upgrades (e.g. new operating system or update to virtual machine software) Operating system and/or virtual machine setup, configuration and/or initialization parameters Database patches and/or upgrades (e.g > or Oracle 10gR2- >11gR2) Database setup, configuration and/or initialization parameters (e.g. SGA/PGA memory allocations) Database structural changes (e.g. add/drop/alter tables, columns, indexes and views) Storage nature changes (e.g. start using partitions, sub-partitions, index organized tables, etc) New database feature usage (e.g. start using 11G optional OEM “auto plan stability” features) Statistics and/or histogram collection frequency, granularity, parameters and/or method (SQL command vs. PL/SQL package call) Relative size of the database (e.g. most databases grow over time – some grow exponentially!)

7 Managing Change Measure of success: –Effective:Results AFTER = BEFORE –Efficient:Performance AFTER ~= BEFORE How to measure effectiveness –Unit testing –Integration testing How to measure efficiency –Stress Testing (too often a simple hardware stress scenario to prove that system can handle a “load”) –Workload replay: only way to assure real success …

8 What is Workload Replay Run the database application to generate transactions, and capture those transactions for replay on the same or a different system Focus the application transactions captured around that which has changed (i.e. a new business rule or process introduces new or modified code and database objects, therefore run & capture workload around that change) Also advisable to capture an overall workload scenario so that bad side effects can be found

9 Traditional DBA Approach Usually focused on just one or a few SQL statements of potential interest Too Much & Too Little

10 Too Much & Too Little Explained DBA most likely did not write the application code that’s now running slowly (i.e. efficiency) DBA may not fully understand the underlying business problem and all of its “requirements“ (i.e. effectiveness) #1+#2 = Tune with Uncertainty (“guestimate”) Multiple changed dimensions or aspects of the application and its database often rolled out all at once – overwhelming the lone DBA Never enough time – Needs fixed Yesterday!

11 Performance Pressure Points

12 Measure Cause & Effect >>

13 Options for Oracle Capture & Replay Oracle Real Application Testing (i.e. RAT) –Expensive (must purchase license for both source & target) –Generally captures the “entire“ database workload (however 11gR2 offers some new & useful replay filtering options) –Requires manually performing database backup & recovery Manual Trace File Capture via Toad DBA -> Replayed by a Benchmark Factory Project –Requires DBA to perform all the capture work manually – and this is not always easy (i.e. can be many, many steps) MOUSE (cute internal name for a new feature) –Automates the entire capture & replay process (so BMF will offer push button simplicity that even a caveman can do ) –Offers extensive filtering on both the capture & replay

14 RAT from Oracle New Features Training

15 RAT Base Pricing (minus discounts, etc) #CPU * #Cores * CPU Cost Factor * Processor License Cost + software Update/Support fee Must purchase for both source and target Example (upgrading a Xeon DB server): –Source:Dual E GHz 2 * 4 *.5 * $11,500 + $0.00 = $46,000 –Target:Dual E GHz 2 * 6 *.5 * $11,500 + $2,530= $71,530 –OEM Diagnostic Pack (Target Only) 2 * 6 *.5 * $5,000 +$1,100 = $61,100 –OEM Tuning Pack (Target Only) 2 * 6 *.5 * $5,000 +$1,100 = $61,100 –TOTAL Base Pricing = $239,730 !!! –Assume Typical 30% = $167,811 !!! This is in addition to Database’s base cost…

16 Basic BMF Architecture Six simple steps: 1. Manually setup to collect the trace files 2. Manually run the DB workload to capture 3. FTP trace files to Windows environment 4. Create BMF project based on trace files 5. BMF import (i.e. parse) the trace files 6. Run that project to replay the workload

17 Capture via Toad (Manual Effort) Need both of these so that BMD can replay trace files

18 Capture via DB Trigger (Automated) CREATE OR REPLACE TRIGGER AUTO_SET_TRACE AFTER LOGON ON DATABASE BEGIN IF (USER IN ('MOE','LARRY','CURLY')) /* ONLY TRACE FOR THE 3 STOOGES */ THEN EXECUTE IMMEDIATE 'ALTER SESSION SET tracefile_identifier = ''XXXXX'''; EXECUTE IMMEDIATE 'ALTER SESSION SET max_dump_file_size = ''10M'''; DBMS_SESSION.SESSION_TRACE_ENABLE (waits=>FALSE, binds=>TRUE); END IF; EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-10001,'AUTO_SET_TRACE ERROR'); END; You can write sophisticated filters to limit the number, size and naming (i.e. prefix) of all trace files collected during the capture

19 Inspect Trace Files via Toad Much like Winzip for Trace files

20 Create BMF Project for Replay

21 Set Some Replay Parameters Couple of Notes: - All the trace files need copied from the database server to the local BMF Windows PC(s) - The more and larger the trace files the longer it will take for BMF to parse and load them - BMF generally maintains transaction ordering and timings (but different hardware, software, and configurations may skew the results as expected)

22 Run the Replay Job So now we can replay or re- run the captured database workload at any time by starting this BMF project

23 I’m Poor & Lazy I don’t have $$$ for RAT (and OEM packs) I don’t want to manually do anything (ever) I want a very simple, push button, read my mind, totally automated solution that does not break the bank …. New BMF feature (Q4 – code name MOUSE) –Simple in concept & totally automates the process –Simple Capture Wizard (creates the BMF project) –Robust filtering options for both capture & replay –Merely replay the BMF project (it handles it all) –Zero percent manual effort (fully automatic!)

24 BMF / MOUSE Architecture Look Familiar ?

25 New BMF Option: Capture & Replay

26 Create a Capture

27 Capture Wizard Steps

28 Capture Wizard Steps

29 Capture Wizard Steps

30 Monitoring the Capture Manually Stop when Done or by Schedule

31 BMF Job Built for You – Just Run It

32 More information: Visit –Expert blogs, how-to-videos and more! Paper on topic – gy=8&prod=&prodfamily=&lochttp:// gy=8&prod=&prodfamily=&loc Benchmark Factory Community: – –Interact with BMF users and the product developers