Taking the Risk out of IT Operations™ DBA InfoPower Oracle Real Application Testing NOCOUG Fall Conference Hanan Hit Director of Customer Support

Slides:



Advertisements
Similar presentations
Look Before You Leap! Oracle 11g Real Application Testing
Advertisements

Kurt Engeleiter Product Manager Database Manageability
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Performance Testing - Kanwalpreet Singh.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
Oracle Database 11g Real Application Testing. 2 What is Real Application Testing? New database option available with EE only Includes two 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 any.
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
Deployment Agility Through Tier Testing Hanan Hit, NoCOUG President 2009.
Managing Change with Real Application Testing and Snapshot Standby Barry Hodges Senior Solution Architect, Sales Consulting, Oracle NZ.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Introduction to Oracle Backup and Recovery
Oracle 11g Real Application Testing: Avoiding Performance Regressions with SQL Performance Analyzer Khaled Yagoub, Pete Belknap, Benoit Dageville, Karl.
Sitefinity Performance and Architecture
1 © 2010 Julian Dyke Real Application Testing Julian Dyke Independent Consultant juliandyke.com Web Version.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
Migration XenDesktop 7. © 2013 Citrix | Confidential – Do Not Distribute Migration prerequisites Set up a XenDesktop 7 Site, including the site database.
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
Chapter 2. Creating the Database Environment
Database Advisors Automatic Database Diagnostic Monitor ( ADDM )
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
DBS to DBSi 5.0 Environment Strategy Quinn March 22, 2011.
® IBM Software Group © 2012 IBM Corporation OPTIM Data Studio – Jon Sayles, IBM/Rational November, 2012.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
DBA’s New Best Friend: Oracle Database 10g and 11g SQL Performance Analyzer Prabhaker Gongloor (GP) Khaled Yagoub Pete Belknap Database Manageability.
Database Technical Session By: Prof. Adarsh Patel.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Quick Tips for Database Performance Tuning Sergey Koltakov Kurt Engeleiter Product Manager.
A Brief Documentation.  Provides basic information about connection, server, and client.
Continuous DB integration testing with RAT „RATCOIN”
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
Distributed Logging Facility Castor External Operation Workshop, CERN, November 14th 2006 Dennis Waldron CERN / IT.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
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.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
2 Copyright © 2007, Oracle. All rights reserved. Realistic Testing Using Database Replay.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
SQL Database Management
Databases and DBMSs Todd S. Bacastow January 2005.
How To Pass Oracle 1z0-060 Exam In First Attempt?
Maximum Availability Architecture Enterprise Technology Centre.
SQL Server Monitoring Overview
Introduction of Week 6 Assignment Discussion
Introduction of Week 3 Assignment Discussion
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Data, Databases, and DBMSs
Managing Performance by SQL Tuning
Performance And Scalability In Oracle9i And SQL Server 2000
Presentation transcript:

Taking the Risk out of IT Operations™ DBA InfoPower Oracle Real Application Testing NOCOUG Fall Conference Hanan Hit Director of Customer Support Taking the Risk out of IT Operations™ DBA InfoPower Nov

Taking the Risk out of IT Operations™ DBA InfoPower 2 Agenda Testing Intro The need for database testing Database Replay Workload Capture Workload Pre Processing Replay Workload Analysis & Reporting SQL Performance Analyzer Q&A

Taking the Risk out of IT Operations™ DBA InfoPower Why Test? Do you really want to go live like this?

Taking the Risk out of IT Operations™ DBA InfoPower Test What? Internally developed applications Packaged Applications –even if you don’t posses the source code Remote Services –even if you don’t know anything about how the services were written

Taking the Risk out of IT Operations™ DBA InfoPower Business/Scalability Graphs Value Old Value New

Taking the Risk out of IT Operations™ DBA InfoPower The Need For Database Testing Choose the right architecture – system changes are fact of life –Hardware –Software Deploy with confidence –Get the system right at the first time, once and done –Validate functionality/performance under real-world conditions Competitive Position –Remove dependence of test cases on UI design –Cut Test-Debug-Fix cycle time –Apply a patch etc. –Reduce testing and validation expense (both time and money ) –Low success rate Causes of low success rate – Inability to test with real world production workloads

Taking the Risk out of IT Operations™ DBA InfoPower 7 What is Real Application Testing? New database option available with EE only Includes two new features –Database Replay (DB Replay) –SQL Performance Analyzer (SPA) SQL Tuning Set (STS) functionality is shared between Real Application Testing option and EM Tuning Pack Advance functionality requires additional packs –Diagnostic Pack for DB Replay –Tuning Pack for SPA Price - Very Good Question ($11,500 per processor or $230 per named)

Taking the Risk out of IT Operations™ DBA InfoPower Value Proposition Value –Reduces testing cost (Cheaper) –Improves testing quality Business Benefit –Faster technology adoption (Faster) –Lower risk (Better) Solution for the Agile Business

Taking the Risk out of IT Operations™ DBA InfoPower Database Replay Recreate actual production database 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 & concurrency info –Move the captured workload to test system Replay Workload in Test –Make the desired changes in test system –Replay workload with production load & concurrency –Honor commit ordering Analyze & Report –Errors –Data divergence –Performance divergence

Taking the Risk out of IT Operations™ DBA InfoPower Database Replay: Supported Changes Changes Unsupported Changes Supported Database Upgrades, Patches Schema, Parameters RAC nodes, Interconnect OS Platforms, OS Upgrades CPU, Memory Storage Etc. Client … Middle Tier Storage Recording of External Client Requests

Taking the Risk out of IT Operations™ DBA InfoPower Database Replay Overview

Taking the Risk out of IT Operations™ DBA InfoPower Database Replay: Typical Configuration

Taking the Risk out of IT Operations™ DBA InfoPower Workload Capture All external client requests captured in binary files System background, internal activity excluded Minimal performance overhead for capture For RAC, shared and local file system supported Specify interesting time period for capture, e.g., peak workload, month-end processing, etc.

Taking the Risk out of IT Operations™ DBA InfoPower Workload Capture Steps 1.Create a directory in order to save the captured files: –mkdir–p /home/oracle/api_dir –create directory API_DIR as ‘/home/oracle/api_dir’ 2.Add Limits to the capture load –In SQL*Plus (As system) begin dbms_workload_capture.ADD_FILTER(fname=> 'NO_SYS', FATTRIBUTE=> 'USER', FVALUE=> 'SYS'); dbms_workload_capture.ADD_FILTER(fname=> 'NO_SYSTEM', FATTRIBUTE=> 'USER', FVALUE=> 'SYSTEM'); dbms_workload_capture.ADD_FILTER(fname=> 'NO_SYSMAN', FATTRIBUTE=> 'USER', FVALUE=> 'SYSMAN‘ dbms_workload_capture.ADD_FILTER(fname=> 'NO_SCOTT', FATTRIBUTE=> 'USER', FVALUE=> ‘SCOTT'); end; 1.Shutdown and startup restrict the Prod DB (Not mandatory)

Taking the Risk out of IT Operations™ DBA InfoPower Workload Capture Steps Cont. 4.Start the Capture begin dbms_workload_capture.start_capture(name=> 'CAPTURE-TSTDB ', dir=>'API_DIR', AUTO_UNRESTRICT=> TRUE, DURATION=> NULL); end; 5.Run load on the system 6.Finish the Capture begin dbms_workload_capture.finish_capture(); end; 7.Identify the ID of the capture select id, name, directory, start_time, end_time, status, duration_secs, dir_path from dba_workload_captures where rownum < 2 order by id desc ;

Taking the Risk out of IT Operations™ DBA InfoPower Workload Capture Steps Cont. 8.Export the AWR Report – Make sure not to Flashback begin DBMS_WORKLOAD_CAPTURE.EXPORT_AWR(capture_id => ); end; 9.Copy the Captures files to the test machine scp *

Taking the Risk out of IT Operations™ DBA InfoPower Workload Capture Steps Cont.

Taking the Risk out of IT Operations™ DBA InfoPower Capture Options Workload can be filtered to customize what is captured –Filter Types Inclusion Filters: specifies which sessions should be captured Exclusion Filters: specifies which sessions should NOT be captured –Filter Attributes Workload capture can be filtered using any of the following session attributes –User –Program –Module –Service –Session ID Workload capture can be run on-demand or scheduled to run at later time

Taking the Risk out of IT Operations™ DBA InfoPower Workload Pre-Processing Set up test system –Logically similar data as production –Use RMAN to physically restore production DB from backup –Use Snapshot standby –Use imp/exp, Data Pump, etc. Keep in mind –Processing transforms captured data into replay files and generates necessary metadata –Must be done on same version of database as replay system –Recommended practice: process on test system –Once processed, workload can be replayed many times –For RAC, if using local file system, copy all capture files to single location for replay

Taking the Risk out of IT Operations™ DBA InfoPower Workload Pre-Processing Steps Process capture data on test database – Needs to be executed only once begin dbms_workload_replay.process_capture(capture_dir=>'API_DIR'); end;

Taking the Risk out of IT Operations™ DBA InfoPower Replay Workload File 1 File 2 File n … Metadata Replay Client is a special client program that consumes processed workload and sends requests to the replay system Special multi-threaded OCI client that replays the capture files Replay requests preserve timing, concurrency and dependencies seen on the capture system Replay Client consists of one or more clients. For workloads with high concurrency, it may be necessary to start multiple clients to drive workload. Once all replay clients are started, workload replay is then initiated by user Replay Files Replay Driver Replay Client

Taking the Risk out of IT Operations™ DBA InfoPower Replay Options Synchronized Replay –Workload is replayed in full synchronized mode –Identical concurrency and timing as production workload –Transaction commit order is honored –Ensures minimal data divergence Unsynchronized Replay –Workload can be replayed in unsynchronized mode –Useful for load/stress testing –High data divergence –Three (3) parameters provided to control degree of synchronization Think time synchronization Commit order synchronization Connect (logon) time synchronization

Taking the Risk out of IT Operations™ DBA InfoPower Replay Options Unsynchronized Replay Parameters –Think time synchronization Controls think time between database calls Auto (Default): Adjusts think time so as to maintain captured request rate Percentage –0% No think time, highest possible request rate –<100% Higher request rate –100% Exact think time –>100% Lower request rate –Commit order synchronization Controls commit order between transactions In asynchronous mode, commit order not honored – transactions are committed as soon as commit call is issued –Connect (logon) time synchronization Controls when sessions are created 0%: All sessioSn are connected immediately 100% (Default): Sessions connect at same time as in captured system

Taking the Risk out of IT Operations™ DBA InfoPower Replay Options Number of Replay Clients –Configurable by user –Client Calibration Advisor recommends number of replay clients needed for specific workload –Replay clients are multithreaded clients that can drive multiple workload sessions each

Taking the Risk out of IT Operations™ DBA InfoPower Replay Workload Steps Initialize capture data on test database begin dbms_workload_replay.initialize_replay(replay_name=> LONGTEST ', replay_dir=>'API_DIR'); end; Prepare capture data on test database begin dbms_workload_replay.prepare_replay; end; On the workload generation host(s), start the Workload Replay Clients. wrc replaydir=/home/oracle/api_dir Start the reply process begin dbms_workload_replay.start_replay; end;

Taking the Risk out of IT Operations™ DBA InfoPower Replay Workload Steps Cont. Check Replay progress... Workload Replay Client: Release Production on Thu Mar 6 11:05: Copyright (c) 1982, 2007, Oracle. All rights reserved. Wait for the replay to start (11:05:29) Replay started (11:06:10) Replay finished (11:59:00)

Taking the Risk out of IT Operations™ DBA InfoPower Replay Workload Progress

Taking the Risk out of IT Operations™ DBA InfoPower Replay Workload Summary

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting Comprehensive reports are provided for analysis purposes Three (3) types of divergences are reported –Data Divergence Number of rows returned by each call are compared and divergences reported –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 –Performance Divergence Capture and Replay Report: Provides high-level performance information ADDM Report: Provides in-depth performance analysis AWR, ASH Report: Facilitates comparative or skew analysis

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting Steps Generate the AWR Report for the duration of the reply Generate the AWR comparison between two instances Must export the AWR from the source database Generate the ASH report from the test machine.

Taking the Risk out of IT Operations™ DBA InfoPower Workload Types Supported Supported All SQL (DML, DDL, PLSQL) with practically all types of binds Full LOB functionality (Cursor based and direct OCI) Local transactions Login/Logoffs Session switching Limited PL/SQL RPCs Limitations Direct path load, import/export OCI based object navigation (Abstract Data Types) and REF binds Streams, non-PL/SQL based AQ Distributed transactions, remote describe/commit operations Flashback Shared Server

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting

Taking the Risk out of IT Operations™ DBA InfoPower Analysis & Reporting

Taking the Risk out of IT Operations™ DBA InfoPower Required Privileges Any “Non-SYS” user with DBA Role –SYSDBA role is not mandatory –Does not have to be the user whose workload is captured “Execute” privileges on DBMS_WORLOAD_CAPTURE/REPLAY procedures – DBMS_WORKLOAD_CAPTURE START_CAPTURE, FINISH_CAPTURE, REPORT(), ADD_FILTER, DELETE_FILTER – DBMS_WORKLOAD_REPLAY PROCESS_CAPTURE,INITIALIZE_REPLAY, PREPARE_REPLAY(), START_REPLAY(), CANCEL(), REPORT, ADD_FILTER, REMAP_CONNECTION Capture and Replay user can be different if they have appropriate privileges

Taking the Risk out of IT Operations™ DBA InfoPower …… Client … Capture SQL Test impact of change on SQL query performance Capture SQL workload in production including statistics & bind variables Re-execute SQL queries in test environment Middle Tier Storage Oracle DB Re-execute SQL Queries ProductionTest Use SQL Tuning Advisor to tune regression SQL Performance Analyzer (SPA)

Taking the Risk out of IT Operations™ DBA InfoPower Enables identification of SQL performance regressions before end users can be impacted SPA can help with any change that impacts SQL execution plan –DB upgrades –Optimizer statistics refresh –New indexes, materialized views, partitions, etc. Regressed SQL can be fixed with SQL Tuning Advisor and SQL Plan Baselines Integrated with query optimizer Captures SQL workload with low overhead SPA Benefits

Taking the Risk out of IT Operations™ DBA InfoPower SQL Performance Analyzer Steps 1.Capture SQL workload 2.Move SQL workload to test system 3.Execute SQL before making changes 4.Execute SQL after making changes 5.Compare & analyze performance

Taking the Risk out of IT Operations™ DBA InfoPower What’s Good Allows capture workload to be replayed on a test system to assess the impact of change Repetitive test scenarios at the database level Easy way to perform regression testing No need to use syntactic test values or homegrown scripts Was back-ported to 9i & 10g Requires less capital (Human & I&O) - lower operational costs The DBA role just got extended No Need for manual data entry 40

Taking the Risk out of IT Operations™ DBA InfoPower What’s Bad Multiple replays yields different DBID –looks like system generated No way to parameterize the data Most of the issues are “non-database” issues Doesn’t have any business context – DBA tool Missing key processes for DSS systems (SQL Loader etc.) Supported only with EE Oracle Jobs can be very heavy Management can easily think that this is a good enough option to replace “legacy” scalability testing methods Think time between database calls assumes linear regression

Taking the Risk out of IT Operations™ DBA InfoPower Thank You Q&A “If the facts don’t fit the theory, change the facts.” -Albert Einstein