ORACLE 11g Database Replay

Similar documents
Oracle 11g Database Replay Inderpal S. Johal. Inderpal S. Johal, Data Softech Inc.

What is Real Application Testing?

Oracle Database 10g: New Features for Administrators Release 2

Oracle Database 11g for Experienced 9i Database Administrators

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

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

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

ORACLE 11g R2 New Features

Re-platforming the E-Business Suite Database

Oracle 11g Database Replay Inderpal S. Johal. Inderpal S. Johal, Data Softech Inc.

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

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

Oracle Database 11g: Administration Workshop I DBA Release 2

Oracle Database 12c R2: Administration Workshop Ed 3 NEW

Oracle Database 11g R1 & R2: New Features for Administrators

Oracle Database. Real Application Testing User s Guide 10g Release 2 (10.2) E

Oracle Database 12c R2: Administration Workshop Ed 3

Oracle DBA workshop I

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

"Charting the Course... Oracle 18c DBA I (3 Day) Course Summary

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

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

Oracle Database 12c R2: Managing Multitenant Architecture Ed 2

Oracle Database 11g: Administration Workshop I Release 2

Successful Upgrade Secrets: Preventing Performance Problems with Database Replay

The Challenges of Oracle Cloning. Safa Alak Consulting System Engineer

Andy Mendelsohn, Oracle Corporation

Oracle - Oracle Database 12c R2: Administration Workshop Ed 3

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

Oracle Database 10g : Administration Workshop II (Release 2) Course 36 Contact Hours

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

Oracle 11g Release 2 RAC & Grid Infrastructure Administration Course Overview

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

Oracle12c Release 1 New Features for Administrators (5 Days)

Course: Oracle Database 12c R2: Administration Workshop Ed 3

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

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

Oracle 11g New Features

Oracle Database 12c: Administration Workshop Duration: 5 Days Method: Instructor-Led

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

Oracle Database 12c: Administration Workshop Ed 2

Oracle Database 12c: Administration Workshop Ed 2

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

Oracle Database 11g: SQL Fundamentals I

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

1Z Upgrade to Oracle Database 12cm Exam Summary Syllabus Questions

ORACLE DBA I. Exploring Oracle Database Architecture

Programa de Actualización Profesional ACTI Oracle Database 11g: Administration Workshop II

12.1 Multitenancy in real life

Oracle Database 11g: Administration Workshop II

Oracle Database 12c R2: New Features for 12c R1 Administrators Ed 1

Oracle Database Cloud for Oracle DBAs Ed 3

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2

<Insert Picture Here> Oracle MAA und RAC Best Practices und Engineered Systems

Oracle Database 11g: Real Application Testing & Manageability Overview

Oracle Database 12c: Data Guard Administration LVC

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

<Insert Picture Here> Exadata MAA Best Practices Series Session 12: Exadata Patching & Upgrades

SE2 goes Enterprise. Hidden Treasures in Oracle Dr. Thomas Petrik DOAG Konferenz, November 2017, Nürnberg

"Charting the Course... Oracle 18c DBA I (5 Day) Course Summary

Focus On: Oracle Database 11g Release 2

ORACLE DBA TRAINING IN BANGALORE

ZDLRA High Availability for Backup and Recovery

Oracle Database 12C: Advanced Administration - 1Z0-063

Oracle Database 11g Administration Workshop II

Oracle Database 12c: Performance Management and Tuning

Oracle Database 12c: Administration Workshop Ed 2 NEW

Oracle Database 11g: Administration Workshop I Release 2

Oracle 1Z Upgrade to Oracle Database 12c. Download Full Version :

CO Oracle Database 12c: Data Guard Administration

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

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

Oracle Database 12c: RAC Administration Ed 1

EM 12c: Broadest, Most Complete Range of Enterprise Services

Non-Production Databases. Oracle Recovery Manager. Presented By: Jeff Branan - Database Architect

What is wrong with PostgreSQL? OR What does Oracle have that PostgreSQL should? Richard Stephan

Oracle Application Express: Administration 1-2

"Charting the Course... Oracle 12c New Features for Administrators. Course Summary

Oracle 1Z Oracle Database 12c - Installation and Administration. Download Full version :

Enterprise Manager: Scalable Oracle Management

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2 NEW

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

Oracle Real Application Clusters One Node

ORACLE DATABASE: ADMINISTRATION WORKSHOP II

Oracle 12c Dataguard Administration (32 Hours)

ORACLE DATABASE: ADMINISTRATION WORKSHOP II

Oracle Database 12c R2: New Features for Administrators Part 1 Ed 1

Quest. Quest. Toad Shareplex Foglight. Quest. Toad - Spotlight - SQL. Shareplex - Foglight - Space Manager with LiveReorg - Oracle

<Insert Picture Here> Maximum Availability Architecture (MAA) Best Practices: Online Patching and Rolling Upgrades with Oracle Database

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database 12c: Data Guard Administration

Maximum Availability Architecture (MAA): Oracle E-Business Suite Release 12

Oracle Database 12c R2: RAC Administration Ed 2

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

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

Oracle Database 11g: RAC Administration Release 2 NEW

Oracle Database 12c: Clusterware & RAC Admin Accelerated Ed 1

Oracle Secure Backup 12.2 What s New. Copyright 2018, Oracle and/or its affiliates. All rights reserved.

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

Transcription:

ORACLE 11g Database Replay October 2 nd, 2007 Inderpal S. Johal Principal Consultant

Agenda Why DB Replay DB Replay Overview System Architecture Supported Workloads Capture the Workload Pre-Processing the Capture Workload Replay the Workload Analyze the Data Replay Setup using Enterprise Manager Replay Setup using API s Q&A 2

Why Database Replay System changes Need Hardware Upgrade like CPU, Memory Need Database/Operating System Upgrades Storage Changes like filesystem to ASM or vice-versa Microsoft to Linux or OS migrations Configuration changes Single Instance to Multi-node RAC Schema/Parameters Patches Identify, analyze and fix potential instabilities before making changes to production Save Time and Money More thorough testing which is missed in most of the testing Provide Real world testing without real-life testers 3

DB Replay Overview Recreate actual production database workload in QA environment DB Replay components or Phases - Backup the Production/Source Database -> User RMAN or other Backup Approach - Configure EM Console as it is recommended option -> emca -config dbcontrol db -repos recreate - Capturing Phase -> Start the Capture process -> Apply/start the Load/Apps -> Stop the Capture Process - Move the Captured Workload on OS to Test Server - Pre-processing Phase - Restore the backup on Test Database - Replay Phase - Analysis -> Error or Data Divergence 4

DB Replay Workload Capture Prerequisites for Capturing Database Workload.Contd. Backup the Database -> RMAN -> Imp/exp -> Snapshot Standby -> Point-in-time recovery using a target SCN Allocate physical space for Recording $ mkdir -p /home/capture_dir SQL> CREATE DIRECTORY captdir AS /home/capture_dir -> Make sure you have enough space to store the Captured Workload files Configure Enterprise Manager DB Console Points of Consideration before Capturing Database Workload Disk Storage based on time of Recoding Performance Overhead Memory Overhead : 64K per session 5

DB Replay Workload Capture Capture the Workload in Production Start the Capturing process -> Using Enterprise Manager -> Using APIs DBMS_WORKLOAD_CAPTURE.START_CAPTURE Start the Application to apply real Load on the System Stop the Capturing process -> Using Enterprise Manager -> Using APIs DBMS_WORKLOAD_CAPTURE.FINISH_CAPTURE Transfer the Data for processing to test system.contd. 6

DB Replay Workload Capture.Contd. 7

DB Replay Workload Capture Flow Flow.Contd.. Client Client Client $ mkdir -p /home/c_dir SQL> create directory cdir AS /home/c_d Shadow Process Shadow Process Background Process/Jobs Shadow Process 11g RDBMS built-in Recording Infrastructure Shadow Process Capture Shadow Process file Location Shadow Process $ cd /home/c_dir Shadow Process $ ls lr Total 0 8

DB Replay Workload Capture What is supported for Workload All DDL,DML and PL/SQL statements along with binds Lobs Login and Logoffs Local Transactions.Contd. What is supported for Workload Direct Path Load using Sql*Loader Export and Import Oracle Streams Flashback Distributed Transactions( these transactions are replayed as Local transaction) 9

DB Replay Workload Capture-EM.. EM...Contd. 10

DB Replay Workload Capture-EM EM......Contd. 11

DB Replay Workload Capture-EM EM.Contd. SGA 12

DB Replay Workload Capture API API.Contd. 13

DB Replay Workload Capture.Contd. 14

DB Replay Workload Capture Flow Flow.Contd. Client Client. Client Middle Tier. Middle Tier STORAGE STORAGE PRE- PROCESSING the WORKLOAD 15

DB Replay PreProcessing Workload It transforms the captured workload data into Replay files It will create all necessary metadata for Replay Only required once for every captured workload This is resource intensive process and so avoid it in production system It should be done on system running same DB version as of Replay system Make sure Files are moved to the Instance directory where it is processed. For RAC Move captured workload from all instances to single place for preprocessing Use single instance for Preprocessing in RAC environment It is recommended to use Replay system for preprocessing else you need to move all processed files to Replay system EM is recommended tool for preprocessing or use APIs 16

DB Replay PreProcessing Workload..Contd. 17

DB Replay PreProcessing Workload..Contd. 18

DB Replay PreProcessing Workload....Contd. 19

DB Replay PreProcessing Workload....Contd. 20

DB Replay Phases DB Replay components or Phases - Backup the Production/Source Database - Configure EM Console as it is recommended option - Capturing Phase - Move the Captured Workload on OS to Test Server - Pre-processing Phase - Restore the backup on Test Database - Replay Phase - Analysis 21

DB Replay Replay Workload When the captured workload is processed, it can be replayed in any database running the same or higher Oracle version Replay Process Steps Set up the Test System Restore the Database taken before the start of Capture process Reset the System time as it was at the start of Capture process Perform the change that prompted the replay usage Upgrade OS or Database Apply Patches Make OS change Move to RAC or vice-versa Replay the Processed Capture Workload Using EM / APIs 22

DB Replay Replay Workload wrc system/welcome1 mode=calibrate replaydir=/home/replay mode=list_hosts Client Client. Client Shadow Shadow Shadow Process Shadow Process Shadow Process Shadow Process Shadow Process Shadow Shadow Process Process Process Process Restore Copy of Production Database Set the System Time Shadow Process Shadow Process Shadow Process Shadow Process STORAGE 23

DB Replay Replay Workload-EM.. EM...Contd. 24

DB Replay Replay Workload-EM EM....Contd 25

DB Replay Replay Workload-EM EM....Contd 26

DB Replay Replay Workload-EM EM....Contd 27

DB Replay Replay Workload-EM EM.Contd. 28

DB Replay Replay Workload-EM EM.Contd. 29

DB Replay Replay Workload-API 30

DB Replay PreProcessing Workload....Contd. 31

DB Replay Analyze Workload-EM.. EM...Contd. 32

DB Replay Analyze Workload....Contd. 33

DB Replay Analyze Workload....Contd. 34

DB Replay Analyze Workload - Report 35

DB Replay Analyze Workload Report 36

Q U E S T I O N S A N S W E R S

THANKS indy.johal@datasoftech.com 38