Automatic Data Optimization



Similar documents
Exadata HCC Case Study. - By Diwakar Kasibhotla Sr. Data Architect

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

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

2009 Oracle Corporation 1

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

An Oracle White Paper August Automatic Data Optimization with Oracle Database 12c

Safe Harbor Statement

Oracle Database In-Memory The Next Big Thing

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

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

Inge Os Sales Consulting Manager Oracle Norway

<Insert Picture Here>

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

Is there any alternative to Exadata X5? March 2015

Oracle Aware Flash: Maximizing Performance and Availability for your Database

Oracle Software. Hardware. Training. Consulting. Mythics Complete.

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

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

Expert Oracle Exadata

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

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

Overview: X5 Generation Database Machines

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

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

ZFS Storage Solutions for Unstructured Data Challenges

An Oracle White Paper July Advanced Compression Option (ACO) with Oracle Database 11g

Optimizing Storage for Better TCO in Oracle Environments. Part 1: Management INFOSTOR. Executive Brief

An Oracle White Paper January Advanced Compression with Oracle Database 11g

ORACLE EXADATA STORAGE SERVER X4-2

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

<Insert Picture Here> Oracle Exadata Database Machine Overview

Upcoming: Oracle Database 12.1 Support Update for Linux on System z

Expert Oracle Exadata

Oracle Database 12c. Peter Schmidt Systemberater Oracle Deutschland BV & CO KG

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

An Oracle White Paper July Expanding the Storage Capabilities of the Oracle Database Appliance

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

Novinky v Oracle Exadata Database Machine

TUT NoSQL Seminar (Oracle) Big Data

Oracle MulBtenant Customer Success Stories

Exadata for Oracle DBAs. Longtime Oracle DBA

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

Introduction to Database as a Service

A Big Data Storage Architecture for the Second Wave David Sunny Sundstrom Principle Product Director, Storage Oracle

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

Oracle Architecture, Concepts & Facilities

SUN ORACLE DATABASE MACHINE

Aaron Werman.

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

Oracle Database In-Memory A Practical Solution

Exadata and Database Machine Administration Seminar

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

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

Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC

Exadata Database Machine

Main Memory Data Warehouses

How To Use Exadata

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

The Revival of Direct Attached Storage for Oracle Databases

INCREASING EFFICIENCY WITH EASY AND COMPREHENSIVE STORAGE MANAGEMENT

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

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

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

SUN ORACLE DATABASE MACHINE

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

ORACLE DATABASE ADMINISTRATOR RESUME

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

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

Capacity Management for Oracle Database Machine Exadata v2

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

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

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

ORACLE DATABASE 12C IN-MEMORY OPTION

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

ORACLE EXADATA STORAGE SERVER X2-2

ORACLE DATA SHEET RELATED PRODUCTS AND SERVICES RELATED PRODUCTS

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

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

How Oracle Exadata Delivers Extreme Performance

Oracle Database Backups and Disaster Autodesk

Oracle - Engineered for Innovation. Thomas Kyte

Oracle InMemory Database

news from Tom Bacon about Monday's lecture

SUN ORACLE EXADATA STORAGE SERVER

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

ENHANCEMENTS TO SQL SERVER COLUMN STORES. Anuhya Mallempati #

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

Top 10 Performance Tips for OBI-EE

MACHINE X2-22 ORACLE EXADATA DATABASE ORACLE DATA SHEET FEATURES AND FACTS FEATURES

MACHINE X2-8 ORACLE EXADATA DATABASE ORACLE DATA SHEET FEATURES AND FACTS FEATURES

An Oracle White Paper July Oracle Database In-Memory

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

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

Oracle SAP. 11 g. for. NEW Request Exadata V2-Sun Oracle Database Machine for your SAP implementation NOW!

Data Warehousing. Jens Teubner, TU Dortmund Winter 2015/16. Jens Teubner Data Warehousing Winter 2015/16 1

Transcription:

Automatic Data Optimization Saving Space and Improving Performance! Erik Benner, Enterprise Architect 1

Who am I? Erik Benner @erik_benner TalesFromTheDatacenter.com Enterprise Architect Ebenner@mythics.com Published Author IOUG Solaris SIG Leader RAC Attack Ninja First Version of Oracle 7 Linux since 1992 Solaris since 1996 OEM 12c since 2011 Oracle Database Appliance since 2011 DB 12c in prelaunch 2013 2

3

Growth in Data Diversity and Usage 1,800 Exabytes of Data in 2011, 20x Growth by 2020 Today s Drivers Emerging Growth Factors Enterprise 45% per year growth in database data Cloud 80% of new applications and their data Regulation 300 exabytes in archives by 2015 Mobile #1 Internet access device in 2013 Big Data Large customers top 50PB Social Business $30B/year in commerce by 2015 4

5

The Concept of Partitioning Simple Yet Powerful ORDERS ORDERS ORDERS USA EUROPE JAN FEB JAN FEB Large Table Difficult to Manage Partition Divide and Conquer Easier to Manage Improve Performance Composite Partition Better Performance More flexibility to match business needs Transparent to applications 6

What Can Be Partitioned? Tables Heap tables Index-organized tables Indexes Global Indexes Local Indexes Materialized Views Table Partition Global Non Partitioned Index Global Partitioned Index Table Partition Table Partition Table Partition Local Partitioned Index 7

Partition for Tiered Storage ORDERS TABLE (10 years) 2004 95% Less Active 2013 2014 5% Active Low End Storage Tier 2-3x less per terabyte High End Storage Tier 8

9

Compression Techniques COMPRESSION TYPE: Basic Compression Advanced Row Compression Advanced LOB Compression and Deduplication Advanced Network Compression and Data Guard Redo Transport Compression SUITABLE FOR: Mostly read tables and partitions in Data Warehouse environments or inactive data partitions in OLTP environments Active tables and partitions in OLTP and Data Warehouse environments Non-relational data in OLTP and Data Warehouse environments All environments RMAN/Data Pump Backup Compression All environments Index Key Compression Hybrid Columnar Compression Warehouse Level Hybrid Columnar Compression Archive Level Indexes on tables for OLTP and Data Warehouse Mostly read tables and partitions in Data Warehouse environments Inactive data partitions in OLTP and Data Warehousing environments 10

Advanced Row Compression Partition/table/tablespace data compression Support for conventional DML Operations (INSERT, UPDATE) Customers indicate that 2x to 4x compression ratio s typical Significantly eliminates/reduces write overhead of DML s Batched compression minimizes impact on transaction performance Database-Aware compression Does not require data to be uncompressed keeps data compressed in memory Reads often see improved performance due to fewer I/Os and enhanced memory efficiency 11

Hybrid Columnar Compression Compression Unit Hybrid Columnar Compressed Tables Compressed tables can be modified using conventional DML operations Useful for data that is bulk loaded and queried 10x to 40x Reduction REALLY! How it Works Tables are organized into Compression Units (CUs) CUs are multiple database blocks Within Compression Unit, data is organized by column instead of by row Column organization brings similar values close together, enhancing compression 12

Data Compression Reduce storage footprint, read compressed data faster Hot Data 111010101010101 10101010111010100110101 001101010101011 11000010100010110111010 010001011011000 10100101001001000010001 110100101000001 01010110100101101001110 001110001010101 00010100100101000010010 101001011010010 00010001010101110011010 110001010010011 111001001000010 001010101101000 3X Advanced Row Compression Warm Data 10101010111010100110101110000101000101 001101011100001 10111010101001010010010000100010101011 010001011011101 01001011010011100001010010010100001001 010100101001001 00001000101010111001101110011000111010 000010001010101 101001011010011 100001010010010 100001001000010 001010101101001 10X Columnar Query Compression Archive Data 10101010111010100110101110000101000101101110101 001101011100001 01001010010010000100010101011010010110100111000 010001011011101 01010010010100001001000010001010101110011011100 010100101001001 000010001010101 101001011010011 100001010010010 100001001000010 001010101101001 15X + Columnar Archive Compression 13

Compression Benefits Transparent: 100% Application Transparent Smaller: Reduces Footprint CapEx: Reduces server & storage costs for primary, standby, backup, test & dev databases OpEx: Reduces heating, cooling, floor space costs Additional ongoing savings over life of a database as database grows in size Faster: Transactional, Analytics, DW Greater speedup from in memory: 3 10x more data fits in buffer cache & flash cache Faster queries Faster backup & restore speeds End to end Cost / Performance Benefits across CPU, DRAM, Flash, Disk & Network 14

15

Automatic Data Optimization (ADO) ADO offers capability to move and/or compress data based on observed usage patterns Uses heat maps to determine how often data has been access Tracks exactly how data has been utilized (DML vs. query, single block vs. table scan) Data usage patterns can be tracked at tablespace, segment, and row level 16

Automatic Data Optimization Simple Declarative SQL extension Active Frequent Access Occasional Access Dormant Advanced Row Compression (2 4x) Affects ONLY candidate rows Cached in DRAM & FLASH Warehouse Compression(10x) High Performance Storage Warehouse Compression(10x) High Capacity Storage Archive Compression(15 40X) Archival Storage row store compress advanced row after 2 days of no update column store compress for query low after 1 week of no update tier to lower cost tablespace column store compress for archive high after 6 months of no access 17

Heat Maps: How Hot Is It? ADO leverages heat maps to: Capture data usage frequencies Determine which compression level is most appropriate for how data is being used Determine which data could be moved from a highperformance storage tier to a lower performance tier Decide when data should be moved between different tablespaces or partitions to limit possible out of space conditions 18

Heat Maps: An Example Heat map shows heavy DML and queries: Leave data uncompressed After7 days of more limited access: Enable ADVANCED compression After 30 days of only limited access: Enable HCC QUERY LOW* compression After 90 days of no access: Enable HCC ARCHIVE HIGH* compression * Requires Exadata Storage Servers, ZFS Appliance, or Pillar Axiom storage 19

How much space will we save? 20

DBMS_COMPRESSION Compliments of Oracle The DBMS_COMPRESSION package gathers compression-related information within a database environment. This includes tools for estimating compressibility of a table for both partitioned and nonpartitioned tables, and gathering row-level compression information on previously compressed tables. This gives the user with adequate information to make compression-related decision. Built into 12c, can be downloaded for 11gR2 The Official docs http://docs.oracle.com/database/121/arpls/d_compress.htm#arpls236 21

ADO.SQL set serveroutput on DECLARE blkcnt_cmp PLS_INTEGER; blkcnt_uncmp PLS_INTEGER; row_comp PLS_INTEGER; row_uncmp PLS_INTEGER; cmp_ratio NUMBER; comptype VARCHAR2(30); BEGIN dbms_compression.get_compression_ratio('ado', 'ADO', 'ADO_DEMO', NULL, 32, blk cnt_cmp, blkcnt_uncmp, row_comp, row_uncmp, cmp_ratio, comptype); dbms_output.put_line('block Count Compressed: ' TO_CHAR(blkcnt_cmp)); dbms_output.put_line('block Count UnCompressed: ' TO_CHAR(blkcnt_uncmp)); dbms_output.put_line('compression Type: ' comptype); END; / 22

Execution SQL> @ado Compression Advisor self-check validation successful. select count(*) on both Uncompressed and EHCC Compressed format = 1000001 rows Block Count Compressed: 8941 Block Count UnCompressed: 37986 Compression Type: "Compress Archive Low" PL/SQL procedure successfully completed. 23

24