SAPの最新技術基盤のご紹介
リアルタイムDWHを実現するエンタープライズプラットフォーム「SAP HANA」
SAPジャパン株式会社
2016年10月13日
SAP HANA Platform
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 3
SAP HANA 都市伝説
「SAP HANAって。。。。」
「新しいERPの製品名ですよね ? 」
「ERP専用のデータベースですよね ? 」
「SQL文が使用できない、って聞きました」
「特別なプログラム開発が必要なんですよね ? アバップとか何とかっていう、、、」
「インメモリ・データベースって。。。」
「サーバーがダウンするとデータが消えるんですよね ? 」
「データがメモリ上に載っているから速い、、、って当たり前ですよね ? 」
SAP HANA
SAP Business Warehouse powered by SAP HANA
SAP Business Suite powered by SAP HANA
SAP Simple Finance powered by SAP HANA
SAP S/4 HANA SAP BW/4 HANA
SAP SOH = SAP Business Suite powered by SAP HANA
2011 2012 2013 2014 2015 2016
5つのHANA
-Pure HANA (一般用途のデータベースとしてのHANA) -Business Suite HANA (Suite on HANA)
-S/4HANA
-Business Warehouse HANA (BW on HANA) -BW/4HANA
SAP HANA PLATFORM
[Streaming Analytics | Advanced Analytics | Smart Data Integration]
SAP S/4HANA Operational
Reporting
SAP BW/4HANA Historical Analysis
Suite On HANA Business Suite
HANA
BW On HANA Business Warehouse HANA
PURE HANA
•BO Suite
•Predictive Analytics
SAP HANAとは(DatabaseからPlatformへ)
•Other Company Tool
•Custom development
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 5
SAP HANAのライセンス
Any Application SAP Products
SAP HANA Platform
SAP HANA Platform
Application Service
Integration Service Processing Service
Database Service
Web Server JavaScript (XSJS,
Node.js) Fiori UX Graphic
Modeler
ALM
Application Lifecycle Management
Data Virtualization ELT &
Replication Hadoop
Integration Streaming
(CEP) Remote Data
Sync
ON-PREMISE | CLOUD | HYBRID
Spatial Graph Predictive Search Text
Analytics Planning Data
Enrichment Series Data
Function Libraries
Columnar
OLTP+OLAP Parallelization Advanced
Compression Multi-
tenancy
Multi-Tier Storage High Availability /
Disaster Recovery Open Standards
Data Modeling
Development Service
Administration Service
Business Suite Business Warehouse S4HANA
Big Data Service
HANA Vora Data Quality
Java
SAP HANA Database Services
SAP HANA Database Services
Database Service
Columnar OLTP+OLAP Parallelization Advanced
Compression Multi-tenancy Multi-Tier
Storage High Availability /
Disaster Recovery Open Standards
Data Modeling
情報をリアルタイムに
検索のためのデータベースチューニング不要
単一データで実行系と分析系の処理を実行
クラウド・オンプレミス、ハイブリッド環境に対応
高度なデータ圧縮技術とメモリサイズの制約にしばられないデータ容量
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 9
パーシスタンスレイヤー
HANAデータベースのストレージ管理、トランザクションログ管理、
システムリスタート時のリカバリー管理などを行う
• データボリューム
• データとUndoを保持するストレージ領域
• ログボリューム
• トランザクションログ(REDO)を保持するストレージ領域
• データベースの変更(トランザクション)ログを保存するエリア
同期、非同期によるディスクへの書き込み
• セーブポイント(非同期)
• メモリー上の変更データをデータボリュームに書き込む(デ フォルトで300秒ごとの遅延書き込み)
• コミット(同期)
• トランザクション確定のログエントリーを含むログバッファー 上のデータをログボリュームに書き込む
メモリー
ストレージ
データベース
ログボリューム
データボリューム
トランザクションログ (WAL)の書き出し
- Log Buffer FULL - Commit/Rollback
定期的な自動 セーブポイント
SAP HANA
UNDO DATA
REDO
サーバーがダウンするとデータが消えるんですよね ?
Log Buffer Row Store Column Store
ログセグメント ログセグメント ログセグメント
データがメモリ上に載っているから速い、、、って当たり前ですよね ?
仮想データモデル
モデリング、メタデータ定義
App/Report
Transform
仮想データモデル (VDM)
インフォメーション ビュー/メタデータ定義
Table 1
Primary Key Field 1 Field 2
Table 2
Primary Key Field 1 Field 2
Table ...
Primary Key Field 1 Field 2
SAP HANA
Raw Data
VS.
• 最終的に得たいデータの形式と実データ 形式に差異がある場合が多い
• フィールド項目名の統一などメタデータ の管理が必要
HANAではOLAP処理専用の実 行エンジン上で分析ビュー(従 来のELT)をon the flyで実行。
キューブなどの集計テーブルな どが不要
Dimension ...
Dimension Key Attribute 1 Attribute 2 Attribute ...
Table 1
Primary Key Field 1 Field 2 Field ...
Table 2
Primary Key Field 1 Field 2 Field ...
Table ...
Primary Key Field 1 Field 2 Field ...
CRM
Table 1 0100101 1011010 1110101 01110...
Table 2 0100101 1011010 1110101 01110...
Table ...
0100101 1011010 1110101 01110...
Facts
0100101 1011010 1110100 1010111 0101110.
..
Dim 1
0100101 1011010 1110100 1010111 0101110.
..
Fact Table
Primary Key Fact 1 Fact 2 Fact ...
Dimension 1
Dimension Key Attribute 1 Attribute 2 Attribute ...
Data Warehouse on Row based RDBMS
Dimension 2
Dimension Key Attribute 1 Attribute 2 Attribute ...
Dim 2
0100101 1011010 1110100 1010111 0101110.
..
Dim ...
0100101 1011010 1110100 1010111 0101110.
..
OLAP Cube, also: Info Cube
1. Extract 2. Transform
3. Load Report
従来のデータベース
従来のデータベースでは データの移動(集計や結合)を 伴うキューブの作成処理(い わゆるETL)が必要
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 13
インフォメーションビュー
インフォメーションビュー(or HANAビュー)
売上、業績など数値データを様々な切り口で集計し、複数の分析軸の相関を知るためのデータモデルを 提供する
インフォメーションビューに対してSQL、MDXにより各種操作を行う
多次元分析
多次元データベース
– 数値:売上、数量、人数、etc – 分析軸:顧客、店舗、商品、etc
操作
– ダイシング、スライシング、ドリルダウン、etc
例
– SAP Business Objects
– Excel、ピボットテーブルによるクロス集計
HANA Studio
HANA Developer Workbench
Integration Services
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 15
SAP HANA Platform
Integration Service
Data
Virtualization ELT &
Replication Hadoop
Integration Streaming
(CEP) Remote Data
Data Sync Quality
• サイロに配置されたデータを横断的にアクセス(仮想的にアクセス)
• 必要に応じてあらゆるタイプのデータをリアルタイムにリプリケーション
• ライブストリームデータを取得・分析し適切なストレージやダッシュボードに配信
• 多数のリモートデータベースとSAP HANAの同期(SQL Anywhere, UltraLite)
• Hadoopデータに対する複数のアクセスパス(Spark, Hive, HDFS, Map Reduce)
Smart Data Access (SDA)
- データの仮想化 -
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 17
スマートデータアクセス
次世代の論理EDWHアーキテクチャをサポートするデータ仮想化機能
HANAのOLAPビューの機能から使用可能
リモートソースへの変更に対応
ローカルテーブルのようにリモートデータへアクセスが可能
メリット
リモートソースへのリアルタイムアクセス
既存投資の活用
SAP HANAのアプリケーション開発機能の活用
パフォーマンス最適化と既存環境から円滑な移行
述語のプッシュダウン、他のデータベース上の各機能の補完などのクエリ の分析を含むスマートなクエリ処理
データのある場所によらず開発が可能
異なるデータソースのアクセスに特別な構文は不要
• データソース
Oracle 12c, MS SQL 2012, Teradata, DB2, Netezza
Hadoop – Hive (Hortonworks, Cloudera, MapR, etc.), Spark
SAP HANA
SAP Sybase ASE,IQ and MaxDB
SAP Sybase ESP, SQLA
Smart Data Access
システム(DB)が個別に存在した状態、、、
SAP HANA テーブル仮想
既存データベース
既存DBを生かしたプラットホームの構築
SAP HANA
Federation Adapter Framework
Virtual Access Layer Access Methods
Data Type Conversions
Driver Manager (unixODBC) ASE ODBC
Driver Teradata ..OD
BC Driver
ASE
Persistence Layer
(Repository & Catalog)
Analytical Model Federation Model HANAViews Base
Tables Virtual Tables
Query Processing
Federation Support Query Optimization
Remote Query Execution
TD
SAP HANA Studio
Federation Perspectives Modeler
Schema Management
Security Management
Administration Configuration
Query Monitoring
► クエリの最適化と実行
► リモートターゲットへ送 信可能なクエリのフラグ メントの特定
► データベース間の異なる 機能の補完
► Adapter frameworkによ るデータタイプの変換
► Driver managerによる特 定のドライバのロード
► Access methodによる HANAと他のクエリ処理コ ンポーネントとの統合
Added for HANA Federation
Smart Data Access
High level component design
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 19
Smart Data Accessのデモをご覧ください
データベース
SAP HANA (ドイツ)
デモ環境
DP Server/XS Engine
データベース
Oracle (日本)
DP Agent
JDBC
HANA Studio
ODBC
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 21
SAP HANA
Thank you
©2016 SAP SE or an SAP affiliate company. All rights reserved. Customer 23
© 2016 SAP SE or an SAP 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 or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epxfor additional trademark information and notices.
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 or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company 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.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward- looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.