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

Similar documents
Moving Databases to Oracle Cloud: Performance Best Practices

What is Real Application Testing?

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

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

OpenWorld 2018 SQL Tuning Tips for Cloud Administrators

Managing Oracle Database 12c with Oracle Enterprise Manager 12c

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

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

Oracle Database 18c and Autonomous Database

Performance Innovations with Oracle Database In-Memory

Insider s Guide on Using ADO with Database In-Memory & Storage-Based Tiering. Andy Rivenes Gregg Christman Oracle Product Management 16 November 2016

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

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

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

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

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

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

Real Time Summarization. Copyright 2014, Oracle and/or its affiliates. All rights reserved.

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

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

Database Performance Analysis Techniques Using Metric Extensions and SPA

Safe Harbor Statement

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

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

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

Oralogic Education Systems

Oracle Database 12c: Performance Management and Tuning

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

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

Oracle Database 12c R2: Administration Workshop Ed 3 NEW

Oracle Database 12c Release 2

Oracle Database 11g: Real Application Testing & Manageability Overview

Oracle Database 12c R2: Administration Workshop Ed 3

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

Safe Harbor Statement

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

Real Application Testing Certified for SAP

Oracle Database In-Memory By Example

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

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

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

ORACLE DBA I. Exploring Oracle Database Architecture

Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager

Oracle Exadata: Strategy and Roadmap

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

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

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

Successful Upgrade Secrets: Preventing Performance Problems with Database Replay

Exadata Implementation Strategy

Two Success Stories - Optimised Real-Time Reporting with BI Apps

Oracle Diagnostics Pack For Oracle Database

Oracle Autonomous Database

RMOUG Training Days 2018

Oracle Database 12c for SAP

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

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

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

Oracle Maximum Availability Architecture Best Practices for Oracle Multitenant

Oracle Database 12c Performance Management and Tuning

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

Understanding Oracle RAC ( ) Internals: The Cache Fusion Edition

SQL Tuning for Expert DBAs

Technicalities of Living in the JD Edwards Cloud Cloud Options and Strategies

FIVE BEST PRACTICES FOR ENSURING A SUCCESSFUL SQL SERVER MIGRATION

Automating Information Lifecycle Management with

DBAs can use Oracle Application Express? Why?

Cloud Consolidation with Oracle (RAC) How much is too much?

Oracle GoldenGate and Oracle Streams: The Future of Oracle Replication and Data Integration

Oracle Application Express fast = true

Oracle Database In-Memory What s New and What s Coming

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

In the Oracle Database 12c: Performance Management and

Building Highly Available and Scalable Real- Time Services with MySQL Cluster

Recent Innovations in Data Storage Technologies Dr Roger MacNicol Software Architect

Autonomous Database Level 100

Enterprise Manager: Scalable Oracle Management

Oracle Database In-Memory

Oracle CoreTech Update OASC Opening 17. November 2014

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

Oracle Machine Learning Notebook

Getting Started with Oracle DBaaS

Oracle Database 12c. Boeblingen Bootcamp February 2014 SIG Washington DC April 2014

Oracle Enterprise Data Quality - Roadmap

Performance and Load Testing R12 With Oracle Applications Test Suite

Oracle Database 12c: New Features for Administrators (40 hrs.) Prerequisites: Oracle Database 11g: Administration Workshop l

Oracle Database In-Memory

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

<Insert Picture Here> Consolidate Oracle Applications on Oracle Exadata

Oracle WebCenter Portal Performance Tuning

An Oracle White Paper October Deploying and Developing Oracle Application Express with Oracle Database 12c

Oracle Advanced Compression: Reduce Storage, Reduce Costs, Increase Performance Bill Hodak Principal Product Manager

Oracle Database 12c R1: New Features for Administrators Ed 2

SQL Server SQL Server 2008 and 2008 R2. SQL Server SQL Server 2014 Currently supporting all versions July 9, 2019 July 9, 2024

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

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

Oracle Database 11g: Performance Tuning DBA Release 2

Hitchhiker's Guide. to upgrade to Oracle Database 12c. Mike Dietrich Senior Principal Technologist Database Upgrades Oracle Corporation

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

Oracle Database 12c: OCM Exam Preparation Workshop Ed 1

Oracle 10g on Solaris to Oracle RAC 11gR2 on Linux Upgrade

Transcription:

Trouble-free Upgrade to Oracle Database 12c with Real Application Testing Kurt Engeleiter Principal Product Manager

Safe Harbor Statement 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. 3

Program Agenda Oracle Database Upgrades Validating Upgrades with Real Application Testing Two Upgrade Use Cases: Consolidation into Multi-Tenant Database In-Memory Customer Stories 4

Oracle Database Upgrades 5

Why Upgrade to Database 12c? Database Consolidation to Multitenant Ease management Standardize on most recent version Simplify future upgrades Database In-Memory Real time analytics Migration to a new environment Hardware / Software Take advantage of other new database features 6

Validating Upgrades with Real Application Testing 7

Database Upgrade Testing - Why Every customer has a unique environment Hardware configuration Application use of the database Upgrade testing in your environment provides validation of performance and correctness Validates your unique hardware and software stack Assures most important databases / applications perform to meet SLAs Real Application Testing provides real-workload testing solution that is comprehensive & easy-to-use for system change assessment 8

Real Application Testing Two Complementary Solutions SQL Response Performance Time Testing Analyzer Database Load Testing Replay Real Comprehensive Application Testing Solution Testing 9

SQL Performance Analyzer Helps users predict the impact of system changes on SQL workload response time SQL Workload STS Low overhead capture of SQL workload to SQL Tuning Set (STS) on production system Build different SQL trials (experiments) of SQL statements performance by test execution Analyzes performance differences Offers fine-grained performance analysis on individual SQL Integrated with STS, SQL Plan Baselines, & SQL Tuning Advisor to form an end-to-end solution SQL plans + stats Pre-change Trial Compare SQL Performance Analysis Report SQL plans + stats Post-change Trial 10

SPA Report 3 4 5 2 1 11

Database Replay Database load and performance testing with real production workloads Production workload characteristics such as timing, transaction dependency, think time, etc., fully maintained Identify and remediate application scalability and concurrency problems in multitenant and non-cdb databases Allows scheduling, scaleup, subsetting, of multiple workloads Concurrent database replay available for 11.2.0.2 and above, MOS Note: 1453789.1 12

Database Upgrade Testing Best Practices Always use SPA first Unit test before load test Capture and replay a manageable amount of time e.g. 1 to 2 hours Key metric for Database Replay is DB Time Capture SQL Tuning Sets during capture and replay for additional validation Use Enterprise Manager 12c with the latest DB Plugin Implements best practices Wizards guide you through the capture and replay process Long term repository for storing and analyzing test results *Check MOS Note 560977.1 for recommended patch bundles 13

DB Time Definition Total time in database calls by foreground sessions Includes CPU time IO time Active wait (non-idle wait) time Basic unit for Oracle performance analysis DB Time Wait I/O CPU

Database Consolidation Into Multitenant 15

Database Workload Compatibility: Challenges Applications have different workload profiles CPU Memory Storage Network Will my Multitenant database handle peak workloads and co-exist? Is there enough headroom? How do I minimize risk? Use Real Application Testing to assess Multitenant workload compatibility and conduct capacity planning 16

Using SPA in Multitenant Environment Validate SQL performance for consolidated database: CRM DW ERP CRM STS DWSTS ERP STS SALES HR ERP CRM Capture SQL workload for each database in STS Execute SPA for all workloads together in consolidated environment HCM HCM STS Identify errors & SQL regressions Review response time Remediate 17

Multitenant Load Testing: Use Consolidated DB Replay Capture workload on different databases that needs to co-exists concurrently Works for schema consolidation and Pluggable Databases Use scaleup, subsetting, scheduling of multiple workloads Use for schema and CDB consolidation Identify and remediate inter-application scalability and concurrency problems Available for 11.2.0.2 and above, MOS Note: 1453789.1 Production Clients Storage Test Replay Driver Storage Capture Process Replay Analysis & Reporting 18

Multitenant Load Testing: Use Consolidated Database Replay Test System Production Systems CRM- DB1 HCM-DB2 DW-DB3 Directories Consolidated Replay Directory Capture 1 Capture 2 Capture 3 Windows DB 10.2 AIX DB 9.2.0.8 HP-UX DB 11g Replay on CDB Directories Capture 1 Capture 2 Capture 3 CDB DB12c May: Month-end Close June15: Daily Peak June 18: DW - ETL

How to Test For Consolidation If consolidating a few databases Use SPA Use Consolidated Replay If consolidating a large number of databases Identify databases with similar workload profiles Categorize them into small, medium and large Scale up each category with workload scheduling and Consolidated Replay 20

Use Case Example Move to new platform and consolidate to multitenant database Production 2 Nodes with 2 CPUs, 8 GB Memory Capture SQL Tuning Sets on each database Capture Workload on each database with Database Replay Target 1 Node, 4 CPU, 16 GB Memory Upgrade Database to 12c Configure PDBs Run SPA Test Run Database Replay 21

Capture Production Workload Database 1 Database 2 Capture SQL for each database into SQL Tuning Sets for SPA test Capture workloads for Database Replay 22

On Test System Install Database 12c with Multitenant configuration Restore production backups into individual PDBs and run upgrade scripts Run SPA Convert captured production STS into trial 1 Execute SPA trial 2 on each PDB Evaluate results Remediate any regressions before database replay 23

Consolidated Database SPA - Execution Plans Unchanged For consolidation into multitenant, most SQL should have unchanged execution plan For OLTP workload- Buffer Gets is best metric Most SQL also have unchanged performance 24

Test System Consolidated Replay Execute Consolidated Replay on test system Remap captured TNS connections to individuals PDBs Run Consolidated Replay Evaluate results 25

Consolidated Database Replay Result Replay user calls identical to capture same amount of database work was done DB Time slightly reduced Conclusion: Upgraded and consolidated database performance matches source 26

Stress Test with Workload Scheduling Consolidated Database Replay also includes workload scheduling Workload peaks can be aligned to maximize stress on replay system

Upgrading to Database In-Memory 28

Oracle Database In-Memory Unique Dual-Format Architecture Up-to-date analytics Both row and column in-memory formats OLTP Memory Analytics Memory Simultaneously active and transactionally consistent ensuring access to freshest data Eliminates manual tuning and expensive analytic indexes Sales Row Format Sales Column Format 29

Optimizing Transaction and Query Performance Row Format Databases versus Column Format Databases Row SALES ORDER Transactions run faster on row format Insert or query a sales order Fast processing few rows, many columns Column SALES S T A T E Analytics run faster on column format Report on sales totals by state Fast accessing few columns, many rows Oracle 12c: Stores Data in Both Formats Simultaneously 30

Simple Implementation 1. Upgrade to database 12.1.0.2 (or higher) 2. Configure Memory Capacity inmemory_size = XXX GB 3. Configure tables or partitions to be in memory alter table partition inmemory; 4. Drop analytic indexes to speed up OLTP 31

Use Case Example Upgrade to database 12.1.0.2 and Database In-Memory Production Run In-Memory Advisor Capture SQL Tuning Set Capture Workload with Database Replay Test Upgrade Database to 12c Configure Database In- Memory Using Advisor Output Run SPA Test Run Database Replay 32

Upgrade and Testing Steps Run Database In-Memory Advisor in existing database 11.2 environment Capture SQL Tuning Set Capture workload with Database Replay In test environment Upgrade database and implement Database In-Memory Advisor recommendations Run SPA trial Run Database Replay Evaluate results 33

Run Oracle Database In-Memory Advisor Object Type Object Estimated In- Memory Size Estimated Analytic Performance Improvement Table SALES.ORDERS 2.19 GB 9.3X Table SALES.LINEITEM 1.03 GB 5.2X Partition SALES.PRODUCTS.201404 415 MB 4.3X Subpartition SALES.PRODUCTS.20140330 200 MB 2.7X New In-Memory Advisor Analyzes existing DB workload via AWR & ASH repositories Provides list of objects that would benefit most from being populated into IM column store Works on database versions 11.2 and above 34

Capture Production Workload Capture SQL into a SQL Tuning Set Capture workload for Database Replay 35

Configure In-Memory on Test System Restore production database Upgrade to database 12.1.02 or higher Set init.ora parameter inmemory_size to size In-Memory column store Restart database Execute SQL script from In-Memory Advisor to configure objects In-Memory 36

Validate In-Memory Configuration Enterprise Manger 12c In-Memory Central Object map displays relative sizes of objects In-Memory Object Table Lists details of segments loaded In-Memory 37

SPA Look for Expected Plan Changes Convert production STS to trial 1 Execute trial SPA trial 2 Produce comparison report Best metric for analytic query workload is Elapsed Time Analytic SQL have changed execution plan with plan line Table Access In Memory Full SQL are benefitting from In-Memory 38

Identify Plan Change Improvements Real Time SQL Monitoring 39

Execute Database Replay Validate concurrency and load improvement for consolidated workload Database Replay trial results: User calls identical same workload was executed DB Time substantially reduced Success 40

Database In-Memory DB Time Improvement Database 11.2.0.4 Database 12.1.0.2 + In-Memory 41

Customer Case Studies 42

Sumitomo Heavy Industries,Ltd. Database Upgrade Project Using RAT & GG Veridata

Customer Profile Company Name: Sumitomo Heavy Industries, Ltd. Head Office: ThinkPark Tower, 1-1 Osaki 2-chome, Shinagawa-ku, Tokyo 141-6025, Japan Founded: November 20, 1888 Incorporated: November 1, 1934 Capital: JPY 30,871,650,000 (as of March 31, 2014) Employees: Consolidated: 17,941 (as of March 31, 2014) Annual Revenue: Consolidated: JPY 615,270,000,000 (for the 2013 Fiscal Year)

Challenge & Solution Database Upgrade 9i /10g -> 11gR2 Challenge Aim to reduce costs to around $2.5 M to 30-50% Upgrading in parallel in a short period of time about 30DB The data migration in a short period of time large-scale DB and Mission-Critical DB environment, to minimize business downtime Standardizing method for migrating and upgrading multiple databases efficiently Performing and automating application test by DBA for minimize cost Solution Perform application test with completely the same workload using Oracle Real Application Testing Automate the Performance management using Diagnostics Pack & Tuning Pack Guarantee data consistency after testing on new environment using Oracle GoldenGate Veridata Use Oracle GoldenGate for minimizing downtime and fallback plan (under proposing)

Solution Architecture Architecture 1 st step: Measure the SQL Elapsed time Check the workload consistency by using Veridata 2 nd step: Check whether the new database has been created successfully by using Veridata 3 rd step: Compare the whole throughput and workload between the production and the new production by using RAT 3 rd Step 1 st Step 2 nd Step Performance Test Performance and Consistency Test Database Configuration Test Production (9i) Test (9i) Test (11g) New Production (11g) Veridata Server Veridata Server

Sumitomo Heavy Industries, Ltd. 30DBs Upgrade, reduce the verification Cost to take advantage of support tools Customer Profile Name: Sumitomo Heavy Industires, Ltd. (http://www.shi.co.jp/english/) Location: Tokyo (Japan) Industry: manufacturing Industry Employees: 17,961 Oracle Products Oracle Real Application Testing (RAT) Oracle Diagnostics Pack /Oracle Tuning Pack (Diag/Tuning) Oracle GoldenGate Veridata(Veridata) Oracle GoldenGate (GG) CHALLENGES/OPPORTUNITIES Upgrading in parallel in a short period of time about 30DB Aim to reduce costs to around $2.5 M to 30-50% Establishing an upgrade method utilizing a tool for efficient operation while ensuring the quality The data migration in a short period of time large-scale DB environment, to minimize business downtime Adopt the DB performance improvement technique method CUSTOMER PERSPECTIVE I heard that Other Oracle Customer has efficiently implemented DB upgrade, to take advantage of tools(rat, GG etc). Therefore,We accept the Challenge!! Engineer / Takayuki Okoshi INFORMATION SYSTEMS DEVELOPMENT DEPT. Sumitomo Heavy Industries Business Associates, Ltd. RESULTS RAT realized the accurate verification and efficient online processing performance Diag/Tuning realized the performance improvement technique method Veridata realized the data validation of the old and new environment accurate and efficiently to a large extent To maintain business continuity, used GG to data migrate on the Critical DBs.

48