Moving Databases to Oracle Cloud: Performance Best Practices

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

OpenWorld 2018 SQL Tuning Tips for Cloud Administrators

Oracle Database 18c and Autonomous Database

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

Javaentwicklung in der Oracle Cloud

Database Performance Analysis Techniques Using Metric Extensions and SPA

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

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

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.

What is Real Application Testing?

Oracle Database Cloud for Oracle DBAs Ed 3

DBAs can use Oracle Application Express? Why?

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

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

Oracle Database 12c Performance Management and Tuning

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

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

Oracle Database 12c R2: Administration Workshop Ed 3 NEW

Oracle Database 12c R2: Administration Workshop Ed 3

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

Oracle12c Release 1 New Features for Administrators (5 Days)

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

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

Real Application Testing Certified for SAP

Oracle Database Exadata Cloud Service Exadata Performance, Cloud Simplicity DATABASE CLOUD SERVICE

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

Safe Harbor Statement

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

Oracle Database 12c: Administration Workshop Ed 2

Oracle Database 12c: Administration Workshop Ed 2

Getting Started with Oracle DBaaS

Oracle Database 11g: Real Application Testing & Manageability Overview

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

Oracle Database Exadata Cloud Service: Technical Deep Dive

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

Oracle Database 12c: Performance Management and Tuning

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

Oracle Database 12c R2: Managing Multitenant Architecture Ed 2

Oracle Database 11g for Experienced 9i Database Administrators

ORACLE DBA I. Exploring Oracle Database Architecture

Oralogic Education Systems

Under the Hood of Oracle Database Cloud Service for Oracle DBAs 2017 ANZ Webinar Tour by

Safe Harbor Statement

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

Oracle Database 11g: Performance Tuning DBA Release 2

Oracle Database 11g: Performance Tuning DBA Release 2

Managing Oracle Database in Oracle Database Exadata Express Cloud Service. Ing. Rita Nuñez

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

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

RMOUG Training Days 2018

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

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

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

Oracle DBA Course Content

Oracle Database 12c: Administration Workshop Ed 2 NEW

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

Enterprise Manager: Scalable Oracle Management

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

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

Exadata Implementation Strategy

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

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

Demystifying SQL Tuning: Tips and Techniques for SQL Experts

Learning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.

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

ORACLE 11g R2 New Features

Oracle Database 11g : Performance Tuning DBA Release2

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

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

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

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

Oracle Database 11g: New Features for Administrators Release 2

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

<Insert Picture Here> Consolidate Oracle Applications on Oracle Exadata

Oracle Autonomous Database

WLS Neue Optionen braucht das Land

Large-Scale Patch Automation for the Cloud-Generation DBAs

SQL Tuning for Expert DBAs

Oracle Database 12c: RAC Administration Ed 1

Exadata Implementation Strategy

Copyright 2017 Oracle and/or its affiliates. All rights reserved.

Oracle Database 12c R2: RAC Administration Ed 2

Oracle Exadata: Strategy and Roadmap

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

Autonomous Database Level 100

Database Manageability

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

Oracle 11g New Features

MySQL CLOUD SERVICE. Propel Innovation and Time-to-Market

Oracle Database 12c Release 2

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

Toad for Oracle Suite 2017 Functional Matrix

Oracle Database 12c: New Features for Administrators Duration: 5 Days

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

Key to A Successful Exadata POC

Introduction to Oracle Databases in the Cloud

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

Oracle Cloud Infrastructure Exadata Cloud Service: Implementing Exadata Apps

Transcription:

Moving Databases to Oracle Cloud: Performance Best Practices Kurt Engeleiter Product Manager Oracle

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

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 3

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 4

Oracle Database Cloud Service Full portability On Premises Same Architecture Same Software Same Skills Oracle Cloud Enterprise Manager manages both On Premises and Cloud 5

Oracle Database Cloud Overview of Services 100% compatibility with on-premises Fully automated or managed backups, patching and tooling Simple to move locations or create a hybrid cloud Simple provisioning in a few clicks Oracle Database Enterprise Cloud Service Oracle Database Backup Cloud Service Oracle Database Exadata Cloud Service Oracle Exadata Express Cloud Service Full-featured dedicated single-node/rac database Primary Use Case: Dev, test and deployment of existing apps Highest-performing and most-available database platform Primary Use Case: Mission-critical applications and high density database consolidation Fully managed Pluggable Database for app dev with APEX, SQL Developer, Java Cloud and RESTful Web Services Primary Use Case: Development and deployment of departmental applications Capacity on demand eliminates storage hardware planning Transparent management, redundancy and highly available Primary Use Case: Enterprise data security protection and privacy 6

Oracle Database Cloud Software Editions Standard Edition(2) Enterprise Edition EE High Performance EE Extreme Performance Adds all 11g or 12c Enterprise Edition features Adds most 12c EE options Adds all 12c EE options Full database instance Up to 16 OCPUs and 240GB of memory All standard EE features Multitenant Data Guard Partitioning RAC In Memory All new tablespace datafiles are encrypted by default across all versions Advanced Compression Advanced Security, Label Security, Database Vault Real Application Testing OLAP, Analytics, Spatial and Graph Management Packs Active Data Guard 7

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 8

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 9

Use Database Consolidation Workbench to Determine Compute Shape Use Database Consolidation Workbench (EM13c) to determine target environment has sufficient resources for your databases Evaluates source databases and validates that target cloud environment has sufficient resources to handle the workload Analysis based on historical workload AWR Enterprise Manager database and host metrics Gives target platform advice, including storage, I/O, compression 10

Database Consolidation Workbench Evaluates Requirements Database Consolidation Workbench evaluates source database usage to determine cloud requirements CPU Memory I/O workload Workload type DSS or OLTP IOPS I/O Bandwidth 11

Database Consolidation Workbench Predicts Cloud Target Utilization Using metrics from source database, Database Consolidation Workbench creates a heatmap showing expected hourly utilization of target cloud database SLA violations will be flagged 12

Oracle Database Cloud Service Data Loading into a Database as a Service Oracle Data Pump Export/Import Utility (10.2+) Transportable Tablespaces (8i+) Pluggable Databases (PDBs) (12c) Remote Cloning Lift and Shift Dataguard GoldenGate Cloud Service SQL*Loader / External Tables Import/export (5+)

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 14

Agenda Oracle Database Cloud Migration: 1. Which Oracle Cloud Service 2. How to Migrate 3. How to Validate Performance 15

Agenda How To Validate Performance Create a Performance Baseline Remove Unnecessary Parameters Preserve SQL Plan Baselines and SQL Profiles Validate SQL Response Time Validate Throughput 16

Create a Performance Baseline Gather and Save Performance Data Gather accurate performance data from production Use Automatic Workload Repository (AWR) Minimum of 30 days of data Snapshots interval 30-60 minutes Extract and save AWR data SQL> @?/rdbms/admin/awrext.sql Load data on target instance SQL> @?/rdbms/admin/awrload.sql Use AWR diff report to compare performance of source and target system for specific time periods SQL> @?/rdbms/admin/awrddrpt.sql 17

Create Performance Baseline Gather SQL Response Time Data Collect SQL performance data in a SQL Tuning Set (STS) An STS is a collection of SQL statements, execution plans and performance statistics (CPU_TIME, DISK_READS, BUFFER_GETS, etc.) Create STS By polling the cursor cache over time Load from AWR data SQL Tuning Set usage Input for SQL Performance Analyzer (SPA) Can be converted to a SPA trial Input to SQL Tuning Advisor 18

Preserve SQL Baselines and SQL Profiles Will need to migrate SQL Baselines and SQL Profiles along with database Export from source database Import to target database Use same methodology for SQL Baselines in the cloud as you used for on-premise database SQL Profiles if testing time permits, use SQL Tuning Advisor to regenerate SQL Profiles for cloud environment may be more optimized for target environment 19

Remove Unnecessary Parameters Review and simplify spfile / init.ora Only have non-default parameter values set for clearly understood reasons Minimizing non-default parameters means will execute most common code path most optimized, fewest potential issues x Underscore parameters particularly suspect Frequently set to work around issues or behaviors no longer present in newer database versions Unset as many as possible when migrating to cloud Exception: Follow packaged application vendor recommendations, e.g. EBS, SAP, Peoplesoft 20

Validate SQL Response Time SQL Performance Analyzer Helps users validate SQL response time in the target environment Low overhead capture of SQL Tuning Set (STS) on current production system Migrate STS to cloud, convert to SQL trial 1 Execute SPA trial 2 on cloud Analyze performance difference between trial 1 and trial 2 Offers fine-grained performance analysis on individual SQL Integrated with STS, SQL Plan Baselines, & SQL Tuning Advisor to remediate regressions 21

SPA Report 3 4 5 2 1 22

Use Database Replay to Validate Throughput Database Replay validates target system s ability to handle required throughput Database Replay enables database load and performance testing with real production workloads Fully maintains production workload characteristics such as timing, transaction dependency, think time, etc. Identify and remediate application scalability and concurrency problems in multitenant and non-cdb databases Capture workload from on premise database Replay workload on cloud 23

Database Cloud Testing: Validating Throughput Steps Recommendation For throughput validation use Database Replay Provision cloud database Capture workload from production database Use wrc/calibrate to estimate number of replay clients required Provision cloud compute server to host replay clients Migrate workload to either cloud database server or cloud client host NFS cross mount the workload directory between database and client hosts Execute replay Analyze results Remediate regressions 24

Database Cloud Validation Best Practices Validate SQL response time Use SPA - unit test before load test Validate throughput Use Database Replay 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 13c with the latest database plug-in Implements best practices Wizards guide you through the capture and replay process Long term repository for storing and analyzing test results 25

Database Performance Management in the Cloud 26

Deliver Consistent Quality of Service across Private and Public Clouds Use Find > Fix > Validate Methodology: Effective Accurate, and Automated STEP 1: Find Built-in, self-diagnostics engine: Automatic Database Diagnostics Monitor (ADDM): Oracle Diagnostics Pack STEP 2: Fix Automates complex and time consuming task of application tuning: Oracle Tuning Pack STEP 3: Validate: Routine tuning activities: Oracle Real Application Testing SPA 1 2 Diagnostics Tuning 3 SQL Performance Analyzer (SPA) The same Find-Fix-Validate methodology can be used to deliver consistent quality of service across Private and Public Clouds since the underlying DB software running is the same! 27

Deliver Consistent Quality of Service across Private and Public Clouds Use SPA Quick Check to Assess Routine Performance Changes Helps users quickly predict the impact of routine system changes on SQL workload on production system Designed to be used in production without impacting end-users and with no overhead Runs trials in optimal mode that consumes order of magnitude less system resources Context-aware workflows, controlled and scoped impact assessment Useful for routine DBA activities such as statistics gathering refresh, init.ora changes, SQL Profile validation Optimal Trial Mode, no DML execute Pre-selected STS and default SPA settings SPA Quick Check Optimized Controlled/ Scoped Change-Aware Production Database Per SQL Time Limits, Limits testing scope to private session Context-aware change testing DBA 28

DEMO SQL Response Time Validation 29

Deliver Consistent Quality of Service across Private and Public Clouds Use Performance Hub: The Next Generation AWR Report Provides single unified view of DB performance Works across Private and Public Clouds Exadata and Multitenant-aware New interactive report for analyzing AWR data Performance Hub report generated from SQL*Plus @$ORACLE_HOME/rdbms/admin/perfhubrpt.sql OR calling dbms_perf.report_perfhub(.) function ADDM, SQL Tuning, Real-Time SQL Monitoring, ASH Analytics Switch between ASH analytics, workload view, ADDM findings and SQL monitoring seamlessly Supports both real-time & historical mode Historical view of SQL Monitoring reports 30

Resources Oracle Cloud Oracle Database Manageability and Real Application Testing Oracle Database Upgrade 31

32

33