Oracle Database In-Memory The Next Big Thing

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

Safe Harbor Statement

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

Oracle MulBtenant Customer Success Stories

Oracle InMemory Database

Oracle Database In-Memory A Practical Solution

Under The Hood. Tirthankar Lahiri Vice President Data Technologies and TimesTen October 28, #DBIM12c

Oracle Database In-Memory

Overview: X5 Generation Database Machines

2009 Oracle Corporation 1

Inge Os Sales Consulting Manager Oracle Norway

When to Use Oracle Database In-Memory

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

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

News and trends in Data Warehouse Automation, Big Data and BI. Johan Hendrickx & Dirk Vermeiren

ORACLE DATABASE 12C IN-MEMORY OPTION

Distributed Architecture of Oracle Database In-memory

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

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

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

SAP HANA PLATFORM Top Ten Questions for Choosing In-Memory Databases. Start Here

SQL Server 2012 Performance White Paper

Application-Tier In-Memory Analytics Best Practices and Use Cases

Automatic Data Optimization

How To Use Exadata

SAP HANA SAP s In-Memory Database. Dr. Martin Kittel, SAP HANA Development January 16, 2013

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

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

Oracle Database 12c Plug In. Switch On. Get SMART.

Oracle Database Cloud Exadata Service

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

Introduction to Database as a Service

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

<Insert Picture Here> Oracle Exadata Database Machine Overview

Exadata for Oracle DBAs. Longtime Oracle DBA

Expert Oracle Exadata

Capacity Management for Oracle Database Machine Exadata v2

ORACLE EXADATA STORAGE SERVER X4-2

SUN ORACLE EXADATA STORAGE SERVER

Main Memory Data Warehouses

How To Build An Exadata Database Machine X2-8 Full Rack For A Large Database Server

Is there any alternative to Exadata X5? March 2015

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

Safe Harbor Statement

Oracle Big Data SQL Technical Update

An Oracle White Paper July Oracle Database In-Memory

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

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

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

Oracle Aware Flash: Maximizing Performance and Availability for your Database

Query Acceleration of Oracle Database 12c In-Memory using Software on Chip Technology with Fujitsu M10 SPARC Servers

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

Software-defined Storage Architecture for Analytics Computing

Oracle Exadata Database Machine Aké jednoznačné výhody prináša pre finančné inštitúcie

ORACLE DATABASE 12c FOR SAP: ROADMAP, BASE CERTIFICATION FEATURES AND OPTIONS

An Oracle White Paper June High Performance Connectors for Load and Access of Data from Hadoop to Oracle Database

Exadata Database Machine

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

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

Oracle Enterprise Manager 12c New Capabilities for the DBA. Charlie Garry, Director, Product Management Oracle Server Technologies

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

SMB Direct for SQL Server and Private Cloud

Oracle: Database and Data Management Innovations with CERN Public Day

<Insert Picture Here>

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

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

In-Memory Data Management for Enterprise Applications

ORACLE EXADATA DATABASE MACHINE X5-2

SQL Server Business Intelligence on HP ProLiant DL785 Server

SAS and Oracle: Big Data and Cloud Partnering Innovation Targets the Third Platform

Maximum Availability Architecture

Novinky v Oracle Exadata Database Machine

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

HP ProLiant BL660c Gen9 and Microsoft SQL Server 2014 technical brief

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

Aaron Werman.

ORACLE EXADATA STORAGE SERVER X2-2

CASE STUDY: Oracle TimesTen In-Memory Database and Shared Disk HA Implementation at Instance level. -ORACLE TIMESTEN 11gR1

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

ORACLE DATABASE 10G ENTERPRISE EDITION

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

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Oracle Exadata Database Machine for SAP Systems - Innovation Provided by SAP and Oracle for Joint Customers

Oracle 11g New Features - OCP Upgrade Exam

Integrating Apache Spark with an Enterprise Data Warehouse

<Insert Picture Here> Oracle In-Memory Database Cache Overview

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Big Data and Its Impact on the Data Warehousing Architecture

How To Manage Big Data In A Microsoft Cloud (Hadoop)

Advances in Virtualization In Support of In-Memory Big Data Applications

Flash Performance for Oracle RAC with PCIe Shared Storage A Revolutionary Oracle RAC Architecture

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

EMC XtremSF: Delivering Next Generation Performance for Oracle Database

DELL s Oracle Database Advisor

TUT NoSQL Seminar (Oracle) Big Data

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

Transcription:

Oracle Database In-Memory The Next Big Thing Maria Colgan Master Product Manager #DBIM12c

Why is Oracle do this

Oracle Database In-Memory Goals Real Time Analytics Accelerate Mixed Workload OLTP No Changes to Applications Trivial to Implement 100x 4

What is an analytic query? Which products give us our highest margins? Who are the top 10 sales reps in the north west region this month? If I get a 20% discount on widget A, how much will our margins improve?

What is an analytic query? Scans a large amount of data Selects a subset of columns from wide tables Uses filter predicates in the form of =, >, <, between, in-list Uses selective join predicates that reduce the amount of data returned Contain complex calculations or aggregations

Row Format Databases vs. Column Format Databases Rows Stored Contiguously SALES Transactions run faster on row format Example: Query or Insert a sales order Fast processing few rows, many columns Columns Stored Contiguously SALES Analytics run faster on column format Example : Report on sales totals by region Fast accessing few columns, many rows 7

OLTP Example Row Query SALES Query a single sales order in row format One contiguous row accessed = FAST Column SALES Stores Query a sales order in Column Format Many column accessed = S L O W Query Query Query Query Until Now Must Choose One Format and Suffer Tradeoffs 8

What is it

Breakthrough: Dual Format Database Normal Buffer Cache SALES Row Format New In-Memory Format SALES Column Format BOTH row and column formats for same table Simultaneously active and transactionally consistent Analytics & reporting use new in-memory Column format OLTP uses proven row format SALES 10

How Does it work

Oracle In-Memory Columnar Technology Pure In-Memory Columnar Pure in-memory column format Not persistent, and no logging Quick to change data: fast OLTP Enabled at table or partition Only active data in-memory SALES 2x to 20x compression typical Available on all hardware platforms 12

Early User - Schneider Electric Global Specialist in Energy Management 25 billion revenue 160,000+ employees in 100+ countries 13

Schneider In-Memory Compression 20 15 10 5 0 Schneider General Ledger Compression Factors Default 8.6x 13x 16x 19x Query Low Query High Capacity Low Capacity High Over 2 billion General Ledger Entries 900 GB on disk 14

Why is an In-Memory scan faster than the buffer cache? Buffer Cache SELECT COL4 FROM MYTABLE; X X X X X RESULT Row Format 15

Why is an In-Memory scan faster than the buffer cache? IM Column Store SELECT COL4 FROM MYTABLE; Column Format X X X X RESULT 16

Oracle In-Memory Column Store Storage Index Example: Find all sales from stores with a store_id of 8 Memory Min 1 Max 3 Min 4 Max 7 Each column is the made up of multiple column units Min / max value is recorded for each column unit in a storage index SALES Column Format Min 8 Max 12 Min 7 Max 15? Storage index provides partition pruning like performance for ALL queries 17

Vector Register REGION Orders of Magnitude Faster Analytic Data Scans Memory Example: Find sales in region of CAlifornia Each CPU core scans local in-memory columns CPU Load multiple region values CA CA CA CA Vector Compare all values an 1 cycle > 100x Faster Scans use super fast SIMD vector instructions Originally designed for graphics & science Billions of rows/sec scan rate per CPU core Row format is millions/sec 18

Store ID Amount Type Store ID Joining and Combining Data Also Dramatically Faster Example: Find total sales in outlet stores Stores StoreID in 15, 38, 64 Sales Converts joins of data in multiple tables into fast column scans Type= Outlet Joins tables 10x faster Sum 19

Outlets Generates Reports Instantly Example: Report sales of footwear in outlet stores Products In-Memory Report Outline Sales Dynamically creates in-memory report outline Footwear Stores Footwear $ $$ $$$ $ Then report outline filled-in during fast fact scan Reports run much faster Without predefined cubes Outlets Sales Also offloads report filtering to Exadata Storage servers 20

Schneider Speedup Across 1545 Queries 7x to 128x faster 100 Seconds per Query 80 60 40 20 0 Buffer Cache IN-MEMORY 2000M 300M 30M 5M 0.5M Million rows returned by query 2 billion General Ledger Entries 1545 queries Currently take 34 hours to complete Combination of filter queries, aggregations and summations 21

Schneider Speedup vs. Disk From 62x to 3259x faster 1000 Seconds per Query Disk 800 600 400 IN-MEMORY 200 0 2000M 300M 30M 5M 0.5M Million rows returned 22

How does it impact OLTP environments

Complex OLTP is Slowed by Analytic Indexes Table 1 3 OLTP Indexes 10 20 Analytic Indexes Most Indexes in complex OLTP (e.g. ERP) databases are only used for analytic queries Inserting one row into a table requires updating 10-20 analytic indexes: Slow! Indexes only speed up predictable queries & reports 24

OLTP is Slowed Down by Analytic Indexes Insert rate decreases as number of indexes increases # of Fully Cached Indexes (Disk Indexes are much slower) 25

Column Store Replaces Analytic Indexes Table 1 3 OLTP Indexes In-Memory Column Store Fast analytics on any columns Better for unpredictable analytics Less tuning & administration Column Store not persistent so update cost is much lower OLTP & batch run faster 26

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 Millions of transaction per day Schneider Update Transactions Speedup From 5x to 9x faster 4 000 3 500 Primary Index Only Data Sales Accounts 3 000 2 500 2 000 Primary Index Plus In-Memory Columns Main table has 1 Primary Key + No Index 21 secondary indexes No Index + IM 1 500 1 000 500 - All Indexes Full Index Test - 303 million transactions Currently takes 21 hours Millions of records in the target table 27

Schneider Storage Reduction Over 70% reduction in storage usage due to analytic index removal 400 Size in GBs SECONDARY INDEXES 300 200 100 0 Objects Redo TABLES & PK INDEXES 28

How can I scale this solution

Scale-Out In-Memory Database to Any Size Scale-Out across servers to grow memory and CPUs In-Memory queries parallelized across servers to access local column data Direct-to-wire InfiniBand protocol speeds messaging on Engineered Systems 30

In-Memory Speed + Capacity of Low Cost Disk DRAM PCI FLASH DISK Hottest Data Active Data Cold Data Size not limited by memory Data transparently accessed across tiers Each tier has specialized algorithms & compression Simultaneously Achieve: Speed I/Os Cost of DRAM of Flash of Disk 31

Scale-Up for Maximum In-Memory Performance M6-32 Big Memory Machine 32 TB DRAM 32 Socket 3 Terabyte/sec Bandwidth Scale-Up on large SMPs Algorithms NUMA optimized SMP scaling removes overhead of distributing queries across servers Memory interconnect far faster than any network 32

Oracle In-Memory: Industrial Strength Availability RAC ASM RMAN Data Guard & GoldenGate Pure In-Memory format does not change Oracle s storage format, logging, backup, recovery, etc. All Oracle s proven availability technologies work transparently Protection from all failures Node, site, corruption, human error, etc. 33

Oracle Database In-Memory: Unique Fault Tolerance Similar to storage mirroring Duplicate in-memory columns on another node Enabled per table/partition E.g. only recent data Application transparent Only Available on Engineered Systems Downtime eliminated by using duplicate after failure 34

How easy is it to get started

Oracle In-Memory: Simple to Implement 1. Configure Memory Capacity inmemory_size = XXX GB 2. Configure tables or partitions to be in memory alter table partition inmemory; 3. Later drop analytic indexes to speed up OLTP 36

In terms of how easy the in-memory option was to use, it was actually almost boring. It just worked just turn it on, select the tables, nothing else to do. Mark Rittman Chief Technical Officer Rittman Mead 37

Oracle In-Memory Requires Zero Application Changes Full Functionality Easy to Implement Fully Compatible Fully Multitenant - ZERO restrictions on SQL - No migration of data - All existing applications run unchanged - Oracle In-Memory is Cloud Ready Uniquely Achieves All In-Memory Benefits With No Application Changes 38

Oracle Database In-Memory made our slowest financial queries faster out-of-the box; then we dropped indexes and things just got faster. Evan Goldberg Co-Founder, Chairman, CTO NetSuite Inc. 39

We see clear benefit from the Oracle In Memory for our users. Our existing applications were transparently able to take advantage of them and no application code changes were required Scott VanValkenburgh, SAS 40

Oracle Applications In-Memory Examples Oracle Application Module Improvement Elapsed Time In-Memory Cost Management 1003x Faster 58 hours to 3.5 mins In-Memory - Financial Analyzer 1,354x Faster 4.3 hours to 11 seconds In-Memory Sales Order Analysis 1,762x Faster 22.5 minutes to < 1 sec Subledger Period Close Exceptions 200x Faster 600 seconds to 3 secs Call Center Ad-hoc query pattern 1247x Faster 129 seconds to < 1 secs 41

What s the catch

Getting The Most From In-Memory Understand Where it Helps Fast cars speed up travel, not meetings In-Memory speeds up analytic data access, not: Network round trips, logon/logoff Parsing, PL/SQL, complex functions Data processing (as opposed to access) Complex joins or aggregations where not much data is filtered before processing Load and select once Staging tables, ETL, temp tables Know your bottleneck! 43

Getting The Most From In-Memory The Driver Matters Avoid stop and go traffic Process data in sets of rows in the Database Not one row at a time in the application Plan ahead, take shortest route Help the optimizer help you: Gather representative set of statistics using DBMS_STATS Use all your cylinders Enable parallel execution In-Memory removes storage bottlenecks allowing more parallelism 44

In-Memory Use Cases OLTP Real-time reporting directly on OLTP source data Removes need for separate ODS Speeds data extraction Data Warehouse Staging/ETL/Temp not a candidate Write once, read once All or a subset of Foundation Layer For time sensitive analytics Potential to replace Access Layer 45

Where can I get more information

Additional Resources Join the Conversation https://twitter.com/db_inmemory https://blogs.oracle.com/in-memory/ https://www.facebook.com/oracledatabase http://www.oracle.com/goto/dbim.html Related Database In-Memory Free Webcasts Oracle Database In-Memory meets Data Warehousing Related White Papers Oracle Database In-Memory White Paper Oracle Database In-Memory Aggregation Paper When to use Oracle Database In-Memory Oracle Database In-Memory Advisor Related Videos In-Memory YouTube Channel Database Industry Experts Discuss Oracle Database In-Memory (11:10) Software on Silicon Any Additional Questions Oracle Database In-Memory Blog My email: maria.colgan@oracle.com 47