Manage Change With Confidence: Upgrading to Oracle Database 11g with Oracle Real Application Testing

Similar documents
What is Real Application Testing?

Successful Upgrade Secrets: Preventing Performance Problems with Database Replay

Configuration changes such as conversion from a single instance to RAC, ASM, etc.

Oracle Database 11g: Real Application Testing & Manageability Overview

Moving Databases to Oracle Cloud: Performance Best Practices

Reinventing Upgrades, Platform Changes, RAC and More with Database Replay

Oracle Database 18c and Autonomous Database

OpenWorld 2018 SQL Tuning Tips for Cloud Administrators

Real Application Testing Certified for SAP

Oracle 11g New Features

Session 1079: Using Real Application Testing to Successfully Migrate to Exadata - Best Practices and Customer Case Studies

SQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Oracle Enterprise Manager Oracle Database and Application Testing. Real Application Testing Lab. Session S318966

Managing Oracle Database 12c with Oracle Enterprise Manager 12c

Copyright 2018, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

Database Performance Analysis Techniques Using Metric Extensions and SPA

Worry Free Application Upgrades

Oracle EXAM - 1Z Oracle Database 11g: Performance Tuning. Buy Full Product.

Trouble-free Upgrade to Oracle Database 12c with Real Application Testing

Oracle 1Z0-054 Exam Questions and Answers (PDF) Oracle 1Z0-054 Exam Questions 1Z0-054 BrainDumps

<Insert Picture Here> Managing Oracle Exadata Database Machine with Oracle Enterprise Manager 11g

Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Metalink Note: : Real Application Testing for Earlier Releases What is being announced?

Welcome to the Oracle Enterprise Manager Technical Webcast Series

Oracle Database 11g: New Features for Administrators Release 2

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. reserved. Insert Information Protection Policy Classification from Slide 8

DBAs can use Oracle Application Express? Why?

Real Application Testing: An Introduction Harald van Breederode Oracle University 8-JUN-2010

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

Oracle Autonomous Database

Real Application Testing Never Get Caught By Change Again. Michael R. Messina, Management Consultant Rolta-TUSC, NYOUG 2011 (60 min)

Oracle Database 11g: New Features for Administrators DBA Release 2

Consolidate and Prepare for Cloud Efficiencies Oracle Database 12c Oracle Multitenant Option

Oracle Database 11g: Real Application Testing & Manageability Overview. An Oracle White Paper June 2007

<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g

An Oracle White Paper September Methods for Upgrading to Oracle Database 11g Release 2

Using Automatic Workload Repository for Database Tuning: Tips for Expert DBAs. Kurt Engeleiter Product Manager

Oracle Database 12c: Performance Management and Tuning

Oracle Database 12c Performance Management and Tuning

Oracle Database 10g The Self-Managing Database

Create a DBaaS Catalog in an Hour with a PaaS-Ready Infrastructure

Demystifying SQL Tuning: Tips and Techniques for SQL Experts

An Oracle White Paper September Upgrade Methods for Upgrading to Oracle Database 11g Release 2

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

Database Level 100. Rohit Rahi November Copyright 2018, Oracle and/or its affiliates. All rights reserved.

Exadata Implementation Strategy

Oracle Database 11g: New Features for Oracle 9i DBAs

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

Oracle Real Application Clusters (RAC) 12c Release 2 What s Next?

Oracle Database 10g: New Features for Administrators Release 2

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals

ORACLE 11g Database Replay

Enterprise Manager: Scalable Oracle Management

Oracle Database 11g for Experienced 9i Database Administrators

Session id: The Self-Managing Database: Guided Application and SQL Tuning

ORACLE 11g R2 New Features

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

End-to-end Management with Grid Control. John Abrahams Technology Sales Consultant Oracle Nederland B.V.

Oracle Diagnostics Pack For Oracle Database

Exadata Implementation Strategy

Oracle Multitenant What s new in Oracle Database 12c Release ?

Re-platforming the E-Business Suite Database

Oracle Exam 1z0-054 Oracle Database 11g: Performance Tuning Version: 5.0 [ Total Questions: 192 ]

Oracle DBA workshop I

Oracle Database 11g: SQL Fundamentals I

Safe Harbor Statement

Leng Leng Tan Vice President Server Manageability and Diagnosability Oracle Corporation. Arvind Gidwani Kothandapani Subramaniyam

Key to A Successful Exadata POC

CON8260 -Database as a Service Cookbook Strategies and Tips for Successful Deployment

TECHNOLOGY: Testing Performing Through Changes

1Z Oracle Database Performance and Tuning Essentials 2015 Exam Summary Syllabus Questions

The Fastest and Most Cost-Effective Backup for Oracle Database: What s New in Oracle Secure Backup 10.2

Toad for Oracle Suite 2017 Functional Matrix

Tips and Tricks on Successful Upgrade to 11gR2

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

<Insert Picture Here> Exadata MAA Best Practices Series Session 1: E-Business Suite on Exadata

Oralogic Education Systems

Storage Optimization with Oracle Database 11g

Oracle Database 10G. Lindsey M. Pickle, Jr. Senior Solution Specialist Database Technologies Oracle Corporation

Private Cloud Database Consolidation Name, Title

Oracle Enterprise Manager 12c IBM DB2 Database Plug-in

1z0-062.exam.215q 1z0-062 Oracle Database 12c: Installation and Administration

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Actifio Sky DB. Actifio s Solution for Oracle, Oracle EBS with standalone, RAC, ASM, EXADATA configurations

An Oracle White Paper June Managing Oracle Exadata with Oracle Enterprise Manager 12c

<Insert Picture Here> Deploy New Features Risk Free Using Database Replay

Oracle Database 11g: Performance Tuning DBA Release 2

Database Manageability

An Oracle White Paper June Manageability with Oracle Database 12c

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Upgrading to 11g Best Practices

Oracle12c Release 1 New Features for Administrators (5 Days)

Oracle Exadata: Strategy and Roadmap

<Insert Picture Here> Reduce Problem Resolution Time with Oracle Database 11g Diagnostic Framework

<Insert Picture Here> Maximizing Database Performance: Performance Tuning with DB Time

Transcription:

Manage Change With Confidence: Upgrading to Oracle Database 11g with Oracle Real Application Testing

The following 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 Oracle s products remains at the sole discretion of Oracle.

Operations and Infrastructure Top Concerns Managing Change Effectively Is A Strategic Imperative!

Lifecycle of Change Management { } Test { } Make Change { Diagnose & } Resolve Problems { Set Up Test } Environments { Provision for } Production { Identify Patches &} Workarounds { Diagnose & Manage } Problems Managing Change With Confidence

Lifecycle of Change Management { } Test { } Make Change { Diagnose & } Resolve Problems { Set Up Test } Environments { Provision for } Production { Identify Patches &} Workarounds { Diagnose & Manage } Problems Oracle Real Application Testing

Oracle Real Application Testing Value Rapid technology adoption Higher testing quality Business Benefit Lower cost Lower risk Features Database Replay SQL Performance Analyzer (SPA)

Database Replay

Testing Today Production 1,000s of Real Online Users PRODUCTION

Testing Today Test 1-2 testers trying to be 1,000s of users PRODUCTION TEST

Database Replay Workload for 1,000s of online users captured Capture Workload PRODUCTION

Database Replay Workload for 1,000s of online users replayed Capture Replay Workload PRODUCTION TEST

Database Replay Test your system changes at production levels Capture Replay Workload PRODUCTION TEST

Real Application Testing with Database Replay Replay production workload in test environment Identify, analyze and fix potential instabilities before making changes to production Capture Workload in Production Capture full production workload with real load, timing & concurrency characteristics Move the captured workload to test system Replay Workload in Test Make the desired changes in test system Replay workload with full production characteristics Honor commit ordering Analyze & Report Errors Data divergence Performance divergence Analysis & Reporting

Supported Changes Changes Unsupported Client Client Client Middle Tier Changes Supported Database Upgrades, Patches Schema, Parameters RAC nodes, Interconnect OS Platforms, OS Upgrades CPU, Memory Storage Etc. Storage Recording of External Client Requests

Database Replay Workflow Clients Production (>= 9.2.0.8) Test (11g) Replay Driver Mid-Tier Storage Storage Capture Process Replay Analysis & Reporting

Step 1: Workload Capture All external client requests captured in binary files Production System System background and internal activity excluded Client Client Client Minimal overhead Avoids function call when possible Buffered I/O Middle Tier File System Independent of client protocol File 1 Can capture on 9.2.0.8 and replay on 11g File 2 Capture load for interesting time period, e.g., peak workload, month-end processing, etc. Storage File n

Capture Options Workload can be filtered to customize what is captured Inclusion Filters: Specifies which sessions should be captured Exclusion Filters: Specifies which sessions should NOT be captured Filter Attributes: Any of the following session attributes can be used for filtering User Program Module Action Service Session ID Workload capture can be run ondemand or scheduled to run at later time

Step 2: Process Workload Files Setup test system Application data should be same as production system as of capture start time Use RMAN, Snapshot Standby, imp/exp, Data Pump, etc. to create test system Make change: upgrade db and/or OS, change storage, migrate platforms, etc. Processing transforms captured data into replay able format Once processed, workload can be replayed many times For RAC copy all capture files to single location for processing File 1 File 2 File n Capture Files Test System File 1 File 2 File n Metadata Replay Files

Step 3: Replay Workload Replays workload preserving timing, concurrency and dependencies of the capture system Replay Client is a special program that consumes processed workload and sends requests to the replay system Clients interpret captured calls into sequence of OCI calls and submit to database For high concurrency workloads, it may be necessary to start multiple clients OCIStmtPrepare() OCIBindByName() OCIAttrSet() OCIStmtExecute() Test System Replay Clients select * from tab Binds: Bind 1: b Cursor #: 1 # Rows Fetched: 10 File 1 File 2 File n Metadata Replay Files

Replay Options Synchronized Replay (Default) Workload is replayed in full synchronized mode Same concurrency and timing as production workload Transaction commit order is honored Ensures minimal data divergence Synchronization controls Workload can be replayed in unsynchronized mode Useful for load/stress testing High data divergence Parameters for controlling synchronization Commit order synchronization: SYNCHRONIZATION Think time synchronization: THINK_TIME_SCALE Connect (logon) time synchronization: CONNECT_TIME_SCALE Request rate preservation: THINK_TIME_AUTO_CORRECT

Analysis & Reporting Error Divergence: For each call error divergence is reported New: Error encountered during replay not seen during capture Not Found: Error encountered during capture not seen during replay Mutated: Different error produced in replay than during capture Data Divergence Replay: Number of rows returned by each call are compared and divergences reported User: Application level validation scripts Performance Reporting Capture and Replay Report: Provides high-level performance information ADDM Report: Provides in-depth performance analysis AWR, ASH, Replay Period Reports: Facilitates comparative or skew analysis

Current Restrictions Database Replay does not support the following features in the current release SQL Loader direct path load, import/export OCI based object navigation (ADTs) and REF binds Distributed transactions, remote describe/commit operations Flashback queries

Comparison of LoadRunner & DB Replay Testing e-business Suite 80 80 Taken (Days) Time 60 40 20 0 4 Install & Setup 24 20 20 0 Understand Application Usage 0 Identify Key Transactions 2 Generate Workload 5 Run Test 5 Traditional Testing Tools DB Replay DB Replay: ½ month Total Testing Time Traditional Testing Tools: 7 ½ months

Database Replay Comparison Technology that can only be built by Oracle Workload 3rd Party Load Testing Tools Artificial simulated workload Oracle Database Replay Real application workload Test Coverage 1-5% of workflows 100% of workflows Test Effort Simple app: weeks Complex app:months Simple app: days Complex app: days

Database Replay Case Study <Insert Picture Here>

Case Study Evaluate benefits of Oracle 11g Advanced Compression feature System profile Linux 32-bit Red Hat 1 CPU hyperthreaded 2 GB RAM Workload Profile Mixed OLTP (30%) and DSS (70%) 10 TPS

Case Study: Assessing OLTP Compression Capture Replay Replay W/Comp

Case Study: Assessing OLTP Compression Table Size (Blocks) 9714 Table Size with Compression (Blocks) 1000 Compression Ratio 9.71

SQL Performance Analyzer (SPA)

Why SQL Performance Analyzer (SPA)? Businesses want systems that are performant and meet SLA s SQL performance regressions are #1 cause of poor system performance Solution for proactively detecting all SQL regressions resulting from changes not available DBA s use ineffective and time-consuming manual scripts to identify problems SPA identifies all changes in SQL performance before impacting users

SQL Performance Analyzer Test impact of change on SQL query performance Capture SQL workload in production including statistics & bind variables Re-execute SQL queries in test environment Analyze performance changes improvements and regressions Client Client Client Production* Test Middle Tier Re-execute SQL Queries Oracle DB Capture SQL Use SQL Tuning Advisor to tune regression Storage * Note SPA can also be run on production system for some changes

SQL Performance Analyzer Workflow Production (>= 9i) Clients Test (10.2 or 11g) Mid-Tier Storage Storage Capture SQL Transport SQL Execute SQL Pre-change Execute SQL Post-change Compare Perf

Step 1: Capture SQL Workload Cursor Cache Incremental Capture SQL Tuning Set SQL Tuning Set (STS) used to store SQL workload For Oracle9i release, SQL*Trace can be used STS includes: SQL Text Bind variables Execution plans Execution statistics Incremental capture used to populate STS from cursor cache over a time period Production Database

Step 2: Move SQL Workload to Test System Cursor Cache SQL Tuning Set Export/Import SQL Tuning Set Production Database Test Database For Oracle Database 10g or higher, export STS to test system Transport staging table to test system (datapump, db link, etc.) Copy SQL tuning set from staging table ( unpack )

Step 3: Execute SQL Before Making Change SQL Tuning Set Fetch Next SQL Establishes SQL workload performance baseline SQL execution plan and statistics captured Test Execute SQL executed serially (no concurrency) Execution Plan & Statistics Save Result Each SQL executed DDL/DML skipped Option to do Explain Plan only analysis SQL Performance Analyzer

Step 4: Execute SQL After Making Change SQL Tuning Set Fetch Next SQL Test Execute Manually implement the planned change Database upgrade, patches Optimizer statistics refresh Schema changes Database parameter changes Tuning actions, e.g., SQL Profile creation Execution Plan & Statistics SPA can also simulate performance gains on Exadata server without provisioning hardware Completed Save Result Re-execute SQL after change Gathers new SQL execution plans and statistics SQL Performance Analyzer

Step 5: Compare & Analyze Performance Completed Compare SQL Performance Analysis Report Completed Compare performance using different metrics, e.g., Elapsed Time CPU Time Optimizer Cost Buffer Gets SPA Report shows impact of change for each SQL Improved SQL Regressed SQL Unchanged SQL SQL Performance Analyzer Fix regressed SQL using SQL Tuning Advisor or SQL Plan Baselines

SPA Report

Routine Testing on Production: SPA Usage 1. Test Upgrade 10g Prod 11g Test 2. Fix Regression thru SPM 3. Parameter change (Bad) 4. Statistics Gathering (Good) 11g Prod +Parameter Change 6. Index (Very Good) + Validating Tuning +SQL +New Stats Profile Change 5. Fix Regression SQL Profile + Schema Change

SQL Performance Analyzer Benefits From: Manual workload creation Synthetic workload Months of manual analysis Partial workload High risk To: Automated workload capture Production workload Automated analysis in minutes Complete workload Low risk

David Mitchell Senior Vice President, OVUM Oracle Real Application Testing reduces the time required to test changes by as much as 80%, lower testing costs by as much as 70%, mitigate risks by reducing the number of unexpected outages, and improve the quality of service for their IT operations. Source: Oracle Real ApplicationTesting business agility through superior testing, Jan 2008

Lifecycle of Change Management { } Test { } Make Change { Diagnose & } Resolve Problems { Set Up Test } Environments { Provision for } Production { Identify Patches &} Workarounds { Diagnose & Manage } Problems Provisioning Automation

Provisioning Automation with Cloning Benefits Simple, Accurate, Reliable Capacity on Demand Simple, Accurate, Reliable rolling out of images Reduce possibility of errors and improve reliability Low TCO through automation Higher quality of service Features Gold image based cloning of software bits Image can be pre-patched to any level Image is sourced from the host itself or from the Software Library Optionally performs post cloning configuration e.g., database creation Several homes can be cloned in parallel Database cloning uses fast,proven RMAN technology

Deployment Cycle Testing and Staging Test users 1 2 Create reference system Stage gold images Production 5 1 Scale back 4 Scale out (RAC cluster) Provision Production system 3

Automated Patch Management New Enhanced Capabilities Out-of-box best practice for patching of single instance and RAC databases, AS midtier (custom BPEL & SOA Apps) Support for interim patches, patchsets and CPUs Metadata driven patch prerequisites Rolling support for RAC/ASM/Clusterware patching Continued Live update of best practices from Metalink Support for sudo and PAM based authentication Benefits Simple, Accurate, and Reliable Maintenance of Oracle Systems Reduce Errors and Improve Reliability Faster Patching Process Higher Service Quality

Automated Provisioning of Testing Reduce time and effort of database testing Automate production to test workflow of Database Replay Capture production workload, performance data Copy workload, performance data to staging Provision software, create test database Deploy replay clients and orchestrate replay

Summary <Insert Picture Here>

Use Oracle Real Application Testing to Manage Change with Confidence and LOWER change risk LOWER testing time without compromising quality LOWER unplanned outages IMPROVE application reliability IMPROVE system performance IMPROVE end-user experience IMPROVE quality of service ADOPT new technology faster

Real Application Testing for pre-11g Databases More details on how to use Database Replay and SQL Performance Analyzer in earlier releases can be found on OTN Real Application Testing for Earlier Releases Metalink Note: 560977.1 http://www.oracle.com/technology/products/manageability/database/pdf/ metalink_real_application_testing_for_earlier_releases.pdf Testing Performance Impact of an Oracle 9i to Oracle Database 10g Release 2 Upgrade with SQL Performance Analyzer http://www.oracle.com/technology/products/manageability/database/pdf/o wp_spa_9i.pdf

Arup Nanda Senior Director Starwood Hotels & Resorts Worldwide The Database Replay and SQL Plan Management features alone are worth upgrading to Oracle Database 11g 11g "

Sean McCown Contributing Editor, Infoworld Oracle Database 11g will be welcome relief to DBAs responsible for testing changes against a production workload. The way that Data Guard and Real Application Testing work together is sheer poetry, and no doubt most shops will quickly come to rely on the combination