SAP BW Columnstore Optimized Flat Cube on Microsoft SQL Server

Similar documents
Using SQL Server 2014 In-Memory Optimized Columnstore with SAP BW

Performance Verbesserung von SAP BW mit SQL Server Columnstore

R49 Using SAP Payment Engine for payment transactions. Process Diagram

Using SQL Server 2012 Column- Store with SAP BW

SAP BW powered by SAP HANA: Understanding the Impact of HANA Optimized InfoCubes Josh Djupstrom SAP Labs

Upgrade: SAP Mobile Platform Server for Windows SAP Mobile Platform 3.0 SP02

EMC: Managing Data Growth with SAP HANA and the Near-Line Storage Capabilities of SAP IQ

Ariba Procure-to-Pay Integration rapiddeployment

Cost-Effective Data Management and a Simplified Data Warehouse

Getting Started with the License Administration Workbench 2.0 (LAW 2.0)

Provisional Master Data in Integrated Business Planning for SAP Simple Finance An Example-Based How-To Guide

SFSF EC to 3 rd party payroll Integration Software and Delivery Requirements

Price and Revenue Management - Manual Price Changes. SAP Best Practices for Retail

Software and Delivery Requirements

SEPA in SAP CRM. Application Innovation, CRM & Service Industries. Customer

SAP HANA Live & SAP BW Data Integration A Case Study

Landscape Design and Integration. SAP Mobile Platform 3.0 SP02

Software and Delivery Requirements

SAP HANA Big Data Intelligence rapiddeployment

Data Integration using Integration Gateway. SAP Mobile Platform 3.0 SP02

FA7 - Time Management: Attendances/Absences/Overtime/Hajj Leave. Process Diagram

SAP BW 7.4 Real-Time Replication using Operational Data Provisioning (ODP)

SAP Business Intelligence Adoption V6.41: Software and Delivery Requirements. SAP Business Intelligence Adoption February 2015 English

How-To Guide SAP Cloud for Customer Document Version: How to Perform Initial Load of data from SAP ERP to SAP Cloud for Customer

SAP Business One Hardware Requirements Guide

SAP Cloud for Customer integration with SAP ERP: Software and Delivery Requirements

SAP Payroll Processing control center rapiddeployment

The Arts & Science of Tuning HANA models for Performance. Abani Pattanayak, SAP HANA CoE Nov 12, 2015

In-Store Merchandise and Inventory Management. SAP Best Practices for Retail

SAP MII for Manufacturing rapid-deployment solution: Software Requirements

GR5 Access Request. Process Diagram

SBOP Analysis 2.1, edition for Microsoft Office Additional PAM Information

SAP Business Intelligence Adoption V7.41:Software and Delivery Requirements. SAP Business Intelligence Adoption August 2015 English

SAP HANA SPS 09 - What s New? HANA IM Services: SDI and SDQ

Streamline Processes and Gain Business Insights in the Cloud

SAP 3D Visual Enterprise Rapid-Deployment Solution

Multi Channel Sales Order Management: Mail Order. SAP Best Practices for Retail

Installation Guide: Agentry Device Clients SAP Mobile Platform 2.3

ABAP SQL Monitor Implementation Guide and Best Practices

IBM DB2 specific SAP NetWeaver Business Warehouse Near-Line Storage Solution

SAP Solution Manager: The IT Solution from SAP for IT Service Management and More

Columnstore Indexes for Fast Data Warehouse Query Processing in SQL Server 11.0

SAP Business Warehouse Powered by SAP HANA for the Utilities Industry

CBW NLS IQ High Speed Query Access to Database and Nearline Storage

Near-line Storage with CBW NLS

Cut Costs and Improve Agility by Simplifying and Automating Common System Administration Tasks

InfiniteInsight 6.5 sp4

SAP BusinessObjects Business Intelligence Suite Document Version: 4.1 Support Package Patch 3.x Update Guide

Real-Time Reconciliation of Invoice and Goods Receipts powered by SAP HANA. Stefan Karl, Finance Solutions, SAP ASUG Presentation, May 2013

Setting up Visual Enterprise Integration (WM6)

Rapid database migration of SAP Business Suite to SAP HANA (V4.10): Software and Delivery Requirements. SAP HANA November 2014 English

Configuration (X87) SAP Mobile Secure: SAP Afaria 7 SP5 September 2014 English. Building Block Configuration Guide

How-To Guide SAP Cloud for Customer Document Version: How to Configure SAP HCI basic authentication for SAP Cloud for Customer

Partner Certification to Operate SAP Solutions and SAP Software Environments

SAP BusinessObjects Analysis, edition for Microsoft Office Document Version: What's New Guide

How to Archive Data from SAP NetWeaver BW to SAP Sybase IQ as Near line Storage

SAP HANA SPS 09 - What s New? Administration & Monitoring

Downport to SAP GUI for documents Access Control Management

Enabling Better Business Intelligence and Information Architecture With SAP Sybase PowerDesigner Software

Integration capabilities of SAP S/4HANA to SAP Cloud Solutions

Ignite Your Creative Ideas with Fast and Engaging Data Discovery

SAP BusinessObjects Cloud

K88 - Additional Business Operations for Loans. Process Diagram

Enabling Better Business Intelligence and Information Architecture With SAP PowerDesigner Software

CUSTOMER Presentation of SAP Predictive Analytics

SAP Business One, version for SAP HANA Platform Support Matrix

SAP NetWeaver Identity Management Identity Services Configuration Guide

K75 SAP Payment Engine for Credit transfer (SWIFT & SEPA) Process Diagram

How-To Guide SAP NetWeaver Document Version: How To Guide - Configure SSL in ABAP System

CBW NLS High Speed Query Access to Database and Nearline Storage

Mobile app for Android Version 1.2.x, December 2015

PSM-PPM Integration SAP Product Structure Management

SAP Operational Process Intelligence Security Guide

Using Database Performance Warehouse to Monitor Microsoft SQL Server Report Content

SAP BW on HANA & HANA Smart Data Access Setup

SM250 IT Service Management Configuration

SAP Best Practices for SAP Mobile Secure Cloud Configuration March 2015

HP Quality Center. Upgrade Preparation Guide

Citrix Receiver. Configuration and User Guide. For Macintosh Users

Formulate Winning Sales and Operations Strategies Through Integrated Planning

Run Better in Weeks to Address Current and Future Business Needs

SAP BusinessObjects Business Intelligence 4.1 One Strategy for Enterprise BI. May 2013

How to Configure an Example SAP Cloud Applications Studio (PDI) Solution for SAP Cloud for Customer

SAP Working Capital Analytics Overview. SAP Business Suite Application Innovation January 2014

Developing Microsoft SQL Server Databases (20464) H8N64S

Your Intelligent POS Solution: User-Friendly with Expert Analysis

Run SAP Risk Management in Utilities to Get Business Value Fast

How To Balance In Sap Bw

Open Items Analytics Dashboard System Configuration

SAP HANA Client Installation and Update Guide

SAP BW on HANA : Complete reference guide

CBW NLS ADK-based Nearline Storage Solution

A Few Cool Features in BW 7.4 on HANA that Make a Difference

BW Workspaces Use Cases

PBS archive add on CBW

Mobile app for ios Version 1.10.x, August 2014

Integration Capabilities of SAP S/4HANA to SAP Cloud Solutions

Transcription:

SAP BW Columnstore Optimized Flat Cube on Microsoft SQL Server Applies to: SAP Business Warehouse 7.4 and higher running on Microsoft SQL Server 2014 and higher Summary The Columnstore Optimized Flat Cube is an alternative cube design that is available as of SAP BW 7.4 SP 8 on Microsoft SQL Server. It uses the same simplified database structures as the HANA Optimized Cube, such as: One fact table only (no separate f-fact and e-fact tables) No dimension tables, which results in simplified BW queries and reduced disk space usage Simplified administration and improved performance for Inventory Cubes Since the Columnstore Optimized Flat Cube requires a writeable columnstore, it is only available as of SQL Server 2014. Author: Company: Martin Merdes Microsoft Created on: March 2015 Author Bio Martin Merdes is a Senior Software Engineer at Microsoft. Since 1996 he has been working in different technical functions for Microsoft at SAP Germany: Support Engineer, Senior Consultant, Technical Account Manager, Premier Field Engineer and Software Development Engineer. Since 2009 he is responsible for the porting of SAP BW on Microsoft SQL Server. 1

Table of Contents Overview... 3 Prerequisites... 4 SQL Server... 4 SAP BW... 4 Using the Flat Cube... 4 Benefits... 5 Creating a Flat Cube... 6 Checking cube type... 6 Converting a Flat Cube... 7 Related Content... 9 Copyright... 10 2

Overview The Columnstore Optimized Flat Cube is an alternative cube design, which is available as of SAP BW 7.4 SP 8 on Microsoft SQL Server. It uses the same simplified database structures as the HANA Optimized Cube. Data Warehouse systems typically store data in a Star Schema. This has always been the case also on non-sap systems. A Star Schema consists of dimension tables grouped around a central fact table (resulting in a star): Classic Star Schema (Non-SAP) For performance reasons, there is typically a compound index on all dimensions of the fact table. This restricts the maximum number of dimensions of a cube to the maximum number of columns in an index. For rowstore indexes, the SAP Data Dictionary allows a maximum of 16 columns. Therefore, SAP did not use this simple star schema in SAP BW. SAP BW Extended Star Schema (rowstore optimized) A dimension in a data warehouse, is called a characteristic in SAP BW. Since 16 characteristics are typically not sufficient for an SAP BW Cube, an additional layer was introduced: SAP BW Dimensions. By grouping characteristics in dimensions, an SAP BW cube can include hundreds of characteristics. However, the additional dimension layer results in additional joins for SAP BW queries. A dimension having only one characteristic can be defined as a Line Item Dimension in SAP BW. In this case SAP BW directly joins the characteristic with the fact tables (as for characteristic C5 in the example below). For improving query performance in the rowstore, SAP BW contains a second adaption of the Star Schema: two fact tables. While the f-fact table is optimized for data load, the e-fact table is optimized for reporting. The Star Schema adopted in SAP BW is often called SAP BW Extended Star Schema. Flat Cube (columnstore optimized) The optimizations of the SAP BW Extended Star Schema were introduced for optimizing the rowstore. When using the columnstore they are no longer necessary. There is no limitation on the number of index columns for a columnstore index. The clustered columnstore index contains all columns of the fact table. Therefore, SAP retired the Extended Star Schema starting with HANA. The resulting schema looks like a typical Star Schema, but SAP found another name for it: HANA Optimized Flat Cube. For other database platforms the new schema is simply called a Flat Cube. Actually, the Flat Cube still contains a single dimension: the packet dimension. It is used for fast (logical) request deletion. However, all other dimensions are gone with the Flat Cube. Unfortunately there is no consistent naming convention in the SAP community for cube schemas: The newest schema is called Columnstore Optimized Flat Cube, HANA Optimized Cube or simply Flat Cube. Indeed it is identical with the classical Star Schema outside SAP. The only difference is the naming convention: What is called a dimension outside SAP is called a characteristic in SAP BW. Since the SAP BW Extended Star Schema has been used in SAP BW for more than a decade, it is often also called Classical Star Schema or simply Star Schema. To distinguish from a Flat Cube, it is sometimes also called Non-Flat Cube 3

Prerequisites The Columnstore Optimized Flat Cube requires additional SAP BW code. SAP Note 2114876 always contains the up-to-date prerequisites. The documentation and known issues are listed in SAP Note 2116639. Additional code corrections are maintained in SAP Note 2091520. As at March 2015, you have to install the following software components: SQL Server The minimum required SQL Server version is Cumulative Update 5 (CU 5) of SQL Server 2014. However, we recommend installing the newest CU and service pack, once available. You can download the latest SQL Server patches from http://technet.microsoft.com/en-us/sqlserver/ff803383.aspx. SAP BW The Flat Cube is fully supported as of SAP BW 7.4 SP 10. It also runs on SAP BW 7.4 SP 8 and SP 9 if the correction instructions of SAP Note 2029797 have been applied. In this case you can convert Non-Flat Cubes to Flat Cubes and vice versa. However, you cannot directly create a Flat Cube. The checkbox Flat Infocube in the dialog box Create Infocube is only available as of SAP BW 7.4 SP10. Using the Flat Cube Once you have created a Flat Cube, you can use it just as a Non-Flat Cube. There is no need to change existing BW queries or BW process chains. However, there are a few restrictions: Aggregates are not possible for a Flat Cube A BIA index is not possible for a Flat Cube BW partitioning (of the e-fact table) is not possible BW Real-Time Cubes are not supported for Flat Cubes on Microsoft SQL Server You can decide cube-by-cube which cube type to use. You can convert a Non-Flat Cue to a Flat Cube and vice versa. If you see the need for aggregates on a particular Flat Cube, you can convert this cube back to a Non-Flat Cube. Although there is no e-fact table any more, you can still use BW cube compression. This also reduces the number of rows for a Flat Cube. The Reference Points of Inventory Cubes are also only available, if you perform BW cube compression. Since the Flat Cube is using the writeable columnstore index, you should follow the same recommendations as for Non-Flat Cubes with writeable columnstore index, in particular: Keep database index statistics up-to-date (by including the process chain type Construct Database Statistics in the BW process chains containing a Data Transfer Process) Perform columnstore rowgroup compression (by including the process chain type Generate Index in the BW process chains containing a DTP) 4

Benefits The absence of the dimension tables in a Flat Cube has many advantages Reduced disk space requirements In SAP BW there are several indexes on the dimension tables. On Microsoft SQL Server, the dimension tables always use b-tree indexes, even for columnstore cubes. Therefore the space usage of the dimension tables is significant. When using the Flat Cube you can save the disk space for the dimension tables. Improved query performance With the Flat Cube an SAP BW query might still contain some joins (for attributes and hierarchies), but the joins for all dimension tables (except the packet dimension) are gone. Therefore, queries are simpler and faster, compared with Non-Flat columnstore cubes. Improved data load performance Since there is no need to create DIMIDs, the data load into a Flat Cube is typically faster compared with a Non-Flat Columnstore Cube. However, this is not always the case. When reloading the same data into a Non-Flat Cube, there is no need to create DIMIDs. Furthermore, the fact table of a Flat Cube contains more columns: one column per characteristic instead of one column per dimension. The disk space usage of an SAP BW cube depends on may factors: The used cube type, number of dimensions, characteristics, and key figures. The following diagram shows the total disk space usage (fact table and dimension tables) of a sample cube using different cube types: 1. BW Cube using rowstore with no database compression 2. BW Cube using rowstore with PAGE compression 3. BW Cube using read-only columnstore on e-fact table 4. BW Cube using columnstore on f-fact and e-fact table 5. Flat Cube 38,179 MB 40,000 MB 35,000 MB 30,000 MB 25,000 MB 18,354 MB 20,000 MB 15,000 MB 8,501 MB 10,000 MB 4,340 MB 2,244 MB 5,000 MB Compression: NONE Compression: PAGE Columnstore: Read-only Columnstore: R/W Flat Cube 0,000 MB The sample cube contains 100,000,000 rows (with 90% in the e-fact table). The cube has 38 BW Characteristics, 11 BW Dimensions and 10 BW Key Figures 5

Creating a Flat Cube As of SAP BW 7.4 SP 10 you can choose the Flat Cube schema when creating a new cube simply by selecting the check box Flat InfoCube: If you want to create a Real-Time Cube, you have to select the check box Real Time in the dialog window above. However, it is not recommended to create a Real-Time Flat Cube: Do not select the check boxes Real Time and Flat InfoCube at the same time. In a Real-Time Cube, data is not loaded by means of BW process chains. Therefore there is no way to include the columnstore rowgroup compression during data load. This results in open columnstore rowgroups and poor query performance. You should convert any accidentally created Real-Time Flat Cube to a Non-Flat Cube as described below. Checking Cube Type In transaction RSA1 you can easily figure out whether an existing cube is a Flat Cube or not. A Flat Cube has the cube subtype Flat InfoCube: 6

Converting a Flat Cube You can use the BW repartitioning framework for converting a Non-Flat Cube to a Flat Cube and vice versa: In SAP transaction RSA1, right-click the cube and choose Additional Functions Repartitioning in the context menu. The conversion is not simply an index creation. DIMIDs have to be converted to SIDs. Depending on the hardware resources, this can take several hours for cubes having billions of rows. On our test system running on Microsoft Azure it took less than an hour for a cube having 100,000,000 rows. The Flat Cube conversion always runs as a batch job. This job calls dialog work processes using RFCs. By default, only 3 dialog processes are used. You can decrease the time needed for the conversion by configuring (many) more dialog processes using RSADMIN parameter QUERY_MAX_WP_DIAG. The same parameter also impacts BW repartition runs. However, it generally does not help to increase QUERY_MAX_WP_DIAG if there are not enough free dialog work processes. Before you start the conversion to an Inventory Flat Cube, you have to confirm that all Historical Movements are already compressed: The reason for this check is the following: For Inventory Cubes you have to load Historical Movements in a separate request. The data transfer process (DTP) is identical for Historical Movements and normal transactional data. You only have to make sure that requests containing Historical Movements need a special option for BW cube compression: No Marker Update 7

This has changed for Flat Cubes. There is no longer a special option in BW cube compression. Instead, requests with Historical Movements are already marked during DTP: Due to this functional change, it is not allowed to convert a Non-Flat Cube to a Flat Cube as long as there are uncompressed Historical Movements in the cube. A Flat cube uses fixed request IDs 0, 1 and 2. Therefore, you cannot convert a Non-Flat Cube to a Flat Cube, if request ID 2 is already used. In this case the cube conversion asks you to compress the first request (with ID 2) and restart the conversion again. The conversion to Flat Cube runs in separate steps. The original cube is not touched before the step SET_READ_LOCK is reached. If there is any failure in any step before, you can either restart the conversion request or simply delete it. Be careful: This is not the case for any step after SET_READ_LOCK or for any step in the conversion to Non-Flat Cube. Deleting such a request could result in data loss! 8

Related Content Columnstore Indexes Described: http://msdn.microsoft.com/en-us/library/gg492088.aspx SAP Note 2116639 SQL Server 2014 Columnstore documentation SAP Note 2114876 Release Planning SAP BW for SQL Server Columnstore SAP Note 2029797 Support for Flat Cube on Microsoft SQL Server SAP Note 1949486 SQL Server 2014 column-store support for SAP BW Update Center for Microsoft SQL Server: http://technet.microsoft.com/en-us/sqlserver/ff803383.aspx SAP BW issues in blog "SAP On SQL Server": http://blogs.msdn.com/b/saponsqlserver/archive/tags/bw/ SAP Community Network "SAP On SQL Server": http://scn.sap.com/community/sqlserver 9

Copyright 2015 SAP SE SE or an SAP SE affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP SE and its affiliated companies ( SAP SE Group ) for informational purposes only, without representation or warranty of any kind, and SAP SE Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP SE and other SAP SE products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices. 10