Tuning Exadata. But Why?

Similar documents
Expert Oracle Exadata

Expert Oracle Exadata

Oracle Database In- Memory Op4on in Ac4on

Drilling Deep Into Exadata Performance With ASH, SQL Monitoring and Exadata Snapper

Safe Harbor Statement

Applying traditional DBA skills to Oracle Exadata. Marc Fielding March 2013

Exadata for Oracle DBAs. Longtime Oracle DBA

1Z0-117 Oracle Database 11g Release 2: SQL Tuning. Oracle

Oracle EXAM - 1Z Oracle Database 11g Release 2: SQL Tuning. Buy Full Product.

Oracle Big Data, In-memory, and Exadata - One Database Engine to Rule Them All Dr.-Ing. Holger Friedrich

Exadata: from Beginner to Advanced in 3 Hours. Arup Nanda Longtime Oracle DBA (and now DMA)

Extreme Data Warehouse Performance with Oracle Exadata

Inge Os Sales Consulting Manager Oracle Norway

<Insert Picture Here> Best Practices for Extreme Performance with Data Warehousing on Oracle Database

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

An Oracle White Paper May Exadata Smart Flash Cache and the Oracle Exadata Database Machine

Who am I? Copyright 2014, Oracle and/or its affiliates. All rights reserved. 3

Hadoop Meets Exadata. Presented by: Kerry Osborne. DW Global Leaders Program Decemeber, 2012

Oracle Database In-Memory The Next Big Thing

Oracle Database 12c: Performance Management and Tuning NEW

How Oracle Exadata Delivers Extreme Performance

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

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

ORACLE DATABASE 12C IN-MEMORY OPTION

Oracle Database 11g: Performance Tuning DBA Release 2

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

Enkitec Exadata Storage Layout

Performance Baseline of Hitachi Data Systems HUS VM All Flash Array for Oracle

Automatic Data Optimization

<Insert Picture Here> Designing and Developing Highly Scalable Applications with the Oracle Database

2009 Oracle Corporation 1

An Oracle White Paper April A Technical Overview of the Sun Oracle Database Machine and Exadata Storage Server

Optimize Oracle Business Intelligence Analytics with Oracle 12c In-Memory Database Option

Advanced Oracle SQL Tuning

Direct NFS - Design considerations for next-gen NAS appliances optimized for database workloads Akshay Shah Gurmeet Goindi Oracle

An Oracle White Paper September A Technical Overview of the Sun Oracle Exadata Storage Server and Database Machine

Oracle Database In- Memory & Rest of the Database Performance Features

Response Time Analysis

Oracle Database 10g: New Features for Administrators

Oracle Database 12c Built for Data Warehousing O R A C L E W H I T E P A P E R F E B R U A R Y

An Oracle White Paper December A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

An Oracle White Paper June A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

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

How to Migrate your Database to Oracle Exadata. Noam Cohen, Oracle DB Consultant, E&M Computing

An Oracle White Paper October A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

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

Oracle Database In-Memory A Practical Solution

Aaron Werman.

Real-Time SQL Monitoring. December 2009

Upgrading to Oracle 11g

OLTP Meets Bigdata, Challenges, Options, and Future Saibabu Devabhaktuni

How To Use Exadata

Oracle Database 11g: SQL Tuning Workshop Release 2

Exadata Performance, Yes You Still Need to Tune Kathy Gibbs Senior Database Administrator, CONFIO Software

<Insert Picture Here>

SQL Server 2014 New Features/In- Memory Store. Juergen Thomas Microsoft Corporation

Oracle DBA Course Contents

In-Memory Analytics: A comparison between Oracle TimesTen and Oracle Essbase

Oracle E-Business Suite (EBS) in the World of Oracle Exadata Engineered Systems

Response Time Analysis

Optimizing Your Database Performance the Easy Way

Expert Oracle. Database Architecture. Techniques and Solutions. 10gr, and 11g Programming. Oracle Database 9/, Second Edition.

Exadata and Database Machine Administration Seminar

Oracle 11g New Features - OCP Upgrade Exam

SAP HANA - Main Memory Technology: A Challenge for Development of Business Applications. Jürgen Primsch, SAP AG July 2011

Main Memory Data Warehouses

An Oracle White Paper November Hybrid Columnar Compression (HCC) on Exadata

Oracle Database 11g: SQL Tuning Workshop

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

Overview: X5 Generation Database Machines

Oracle Aware Flash: Maximizing Performance and Availability for your Database

Oracle Architecture, Concepts & Facilities

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

Common Anti Patterns for Optimizing Big Data Oracle Databases

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

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

Performance Verbesserung von SAP BW mit SQL Server Columnstore

Course 55144B: SQL Server 2014 Performance Tuning and Optimization

Oracle Database 10g: Parallelism and Scalability Overview Seminar

Oracle: Database and Data Management Innovations with CERN Public Day

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

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

An Oracle White Paper December Exadata Smart Flash Cache Features and the Oracle Exadata Database Machine

Oracle Database 11g: Administration And Backup & Recover

TUTORIAL WHITE PAPER. Application Performance Management. Investigating Oracle Wait Events With VERITAS Instance Watch

ORACLE OLAP. Oracle OLAP is embedded in the Oracle Database kernel and runs in the same database process

SQL Server Upgrading to. and Beyond ABSTRACT: By Andy McDermid

Oracle Database Capacity Planning. Krishna Manoharan

In-Memory Data Management for Enterprise Applications

Oracle RAC Tuning Tips

Oracle Database 11g: New Features for Administrators

Lessons Learned while Pushing the Limits of SecureFile LOBs. by Jacco H. Landlust. zondag 3 maart 13

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos

Oracle Maximum Availability Architecture with Exadata Database Machine. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

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

Oracle Exadata: The World s Fastest Database Machine Exadata Database Machine Architecture

"Charting the Course... MOC AC SQL Server 2014 Performance Tuning and Optimization. Course Summary

Transcription:

Tuning Exadata But Why?

whoami Work for Enkitec (www.enkitec.com) Working with Exadata since early 2010 Many Exadata customers and POCs Many Exadata Presentations (some to Oracle) Working on Exadata Book (kerryosborne.oracle-guy.com)

whoami (my prejudices) I am an Exadata Fan Boy so please take everything I say with a grain of salt

Agenda Exadata Basics Offloading - Optimizations - Requirements - How to tell if it s working ***this is very important*** Demo New Way of Thinking Questions

Exadata Basics Exadata Database Servers Exadata Storage Servers 11gR2 / ASM idb / RDS cellsrv

The Big Ah Ha! The Bottleneck on Many (Most) Large Databases is between the Disk and the DB Server(s)! How to Speed Up? Make the Pipe Bigger/Faster Reduce the Volume * The fast way to do anything is not to do it ~ Cary Millsap

Offloading The Secret Sauce Offloading vs. Smart Scan (what s the difference) Offloading generic term meaning doing work at the storage layer instead of at the database layer Smart Scan query optimizations covered by cell smart table/index scan wait events

Smart Scan Optimizations Column Projection Predicate Filtering Storage Indexes Simple Joins Function Offloading Virtual Column Evaluation HCC Decompression Decryption

How to Tune an Exadata (but not a fish) Check to see if you re getting Smart Scans! If you re not, figure out why and correct the situation! It s Pretty Simple. 3 things you ll need to know: the Optimizations the Requirements how to Measure

Smart Scan Requirements Full Scan Direct Path Read Object Stored On Exadata Storage Why? Very Simple Explanation: Various full scan functions() - kcbldrget() direct path read function - kcfis_read() kernel file intelligent storage read (Smart Scan) *why it s there: checkpointing and non-block data return

Requirement 1: Full Scans Table Partition Materialized View Index (FAST FULL SCAN Only) SYS@shareprd1> @op_event_awr.sql! Enter value for event: cell smart%! EVENT OPERATION COUNT(*)! -------------------------- ---------------------------------------- ----------! cell smart index scan INDEX STORAGE FAST FULL SCAN 124! INDEX STORAGE SAMPLE FAST FULL SCAN 234! cell smart table scan MAT_VIEW ACCESS STORAGE FULL 1! TABLE ACCESS STORAGE FULL 27747! * Query from DBA_HIST_ACTIVE_SESS_HISTORY

Digression - New Exadata Wait Events cell list of blocks physical read cell multiblock physical read cell single block physical read cell smart file creation cell smart incremental backup cell smart index scan cell smart restore from backup cell smart table scan * Note that there are others, these are the most interesting

Requirement 2: Direct Path Reads Bypass buffer cache direct to PGA Decision not part of optimizer s job Traditionally Used by Parallel Slaves Non-Parallel Also Possible - Serial Direct Path Reads (adaptive) - algorithm not documented (but more aggressive in 11g) * - size of segment (table or index or partition) - size of buffer cache - number blocks already in buffer cache - _small_table_threshold - _very_large_table_threshold * See MOS Note: 50415.1 - WAITEVENT: "direct path read" Reference Note

Requirement 3: Exadata Storage Kind of Goes Without Saying Possible to have non-exadata storage or mixed ASM Diskgroup has an attribute: cell.smart_scan_capable Must be set to TRUE for Smart Scans to work Can t add non-exadata storage without changing to FALSE

How to Tell if You got a Smart Scan Millsap It! (10046 trace) most fool proof Wolfgang It! unfortunately this doesn t work 10053 trace (and the optimizer) has no idea TP It! Tanel s snapper v$sesstat, v$session_event great if it s happening now KO It! My fsx.sql script V$SQL family of views: IO_CELL_OFFLOAD_ELIGIBLE_BYTES dbms_sqltune.report_sql_monitor works also saved in AWR so works on historical data as well

How to Tell if You got a Smart Scan -- fsx.sql select sql_id, decode(io_cell_offload_eligible_bytes,0, No, Yes ) Offloaded, decode(io_cell_offload_eligible_bytes,0,0, 100*(IO_CELL_OFFLOAD_ELIGIBLE_BYTES- IO_INTERCONNECT_BYTES)/ IO_CELL_OFFLOAD_ELIGIBLE_BYTES) "IO_SAVED_% from v$sql where sql_text like &sql_text ; * Warning: there are occasions where it s not accurate

The Wrong Tool for the Job? Maybe: Any of the tools can do the job. Just depends on the circumstance and you re preferences.

Demo Time

A New Way of Thinking

Smart Scans Are Key Need to be able to tell whether they are being used Need to be able to tell what optimizations are in play Need to know what disables them

Other Smart Scan Disablers IOTs Clustered Tables Rowdependencies Enabled LOBs No Direct Path Reads * * Note: You can get direct reads and still not get Smart Scan

Direct Reads? Gotta Have Em! How do we get Em? PX not really as easy to control as you might think Serial Direct Read / Adaptive Direct Read Algorithm is complicated Works on Indexes as well by the way

Serial Direct Reads Common Reasons Not to Get Them: Big SGA Small Table Partitioning decision based on segment size Indexes generally relatively small Workarounds: PX DEGREE=2 PARALLEL_DEGREE_POLICY=AUTO Scary _serial_direct_read =always (not OPT_PARAM compatible)

How Do It Know? The Optimizer Doesn t Know About Smart Scans Clues: The cost calculations are the same 10053 trace file shows nothing Decision to do direct path read is not part of optimizer - and code for Smart Scan is below kcbldr Results: When indexes are present, Exadata databases tend to over use them

To Index or Not to Index? Myth: Exadata doesn t need any indexes Truth: You ll need indexes for single row access (OLTP) Note: Moving to Exadata will allow you to get rid of a bunch of indexes that you weren t using in the first place. Note2: Moving to Exadata may make many indexes that are being used unnecessary. * Hint: Make them invisible first, and then remove them!

Partitioning? Is Still Your Friend! It s all about eliminating work (time): Storage Indexes can further reduce this, or in some instances be used instead of Partition Elimination. But you should not consider them a replacement for Partitioning. Partitions Also Provide Manageability: Partitions can have different storage characteristics (HCC) Don t forget that Serial Direct Read looks at Partition Size

Parallel? There are many new features in 11gR2: Auto DOP Parallel Queuing In-Memory Parallel These are not specific to Exadata. PX will be important in Exadata (uses Direct Path Read) Every query is parallelized across multiple storage cells May mean you don t need as high DOP Auto DOP is probably the wave of the future but still scary

Nulls? Can t be indexed via B-Tree Can t do Partition Elimination But they can be located with Storage Indexes *We may want to re-think the use of nulls*

Compression (HCC) Don t even think about compressing active data Every change migrates the affected row to a new block (OLTP) Every change locks the entire Compression Unit Partition large objects by time and compress inactive partitions

Mixed Workload Systems Flash Cache is Key Expect 1-2ms Single Block Reads If Not Getting Them, Check for FC Problems Consider setting CELL_FLASH_CACHE to KEEP Remember Indexes Can Be Overused (optimizer_index_cost_adj)

Last Thoughts Take Some Time to Test Just Because You Can Slam it in Doesn t Mean You Should Take Some Time to Understand the Exadata Optimizations Know What to Expect Take Some Time to Evaluate Indexes Migration is a Golden Opportunity to Get Rid of Some Make Sure the Ones You Keep Aren t Overused

Exadata Job Posting Requirements * Previous consulting experience is preferred * Full life-cycle implementation experience * Candidates should have 10+ years of Oracle Exadata experience * Candidates should be willing to travel up to 80-100% * Minimum Bachelors degree preferred * Citizens/GC/EADs are allowed --- No H1b

Questions / Contact Information Questions? Contact Information : Kerry Osborne kerry.osborne@enkitec.com kerryosborne.oracle-guy.com www.enkitec.com