Birds of a Feather Session: Best Practices for TimesTen on Exalytics



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

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

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

Oracle TimesTen IMDB - An Introduction

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

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

Oracle Exalytics Briefing

Safe Harbor Statement

Introducing Oracle Exalytics In-Memory Machine

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

An Accenture Point of View. Oracle Exalytics brings speed and unparalleled flexibility to business analytics

HOUG Konferencia Oracle TimesTen In-Memory Database and TimesTen Application-Tier Database Cache. A few facts in 10 minutes

Oracle Database In-Memory The Next Big Thing

Exadata in the Retail Sector

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

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

An Oracle BI and EPM Development Roadmap

Implementing a Data Warehouse with Microsoft SQL Server

Oracle OLAP 11g and Oracle Essbase

How To Write A Large Scale Database In A Microsoft Powerbook

Implementing a Data Warehouse with Microsoft SQL Server 2012

COURSE 20463C: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

Implementing a Data Warehouse with Microsoft SQL Server

OBIEE 11g Data Modeling Best Practices

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

Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012

In-Memory Analytics with Oracle BI Apps and Oracle Exalytics

Regression & Load Testing BI EE 11g

Implementing a Data Warehouse with Microsoft SQL Server 2012 MOC 10777

Super-Charged Oracle Business Intelligence with Essbase and SmartView

Implementing a Data Warehouse with Microsoft SQL Server 2012

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

Implementing a Data Warehouse with Microsoft SQL Server

Implement a Data Warehouse with Microsoft SQL Server 20463C; 5 days

OracleScene. Oracle SQL Developer Version 4.1 N E W & IM PR OVED. Serving the Oracle Community. This edition s sponsor:

Oracle Database In-Memory A Practical Solution

The First Example of TimesTen with Oracle on Windows

Einsatzfelder von IBM PureData Systems und Ihre Vorteile.

Course Outline. Module 1: Introduction to Data Warehousing

Microsoft. Course 20463C: Implementing a Data Warehouse with Microsoft SQL Server

Implementing a Data Warehouse with Microsoft SQL Server 2014

Oracle TimesTen and In-Memory Database Cache 11g

Implementing a Data Warehouse with Microsoft SQL Server MOC 20463

COURSE OUTLINE MOC 20463: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

GoldenGate and ODI - A Perfect Match for Real-Time Data Warehousing

<Insert Picture Here> Extending Hyperion BI with the Oracle BI Server

Online Courses. Version 9 Comprehensive Series. What's New Series

Oracle BI 11g R1: Build Repositories

An Integrated Analytics & Big Data Infrastructure September 21, 2012 Robert Stackowiak, Vice President Data Systems Architecture Oracle Enterprise

Well packaged sets of preinstalled, integrated, and optimized software on select hardware in the form of engineered systems and appliances

Oracle Big Data Spatial & Graph Social Network Analysis - Case Study

What s New with Oracle BI, Analytics and DW

Implementing a SQL Data Warehouse 2016

Inge Os Sales Consulting Manager Oracle Norway

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

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

Oracle BI 10g: Analytics Overview

Oracle Database 12c: Performance Management and Tuning NEW

PostgreSQL Business Intelligence & Performance Simon Riggs CTO, 2ndQuadrant PostgreSQL Major Contributor

AV-005: Administering and Implementing a Data Warehouse with SQL Server 2014

For Sales Kathy Hall

IT FUSION CONFERENCE. Build a Better Foundation for Business

Course Outline: Course: Implementing a Data Warehouse with Microsoft SQL Server 2012 Learning Method: Instructor-led Classroom Learning

Implementing a Data Warehouse with Microsoft SQL Server 2012 (70-463)

OBIEE DEVELOPER RESUME

Data Integration and ETL with Oracle Warehouse Builder: Part 1

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

Oracle BI New Features Dan Vlamis Vlamis Software Solutions

Mind Q Systems Private Limited

Dell Microsoft Business Intelligence and Data Warehousing Reference Configuration Performance Results Phase III

Implementing a Data Warehouse with Microsoft SQL Server

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

2009 Oracle Corporation 1

Course 20463:Implementing a Data Warehouse with Microsoft SQL Server

East Asia Network Sdn Bhd

Beta: Implementing a Data Warehouse with Microsoft SQL Server 2012

Oracle Exam 1z0-591 Oracle Business Intelligence Foundation Suite 11g Essentials Version: 6.6 [ Total Questions: 120 ]

Availability Digest. Raima s High-Availability Embedded Database December 2011

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

SQL Server What s New? Christopher Speer. Technology Solution Specialist (SQL Server, BizTalk Server, Power BI, Azure) v-cspeer@microsoft.

Emerging Technologies Shaping the Future of Data Warehouses & Business Intelligence

Oracle BI Suite Enterprise Edition For Discoverer Users. Mark Rittman, Rittman Mead Consulting

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

LEARNING SOLUTIONS website milner.com/learning phone

Database Performance with In-Memory Solutions

Instant-On Enterprise

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

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

Oracle BI EE Integration with Hyperion Sources

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

Microsoft Data Warehouse in Depth

Safe Harbor Statement

Microsoft Analytics Platform System. Solution Brief

Oracle BI EE Implementation on Netezza. Prepared by SureShot Strategies, Inc.

Course 55144B: SQL Server 2014 Performance Tuning and Optimization

Transcription:

Birds of a Feather Session: Best Practices for TimesTen on Exalytics Chris Jenkins Senior Director, In-Memory Technology, Oracle Antony Heljula Technical Director, Peak Indicators Ltd. Mark Rittman CTO, Rittman Mead

Program Agenda Introduction Presentation / Discussion Q & A 2 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Introduction BoF: Best Practices for TimesTen on Exalytics This is a Birds of a Feather session An opportunity for sharing experiences and discussion rather than just presentations Let s be interactive! Please ask questions and share your thoughts and experiences - Both during the presentations and afterwards 3 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Antony Heljula Technical Director, Peak Indicators Ltd. Widely regarded as one of Europe s top Oracle BI architects Over 10 years delivery experience with OBIEE and OBI Applications Over 15 years experience with Oracle Data Warehousing products Also specializes in SOA, maps/spatial and performance tuning 4 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Mark Rittman CTO, Rittman Mead CTO and co-founder of Rittman Mead Oracle Gold Partner with offices in UK, USA, India and Australia Over 15 years experience with Oracle BI, data warehousing and database technologies Oracle ACE Director and author of Oracle Business Intelligence Developer s Guide (Oracle press) Writes regularly for the Rittman mead blog and Oracle Magazine http://www.rittmanmead.com/blog 5 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Program Agenda Introduction Presentation / Discussion Q & A 6 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

What is Oracle TimesTen for Exalytics? An in-memory relational database, acquired by Oracle in 2005 Data held entirely in-memory, with recovery and persistence to disk Fully-featured RDBMS with Oracle DB integration and compatibility Used within the BI context in two main roles Summary Advisor Oracle BI Server nqcmd As the in-memory aggregate cache within Oracle Exalytics As a way of holding hot data to speed-up detail-level reporting Licensed separately to OBIEE and Essbase within Exalytics, but a prerequisite for Exalytics deployments The secret sauce behind Exalytics speed-of-thought analysis ttisql TT utils ODBC TimesTen Memory-Resident Database Checkpoint Files Log Files T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

Peak Indicators Limited 8 Common Deployment Scenarios 1) Aggregate Persistence Oracle BI comes with a unique feature where it automatically builds and deploys in-memory aggregates into TimesTen BI Dashboards Exalytics customers benefit from the Summary Advisor which suggests aggregates to build (based on previous user activity) Oracle Oracle BI 11g Business Intelligence 11g TimesTen for Exalytics The use of aggregates is transparent: OBI directs summary queries to TimesTen A more detailed query will go to the underlying Data Warehouse Detail Data Summarised Data Data Warehouse

Peak Indicators Limited 9 Common Deployment Scenarios 2) Operational Data Store (ODS) TimesTen can be used as an ODS where data is cached into memory for optimising real-time / operational reports BI Dashboards The TimesTen database can be loaded via various means including: DAC Oracle Data Integrator (ODI) ttimportfromoracle Custom scripts / application code Oracle GoldenGate Oracle Oracle BI 11g Business Intelligence 11g TimesTen ODS Oracle Database

Peak Indicators Limited 10 Common Deployment Scenarios 3) Fragmentation Oracle BI comes with a Fragmentation feature where it can effectively union data from different data sources together BI Dashboards Current & Historical Data The end user sees it as a single data source In this example, we have cached Current data into TimesTen Depending on the query, Oracle BI is intelligent enough to only use the data sources that are required: A query for Current data will only use TimesTen A query for Historical data will only use Oracle DB A query across all data will issue concurrent requests to both databases Oracle Oracle BI 11g Business Intelligence 11g Historical Data Oracle Database TimesTen Current Data

Peak Indicators Limited 11 Configuration Best Practices Use Large Pages even if your database is < 256GB More efficient memory utilisation Needs OS and TimesTen to be configured to use them Understand the difference between RANGE and HASH indexes (as explained later by Mark) OBI Aggregate Persistence only creates RANGE indexes, so you may need to create as HASH Use the appropriate TimesTen data types especially with Numbers/Integers e.g. use TT_TINYINT/TT_SMALLINT/TT_INTEGER/TT_BIGINT instead of NUMBER Use the ttimportfromoracle tool to help with this Use the Index Advisor and Explain Plan tools they are really good!

Peak Indicators Limited 12 Configuration Best Practices Continued Optimise your I/O throughput Store your TimesTen database on Flash Set LogBufMB = 1024 to increase log buffer size (for optimising data loads etc.) Keep up to date with TimesTen releases Significant performance improvements come in every release Everyone should be on 11.2.2.5.1 now Set TTC_TIMEOUT=0 on your clients so there is no timeout Especially important with Oracle BI Aggregate Persistence Make sure your tables are sufficiently analysed call ttoptupdatestats( owner.name', 1); after changes in data volume or adding new indexes

Peak Indicators Limited 13 Configuration Best Practices Continued Set RAM Policy to manual to ensure data is always loaded in-memory Avoids long startup time But remember to explicitly startup the database after e.g. a reboot You rarely need to set TEMPSIZE = PERMSIZE 400GB / 400GB for Exalytics is not mandatory Usually TEMPSIZE << PERMSIZE Use dssize command in ttisql to find high-water mark for sizing TEMPSIZE

Loading and Refreshing TimesTen Databases TimesTen database loaded, and refreshed, from main data source Data source is typically a data warehouse Or detail-level application databases Exalytics Summary Advisor automates the load / refresh process for aggregates Uses BI Server (Aggregate Persistence) as the ETL tool - Supports all OBIEE data sources - RPD integration Manages aggregate lifecycle Incremental refreshes using Summary Advisor can be inefficient Initial Load Incremental Refresh T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

Loading and Refreshing TimesTen Databases (cont) Various methods for manually loading TimesTen databases Including the ttimportfromoracle utility Need to consider various factors How hands-off you want the process to be The available time window for the refresh What tools you want to use - E.g. Oracle Data Integrator, DAC Whether the data source is Oracle, or non-oracle Is TimesTen being used with BI Applications Initial Load Incremental Refresh T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

TimesTen for Exalytics Data Loading Best Practices For Summary Advisor aggregates Table creation (DDL) and data load (DML) through SA Enable parallel index creation - opmn.xml config file Subsequent refreshes of the same tables Incremental load using POPULATE and INACTIVE_SCHEMAS logical SQL clauses - Still uses BI Server ETL, but no RPD editing + partial refresh - http://www.rittmanmead.com/2013/04/incremental-refresh-of-exalytics-aggregates-using-native-biserver-capabilities/ T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

TimesTen for Exalytics Data Loading Best Practices (cont) If loading TimesTen within the context of the BI Apps Consider using DAC 11g s Data Copy feature Replicates whole BI Apps DW tables into TimesTen - recommends optimal datatypes, compression etc. For detail-level, hot data replication from Oracle into TimesTen Use the ttimportfromoracle utility - Recommends optimal datatypes and compression clauses - Parallel data load of regular and compressed tables Important - plan for additional index analysis step after the data load based on actual query patterns - ttimportfromoracle replicates existing Oracle table indexes, may not reflect actual user queries For non-exalytics non-oracle source data, use ttisql, ttbulkcp or similar Or a full ETL tool such as Oracle Data Integrator - additional license cost T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

TimesTen Table Indexing Just like regular Oracle RDBMS tables, TimesTen tables benefit from indexing The Summary Advisor, and ttimportfromoracle, both create indexes on the tables they create ttimportfromoracle creates indexes based on the existing ones on the Oracle source Summary Advisor creates indexes based on hierarchy keys and attributes In most cases, you ll need to optimize these indexes to reflect real-world query patterns Can improve query performance significantly Avoids on-the-fly index creation - TmpHashScan and TmpRangeScan operations in query plans http://www.rittmanmead.com/2013/08/optimizing-timesten -for-exalytics-queries-using-the-timestens-index-advisor/ T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

TimesTen Indexing Best Practices Built-in utility for index optimization: TimesTen Index Advisor Start with the default created indexes Use Index Advisor to capture a representative workload Generate new index recommendations, and implement Update optimizer statistics Repeat until no new recommendations are generated Consider creating HASH indexes rather than default RANGE index for columns used in equality (=) joins Alter DDL to CREATE HASH INDEX... Can be 30%-40% faster than RANGE indexes for equi-joins and equality lookups Command> call ttindexadvicecapturestart(1,0); Command> call ttindexadvicecaptureend(1); Command> call ttindexadvicecaptureoutput(1); < 33, create hash index SALES_i6 on SH.SALES(CHANNEL_ID); > < 2, create hash index SALES_i10 on SH.SALES(PROD_ID); > < 1, create unique hash index SALES_i12 on SH.SALES(TIME_ID); > < 1, create hash index SALES_i12 on SH.SALES(TIME_ID); > < 16, create hash index PRODUCTS_i7 on SH.PRODUCTS(PROD_ID,PROD_CATEGORY); > < 1, create hash index PRODUCTS_i13 on SH.PRODUCTS(PROD_ID,PROD_SUBCATEGORY); > < 35, create hash index TIMES_i8 on SH.TIMES(TIME_ID,CALENDAR_YEAR); > < 1, create index TIMES_i11 on SH.TIMES(CALENDAR_YEAR); > < 8, create unique hash index CUSTOMERS_i9 on SH.CUSTOMERS(CUST_ID); > < 1, create hash index CUSTOMERS_i9 on SH.CUSTOMERS(CUST_ID); > T : +44 (0) 8446 697 995 E : enquiries@rittmanmead.com W: www.rittmanmead.com

Peak Indicators Limited 20 Compression Know when and when not to use it! Think of "Compression" as a space/memory saving feature which you may also give performance improvement The Compression feature is actually "data de-duplication There is no point using Compression on primary keys Never do Compression on decimal point numbers By default you will get a 4-byte "pointer size Use the MAXVALUES parameter to specify number of distinct values you might get a smaller 1-byte or 2-byte pointer size (will be more efficient) Compression is best suited for larger columns containing >4 bytes of text. If columns contain less than 4 bytes of text then Compression is not worthwhile Use the ttimportfromoracle tool to generate the optimal scheme

Program Agenda Introduction Presentation / Discussion Q & A 21 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Other TimesTen In-Memory Database Sessions Tuesday Wednesday Session / Time / Location Application-Tier In-Memory Database for Performance and High Availability 12:00 PM 1:00 PM Moscone North 131 Real-Life Stories: Extreme Performance with In-Memory Database Technology Customer Panel 1:15 PM - 2:15 PM Moscone South 252 Session / Time / Location Developing Applications to Take Advantage of In-Memory Database Technology 12:00 PM 1:00 PM Marriott Marquis - Salon 8 Visit us at the DEMOgrounds! Moscone South, Booths SL-011 and SL-012 22 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

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

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