Managing Mission-Critical Database Changes with Oracle Real Application Testing
 

Like this? Share it with your network

Share

Managing Mission-Critical Database Changes with Oracle Real Application Testing

on

  • 353 views

Testing database changes if not done right can lead to unexpected and unwanted results as you deploy to production. According to a recent IOUG database manageability survey, 78 percent of DBAs ...

Testing database changes if not done right can lead to unexpected and unwanted results as you deploy to production. According to a recent IOUG database manageability survey, 78 percent of DBAs experienced unplanned downtime resulting from database changes not properly tested.

This presentation will show you how Oracle Real Application Testing—an Oracle Database 12c, Enterprise Edition option and Oracle Enterprise Manager 12c—work together to provide an easy-to-use solution for making changes to your mission-critical database. Learn about the new Oracle Real Application Testing capability, SQL Performance Analyzer (SPA) Quick Check. It lets DBAs run quick validations on production databases for any system change.

If you want to listen to the webcast that used this deck, click here: pub.vitrue.com/rDpx

Statistics

Views

Total Views
353
Views on SlideShare
352
Embed Views
1

Actions

Likes
0
Downloads
5
Comments
0

1 Embed 1

http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Managing Mission-Critical Database Changes with Oracle Real Application Testing Presentation Transcript

  • 1. Managing Mission-Critical Database Changes with Oracle Real Application Testing Kurt Engeleiter Principal Product Manager Oracle 1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 16
  • 2. Oracle Real Application Testing Create Test System Capture Workload End-to-End Testing With Real Workloads Replay Workload • SQL Performance Analyzer • SQL unit testing for response time • Identify and tune regressed SQL • Seamlessly integrated with SQL Tuning Advisor and SQL Plan Baselines Deploy Replay Clients • Database Replay • Load, performance testing for throughput • Remediate application concurrency problems • Integrated with Application Testing Suite, Application Replay, and Data Masking for a comprehensive testing solution • Useful for capacity planning, consolidation testing 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 3. SQL Performance Analyzer (SPA) Application Response Time Testing SQL Plans + Stats before change Pre-Change Trial SQL Workload STS SQL Plans + Stats after change Post-Change Trial     Compare SQL Performance Analysis Report Test and predict impact of system changes on SQL query performance using real workloads Identify all plan changes and/or regressions Eliminate SQL regressions with SQL Tuning Advisor and SQL Plan Baselines Database consolidation testing support 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 4. Database Replay  Database load and performance testing with real production workloads Production Clients Test Replay Driver – Production workload characteristics such as timing, transaction dependency, think time, etc., fully maintained  Test and measure transaction throughput improvements  Identify application scalability and concurrency problems  Remediate issues pre-production for risk-free migration  Supports migrations from 10gR2 and higher Storage Capture 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template Storage Process Replay Analysis & Reporting
  • 5. Database Replay  EM Cloud Control 12c supports simple and intuitive interface for Database Replay capacity planning and scale-up testing – Scale-up with time shifting – Scale-up with workload folding – Scale-up with data duplication  Allows customers to easily and accurately test their consolidation strategy and future-proof environment for growth 5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12
  • 6. When to use SPA? Testing database upgrades and patch-set releases* • 9.2/10.1/11g 10.2,11g or 12c releases • 10.2.0.x 11g or 12c releases Testing optimizer related changes • Optimizer statistics refresh • Database parameter changes, schema changes (e.g., add/drop indexes) • Implementation of tuning recommendations • I/O subsystem changes (e.g., ASM, Database Machine) Always use SPA before Database Replay to help reduce testing cycles • Most changes such as patch-sets, upgrades may result in plan changes • SPA is the best tool to perform SQL-centric analysis • SPA handles trials do not change database data • SPA trials can be repeated without restoring database • SPA trials complete quickly relative to DB Replay runs 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template *MOS Note: 560977.1
  • 7. Use Case 1: Prevent Performance Issues Due to Application Schema Changes  The new BI system has very aggressive SLAs defined. How can we ensure consistent performance across the system?  Application schema changes such as new indexes, objects (MVs, partitions, etc.) can often impact performance of the application  How do we validate the performance of critical queries before rolling out these changes? 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 8. Validate Impact of Application Schema Changes Central SPA System Trial 1 Test State 1 01001011001010100100100100100100100100100100100010010101001001001 00111001001001001001001000010010000010111001001010100100100101010 1001000100000101010010010101010011010100101010010010101001100101 Trial 2       8 New indexes or other access structures State 2 Use SPA Guided Workflow (recommended) or PL/SQL APIs Create STS with representative workload Establish first trial remotely using current state – baseline Make change – Create the indexes or access structures Establish second trial remotely using the same SQL Tuning Set Review SPA report, tune if any SQL regressions on test, rollout changes on production Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 9. Tip: Take the Guess Work Out!  Run your trial before and after making the change  Make sure your most important queries are not regressed  Take the guess work out 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 10. SPA Challenges Yes, SPA can validate changes, but running SPA on: Test Database Test System is safe but… Production Database  Requires separate HW Production System is Easier but…  Could be resource intensive and impact production performance  Data in test system should be same as production  Changes needs to be manually scoped to private session  Lengthy, error-prone task DBA  Could take a long time to finish  No resource control by default 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 11. SPA Quick Check Enables Testing on Production Safely for Day-to-Day Use Cases Optimized SPA Quick Check • Optimized for use on prod systems • Optimal Trial or Explain Plan mode • Disable multi-executions, full DML execute disabled Optimal Trial Mode, no DML execute Controlled ChangeAware 11 • Per SQL time limits • Testing scoped to private session • Associate with Resource Consumer Group • Context-aware change testing workflows, such as, • Optimizer gather statistics • Init.ora parameter changes Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Per SQL Time Limits, Limits testing scope to private session Optimized Controlled/ Scoped Change-Aware Pre-selected STS and default SPA settings Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template Context-aware change testing Production Database DBA
  • 12. SPA Quick Check Optimized Identifies subset SQL workload with plan changes first 12 Test-executes only SQLs with plan changes Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Minimizes use of production resources dramatically – up to 10x reduction Multiple executions disabled Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template No full DML (execute Select part of workload)
  • 13. SPA Quick Check Controlled Per-SQL time limit – protects from runaway SQL Resource throttling - Associate with Resource Consumer Group Testing scope limited to private session 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 14. SPA Quick Check Change-aware Change-aware: Knows what change is being tested In-line with routine DBA tasks such as statistics gathering, init.ora parameter changes Intelligently limits impact to private test session 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 15. Use Case 2: Validate Optimizer Statistics on Production Using SPA Quick Check  Problem: – Sometimes after gathering optimizer statistics, some SQL switch to non-optimal execution plans  Solution: – Use SPA Quick check to validate SQL performance before publishing new optimizer statistics 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 16. Validation on Production 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 17. Taking the Guess Work Out! 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 18. Use Case 3: SPA Quick Check—Init.ora Parameter Validation  Problem: – My manager wants me to improve database performance by tuning the optimizer_index_caching parameter. The assumption is that will help improve the performance significantly… – However, I’m not sure if this parameter will help, how do I quickly and accurately validate the impact of the above parameter for my workload?  Solution: You can use SPA Quick Check to validate the performance impact of the parameter… 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 19. SPA Quick Check: Performance Validation 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 20. SPA Quick Check: Performance Validation 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 21. SPA Quick Check—Init.ora Parameter Validation: Solution  SPA Quick Check able to validate the impact of optimizer_index_caching on production  This change should NOT be implemented since it impacts the performance negatively  The change was tested on production in a controlled manner very efficiently without impacting production users! 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 22. SQL Performance Analyzer (SPA) Benefits SPA identifies regressed SQL and helps remediate them • Gives you a mechanism to tune SQL or lock in prior plans if they are better SPA testing applies to significant portion of the workload • Provides significant workload coverage for all access row sources including DML SPA handles trials in a manner that does not change database data • Hence can be used for testing in production/standby environments • Multiple tests can be run in quick succession 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, SPA Provides Broad Testing Coverage Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template • Across many releases of Oracle and for upgrades • On test, standby, and production environments • Extended to home-grown scripts, third-party testing tools, etc. • Supports most applications - EBS, SAP, Siebel, home-grown, etc.
  • 23. Oracle Real Application Testing Benefits Forrester Consulting: ROI Study Organizations that implemented Oracle Real Application Testing see significant savings:  67% Increase in DBA productivity*  Increase in business application availability and uptime by proactively identifying issues*  32% Reduction in capital expenditures* ROI achieved $M Year 3 5 Year 2 4 Year 1 3 2  224% ROI 1  5.9 months payback period Productivity Gain Reduced Capital Expenditure *Risk-Adjusted Over 3 Years 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template Source: Forrester Consulting, Total Econmonic Impact Study of Oracle Real Application Testing
  • 24. CSX Upgrades Databases 2x Faster with Oracle Real Application Testing Business Needs  Minimize business impact of database migration to critical commercial and proprietary business applications, (payroll, dispatch, and customer-facing order entry)  Reduce downtime during upgrade of 400  Insure seamless migration to a new Linux- based Oracle Real Application Clusters environment from legacy IBM AIX platform. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014,  Better Time-to-Value: CSX Corporation upgrades 400 databases 2x faster, less than half the time for the previous upgrade cycle—even though DB footprint grew 30%  Lower Cost: Reduced manual efforts through automated testing using real production workloads Oracle Databases 24 Results  Lower Risk: Tested multiple replays of the Oracle Database 11g version of the enterprise data warehouse to assess potential impact before migrating, resulting in fewer production issues post-migration Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 25. Conclusion  SPA enables businesses to safely test and deploy system changes using real workloads  Increases business agility and uptime  Increases staff productivity – less firefighting  More focus on strategic planning and execution  Increased capital expenditure savings • 232% ROI over 4 years* • <12 months payback period * *Based on POC and business case from a Fortune 500 Insurance Company 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2014, Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
  • 26. 26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 16