Real Application Testing. Fred Louis Oracle Enterprise Architect



Similar documents
How To Test For A Test On A Test Server

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

SQL Performance Analyzer: Eliminating the Guesswork from SQL Performance Prabhaker Gongloor (GP) Khaled Yagoub Pete Belknap Database Manageability

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

Oracle s SQL Performance Analyzer

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

Risk-Free Administration for Expert Database Administrators

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

Developing a Risk Based Testing Plan for Enterprise Applications Systems

Management Packs for Database

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

Oracle Data Masking. Bruce Elton. Master Principal Sales Consultant Information Security Oracle Corporation

Oracle Database 12c: Performance Management and Tuning NEW

Proactive Performance Monitoring Using Metric Extensions and SPA

Oracle Enterprise Manager 12c New Capabilities for the DBA. Charlie Garry, Director, Product Management Oracle Server Technologies

ORACLE DATABASE ADMINISTRATOR RESUME

1. This lesson introduces the Performance Tuning course objectives and agenda

Oracle Database 11g: New Features for Administrators

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

Oracle 11g New Features - OCP Upgrade Exam

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

Oracle Database 11g: Performance Tuning DBA Release 2

Evidence-based Best Practices for JD Edwards EnterpriseOne

Oracle 11g Database Administration

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering

Oracle Database 10g: New Features for Administrators

Development Best Practices

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

DATABASE VIRTUALIZATION AND INSTANT CLONING WHITE PAPER

Oracle Database 11g: Real Application Testing

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Enterprise Manager 13c Cloud Control

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Oracle Database 12c: Performance Management and Tuning NEW

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

Enabling ITIL Best Practices Through Oracle Enterprise Manager, Session # Ana Mccollum Enterprise Management, Product Management

Customer evaluation guide Toad for Oracle v12 Database administration

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

Measurable Improvements in E-Business Suite Application Management with OEM 12c

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

Oracle Database 11g: Administration Workshop II DBA Release 2

Provisioning, Patch Automation, and Configuration Management Lab

Oracle Database - Engineered for Innovation. Sedat Zencirci Teknoloji Satış Danışmanlığı Direktörü Türkiye ve Orta Asya

Oracle Database 11g: Administration Workshop II Release 2

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

Improve SQL Performance with BMC Software

<Insert Picture Here> Oracle In-Memory Database Cache Overview

Top 10 Oracle SQL Developer Tips and Tricks

Planning, Provisioning and Deploying Enterprise Clouds with Oracle Enterprise Manager 12c Kevin Patterson, Principal Sales Consultant, Enterprise

Managing R12 EBS using OEM with the Application Management and Application Change Management Packs

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

The Methodology Behind the Dell SQL Server Advisor Tool

Migrating from Unix to Oracle on Linux. Sponsored by Red Hat. An Oracle and Red Hat White Paper September 2003

ORACLE CORE DBA ONLINE TRAINING

Oracle Database Cloud Services OGh DBA & Middleware Day

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Mind Q Systems Private Limited

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

Optimizing Your Database Performance the Easy Way

Applying Operational Profiles to Demonstrate Production Readiness Of an Oracle to SQL Server Database Port using Web Services.

Oracle Database 11g: SQL Tuning Workshop

ORACLE DATABASE 10G ENTERPRISE EDITION

Using Oracle Real Application Clusters (RAC)

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Using Database Diagnostic and Tuning Packs through Oracle Enterprise Manager 12c. Eric Siglin OCM, OCP, CTT+ Senior Oracle DBA

Tuning poor performing SQL s Using Oracle 10g Enterprise Manager s Automatic SQL Tuning Advisor

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

Mobile Application Performance

Oracle Databases on VMware High Availability

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

OTM Performance OTM Users Conference Jim Mooney Vice President, Product Development August 11, 2015

Performance Tuning and Optimizing SQL Databases 2016

Automated Deployment of Oracle RAC Using Enterprise Manager Provisioning Pack

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

Oracle Database Solutions on VMware High Availability. Business Continuance of SAP Solutions on Vmware vsphere

<Insert Picture Here> Application Testing Suite Overview

ORACLE ENTERPRISE MANAGER 10 g CONFIGURATION MANAGEMENT PACK FOR ORACLE DATABASE

SolovatSoft. Load and Performance Test Plan Sample. Title: [include project s release name] Version: Date: SolovatSoft Page 1 of 13

Performance And Scalability In Oracle9i And SQL Server 2000

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

<Insert Picture Here> Introducing Oracle VM: Oracle s Virtualization Product Strategy

Oracle Database 11g: SQL Tuning Workshop Release 2

SQL Server Training Course Content

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Strategies for Monitoring Large Data Centers with Oracle Enterprise Manager. Ana McCollum Consulting Product Manager

Total Cloud Control with Oracle Enterprise Manager 12c. Kevin Patterson, Principal Sales Consultant, Enterprise Manager Oracle

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Daniela Milanova Senior Sales Consultant

Oracle Database 12c: Administration Workshop NEW

Transcription:

Real Application Testing Fred Louis Oracle Enterprise Architect

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 Real Application Testing

Real Application Testing Value Rapid technology adoption Higher testing quality Business Benefit Lower cost Lower risk Features Database Replay SQL Performance Analyzer (SPA) Test Change Remediate Deploy Business Agility through Superior Testing

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 Client Client Client Changes Unsupported 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 Production (9.2.0.8) Test (11.1) Clients Replay Driver Mid-Tier Storage Storage Capture Process Replay Analysis & Reporting

D E M O N S T R A T I O N Database Replay

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 replayable 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 OCIStmtPrepare() OCIBindByName() OCIAttrSet() OCIStmtExecute() Test System Replay Clients select * from tab Binds: Bind 1: b Cursor #: 1 # Rows Fetched: 10 Replay Client is a special program that consumes processed workload and sends requests to the replay system File 1 Clients interpret captured calls into sequence of OCI calls and submit to database File 2 File n For high concurrency workloads, it may be necessary to start multiple clients 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 Report: 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 Streams, non-pl/sql based AQ Distributed transactions, remote describe/commit operations Flashback queries Shared server

Comparison of LoadRunner & DB Replay Testing e-business Suite 80 80 Time Taken (Days) 60 40 20 0 4 Install & Setup 24 0 Understand Application Usage 20 0 Identify Key Transactions 20 2 Generate Workload 5 Run Test 5 DB Replay LoadRunner Total Testing Time DB Replay: ½ month LoadRunner: 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 workflow 100% of workflow Test Effort Simple app: weeks Complex app:months Simple app: days Complex app: days

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

SQL Performance Analyzer Workflow Production (9.2) Clients Test (10.2 or 11.1) 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 only once DDL/DML skipped Before Change 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 Save Result Completed Before Change After Change Re-execute SQL after change Gathers new SQL execution plans and statistics SQL Performance Analyzer

Step 5: Compare & Analyze Performance Completed Before Change Compare Completed After Change Compare performance using different metrics, e.g., Elapsed Time CPU Time Optimizer Cost Buffer Gets SQL Performance Analysis Report 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

D E M O N S T R A T I O N SQL Performance Analyzer

SPA Report

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

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 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

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 rolling out of images Reduce possibility of errors and improve reliability Low TCO through automation Higher quality of service Features Simple, Accurate, Reliable Capacity on Demand 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 Simple, Accurate, Reliable Maintenance of Distributed Systems Benefits Simple, Accurate, Reliable maintenance of Oracle systems Reduce possibility of errors and improve reliability Fewer errors and faster patching Patch and maintain systems while providing higher quality of service Functionality/Capability/What s new Out-of-box best practice driven patching of single instance and RAC databases, AS midtier and custom (BPEL and 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

Summary <Insert Picture Here>

Use 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