Dec.16.2017 PUBLIC
7 DB
() SAP HANA
SAP
2PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA SAP HANA, express edition
SAP HANA
SAP HANA
SAP HANA
SAP HANA
SAP HANA, express edition
3PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
- SAP HANA Platform
SAP HANA
- SAP HANA, express edition
PC-SAP HANA, express edition
- SAP HANA
- SAP HANA
- OS
(Multitenant Database Container)
-
- HTAP Translytical Processing ( )
-
- - SAP HANA Transaction Isolation
SAP HANA
- Smart Data Access-
- SAP HANA Oracle
- Smart Data Integration-
- SAP HANA Oracle -
SAP HANA
- Advanced Analytical Processing
- Predictive Analysis Library (PAL)
- PAL-
- SAP HANA
- SAP HANA
-
- SAP HANA
4PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA Platform ++
SAP
OLTP + OLAPONE Open Platform ONE Copy of the Data
or * :
In-Memory/on Disk
Relational
SAP Vora
Graphic Modeler
Series
Data Graph
Document
Store
Object Storage
(Amazon S3, Azure Blob Storage)
Hadoop
(Any Hadoop,
Azure Data Lake)
3rd party Data
Source/Target
SAP Data Hub
Cockpit
Pipeline
Security &
Governance
Data Share
DATABASE MANAGEMENT
Web Server JavaScript
Graphic
Modeler
Data Virtualization ETL & Replication
Columnar
OLTP+OLAP
Multi-Core &
Parallelization
Advanced
Compression
Multi-tenancy Multi-Tier
Storage
Graph Predictive Search
Data
Quality
Series
Data
Business
Functions
Hadoop &
Spark Integration
Application Lifecycle
Management
High Availability &
Disaster Recovery
OpennessData
Modeling
Admin &
Security
Remote
Data Sync
Spatial
Text
Analytics
Fiori UX
APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING
SAP HANA Platform
Streaming
Analytics
Machine
Learning
5PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP ranked as a LEADER
The Forrester Wave™: Translytical Data Platforms, Q4 2017
SAP
Translytical Data Platforms Wave
SAP 18 5/5
The Forrester Wave™: Translytical Data Platforms, Q4 2017,Noel Yuhanna
and Mike Gualtieri with Gene Leganza and Jun Lee , 28 November 2017
Read the full report
"The Forrester Wave™ is copyrighted by Forrester Research, Inc. Forrester and Forrester Wave™ are trademarks of Forrester Research, Inc. The Forrester Wave™ is a graphical representation of
Forrester's call on a market and is plotted using a detailed spreadsheet with exposed scores, weightings, and comments. Forrester does not endorse any vendor, product, or service depicted in the
Forrester Wave. Information is based on best available resources. Opinions reflect judgment at the time and are subject to change."
• Architecture
• Data management
• Data types
• Development tools
• Data modeling
• Transactions
• Analytical queries
• Advanced analytics
• Streaming
• Data Security
• Performance features
• Ability to execute
• Roadmap
• Implementation support
• Product revenue
• Install base
• Market awareness
• Partnerships
SAP HANA
/ / SAP HANA, express edition
7PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA, express edition
§
( ) SAP HANA
§
§ SAP HANA
SAP HANA, express edition
8PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA, express edition
SAP HANA
§ 32 GB
( )
§
–
( 16 GB )
– SAP Cloud Appliance Library(CAL)
(AWS or Azure)
– Public Cloud (AWS, Azure, GCP …)
§ SAP Community
§ 128 GB
( )
§
– 128 GB
–
§ SAP
§ JDBC, ODBC, .Net
§ SAP HANA
§ PC
9PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
? SAP HANA, express edition
1. SAP Developer Center SAP HANA, express
edition Download Manager
https://www.sap.com/japan/developer/topics/sap-hana-express.html
2. (
or )
* 16GB
3. SAP HANA, express edition
4. PC
&
Ÿ SAP Cloud Appliance Library(CAL)
SAP
http://cal.sap.com
* *
Ÿ /Market Place
SAP HANA, express edition *
* 2017.12
10PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA, express edition
§ SUSE Linux Enterprise Server (SLES) for SAP
Red Hat Enterprise Linux (RHEL) for SAP SAP
HANA, express edition
§ ( )SAP HANA XSA (Extended Application
Services, advanced model)
§ Windows Mac SAP HANA, express edition
SLES for SAP
§ :
– SAP HANA server only
– SAP HANA server + application (SAP HANA XSA)
11PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA, express edition 2
SAP HANA
express edition
server only
SAP HANA
express edition
server + application
/
SQL
hdbsql
SAP HANA studio
(Eclipse + SAP HANA plugin)
SAP Web IDE
(based on XSA)
SAP HANA, express edition
SQL, JDBC/ODBC, ADO.Net, HTTP(s) (REST/OData), Web Sockets
(MDC)
SAP HANA
data integration
* SDI
DB DB DB
Web based Development
Workbench (based on XSC)
SAP HANA cockpit
(based on XSA)
server only server + application
Extended Application Services, advanced model
Node.js / XSJS BYO RuntimeJava
(SDA)
ETL (SDI)
CDC based
Replication (SDI)
12PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
PC SAP HANA, express edition
( )
https://www.sap.com/japan/developer/topics/sap-hana-express.html
13PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
PC SAP HANA, express edition
SAP HANA, express edition Download Manager
Mac (Java 8 )
* OS
14PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
PC SAP HANA, express edition
SAP HANA, express edition
* Mac
Server only + application
+ application 24GB
2
15PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
PC SAP HANA, express edition
SAP HANA, express edition ( )
16PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
DATABASE MANAGEMENT
Web Server JavaScript
Graphic
Modeler
Data Virtualization ETL & Replication
Columnar
OLTP+OLAP
Multi-Core &
Parallelization
Advanced
Compression
Multi-tenancy Multi-Tier
Storage
Graph Predictive Search
Data
Quality
Series
Data
Business
Functions
Hadoop &
Spark Integration
Application Lifecycle
Management
High Availability &
Disaster Recovery
OpennessData
Modeling
Admin &
Security
Remote
Data Sync
Spatial
Text
Analytics
Fiori UX
APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING
SAP HANA Platform
Streaming
Analytics
SAP HANA, express edition
OLTP + OLAPONE Open Platform ONE Copy of the Data
DATABASE MANAGEMENT
Web Server JavaScript
Graphic
Modeler
Data Virtualization ETL & Replication
Columnar
OLTP+OLAP
Multi-Core &
Parallelization
Advanced
Compression
Multi-tenancy Multi-Tier
Storage
Graph Predictive Search
Data
Quality
Series
Data
Business
Functions
Hadoop &
Spark Integration
Application Lifecycle
Management
High Availability &
Disaster Recovery
OpennessData
Modeling
Admin &
Security
Remote
Data Sync
Spatial
Text
Analytics
Fiori UX
APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING
SAP HANA, express edition
Streaming
Analytics
SAP HANA
18PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA
OS ( ):
SID( 3 ) SAP HANA, express edition HXE
SAP HANA OS SID <sid>adm
SAP HANA, express edition ”HXEHana1” OS
(* )
SAP HANA :
SAP HANA :
hxeadm> HDB start
hxeadm> HDB stop
19PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
OS
SAP HANA :
ps :
SAP HANA nameserver indexserver
hxeadm> HDB info
hxeadm> ps -fu hxeadm
UID PID PPID C STIME TTY TIME CMD
hxeadm 1488 1 0 21:24 ? 00:00:00 /usr/lib/systemd/systemd –user
hxeadm 1490 1488 0 21:24 ? 00:00:00 (sd-pam)
hxeadm 1573 1 0 21:24 ? 00:00:00 /usr/sap/HXE/HDB90/exe/sapstartsrv pf=/usr/sap/HXE/SYS/profile
hxeadm 1662 1 0 21:24 ? 00:00:00 sapstart pf=/usr/sap/HXE/SYS/profile/HXE_HDB90_hxehost
hxeadm 1706 1662 0 21:24 ? 00:00:01 /usr/sap/HXE/HDB90/hxehost/trace/hdb.sapHXE_HDB90 -d -nw -f /u
hxeadm 1727 1706 5 21:24 ? 00:00:40 hdbnameserver
hxeadm 1906 1706 5 21:24 ? 00:00:38 hdbcompileserver
hxeadm 1937 1706 17 21:24 ? 00:01:57 hdbindexserver -port 39003
hxeadm 1939 1706 4 21:24 ? 00:00:29 hdbscriptserver -port 39040
hxeadm 2375 1706 3 21:25 ? 00:00:19 hdbwebdispatcher
hxeadm 2861 2858 0 21:35 ? 00:00:00 sshd: hxeadm@pts/0
hxeadm 2862 2861 0 21:35 pts/0 00:00:00 –bash
hxeadm 2923 2862 0 21:35 pts/0 00:00:00 ps -fu hxeadm
20PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA(
SAP HANA (MDC)
compileserver
scriptserver
webdispatcher
nameserver
indexserver
preprocessor
( MDC(System DB)
DB
(MDC(Tenant DB)
(
(
OS
hdbindexserver indexserver
hdbnameserver nameserver
hdbpreprocessor preprocessor
hdbcompileserver compileserver
hdbscriptserver scriptserver
SAP Web hdbwebdispatcher webdispatcher
SAP start service sapstartsrv sapstartsrv
SQLScript (
AFL(
XS (HTTP(S) (
(2 (
*
21PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Schema X
Tenant DB
SAP HANA Instance
App X
Schema X
App Y
Tenant DB
HW
OS
System DB
§ SID
§
§ (CPU )
§
§
§
§ SAP HANA 2.0 SPS01 MDC
§ System DB ( )
( Tenant DB )
SAP HANA
(Multitenant Database Container)
22PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA (hdbsql )
hdbsql SAP HANA :
System DB :
-j: SQL OS
-m:
-z: off
Tenant DB (HXE)
hxeadm> hdbsql -n <host> -i <instance#> -d <db> -u <user> -p <password> [options]
hxeadm> hdbsql -n localhost -i 90 -d systemdb -u system -p <password> -j -m -z
hxeadm> hdbsql -n localhost -i 90 -d hxe -u system -p <password> -j -m -z
23PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA (SAP HANA studio)
eclipse SAP HANA
https://www.sap.com/developer/how-tos/2016/09/hxe-howto-eclipse.html
Add System...
24PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA (SAP HANA studio)
System DB :
25PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA (SAP HANA studio)
Tenant DB (HXE) :
26PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
*
SAP HANA =
=
•
• *Undo
• ( )
• ( = ) REDO
(WAL)
REDO
§
• ( )
• (
300 * )
• ( )
• =
REDO (WAL)
- Log Buffer FULL
- Commit/Rollback (Shadow Paging)
SAP HANA
UNDO DATAREDO
Log Buffer Row Store Column Store
27PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA
”DATA” ”LOG”
SAP HANA ” ”
28PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
: ?
1: HANAO Tenant DB HXE
2:
3: (indexserver)
hxeadm> hdbsql -n localhost -i 90 -d hxe -u hanao -p <password> -j -m -z
hdbsql hxe=> CREATE COLUMN TABLE HANAO_TAB (ID INT);
hxeadm> date;ls -l /hana/shared/*/HXE/mnt00001/hdb00002.00003/|grep -v __DO_NOT
29PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
1: INSERT
2:
hdbsql hxe=> INSERT INTO HANAO_TAB VALUES (1);
hdbsql hxe=> COMMIT;
?
30PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
?
1: SAVEPOINT SYSTEM è hdbsql ¥c -u system -p <password>)
2:
hdbsql hxe=> ALTER SYSTEM SAVEPOINT;
(
31PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
HTAP Translytical Processing ( )
SAP HANA( )
DML Consistent View
( )
INSERT/UPDATE/DELETE Append (
)
Read /
DELETE
Isolation Level(MVCC)
( )
( )
( )
32PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
+
•
• +
•
• Prefix Encoding
•
• Run Length Encoding (RLE)
• ( ( +
• Linear Run Length Encoding (LRLE)
• Series
• Cluster Encoding
• ) 1
• Sparse Encoding
•
• Indirect encoding
• )
Order Country Product Sales
456 France corn 1000
457 Italy wheat 900
458 Spain rice 600
459 Italy rice 800
460 Denmark corn 500
461 Denmark rice 600
462 Belgium rice 600
463 Italy rice 1100
… … … …
Logical Table
1 corn
2 rice
3 wheat
1
3
2x2
1
3x2
…
1
3
2
2
1
2
2
2
…
33PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Name
Miller
John
Millman
Zsuwalski
Baker
Miller
Jones
Miller
Johnson
John
Millman
Name
4
1
5
N
0
4
3
4
2
1
5
Value ID
0 Baker
1 John
2 Johnson
3 Jones
4 Miller
5 Millman
N Zsuwalski
…
Value ID
SAP HANA
34PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Prefix Encoding
4 4 4 4 4 4 4 4 3 5 3 1 1 0Uncompressed
8 4 3 5 3 1 1 0Prefixed Encoded
Run-Length Encoding
5 5 5 4 4 4 4 3 3 2 2 2 2 2Uncompressed
5 4 3 2Run-Length Encoded
0 3 7 9
Cluster Encoding
4 4 4 4 4 4 4 3 3 0 0 0Uncompressed
4 4 4 3 3 0Cluster Encoded
N=4, Cluster size = 3
Bit Vector 1 1 0 1 1
Sparse Encoding
4 4 4 3 3 1 0 0 0 4 4 4 4 0Uncompressed
4 3 3 1 0 0 0 0Cluster Encoded
Bit Vector
1
1 1 1 0 0 0 0 0 0 1 1 1 1 0
SAP HANA
35PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Indirect Encoding
2 1 576 9 1 2 2 9 88 21 3 19 46 79 45 13 9 6 9 6 3 6 9 3Uncompressed
Compressed
Block size = 8
1 0 3 2 0 1 1 2 88 21 3 19 46 79 45 13 2 1 2 1 0 1 2 0
0 1
1 2
2 9
3 576
0 3
1 6
2 9
Dictionary for block#1 Dictionary for block#3
block#2
SAP HANA
36PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
1: :
2: off:
3: IMPORT ( )
CREATE COLUMN TABLE SAMPLE_TABLE (SEX NVARCHAR(1));
ALTER TABLE SAMPLE_TABLE DISABLE AUTOMERGE;
hxeadm> cat /tmp/data.csv | head -n 5
男
女
女
女
女
37PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
( )
3: IMPORT
4:
IMPORT FROM CSV FILE '/tmp/data.csv' INTO SAMPLE_TABLE
WITH RECORD DELIMITED BY '¥n'
FIELD DELIMITED BY ','
THREADS 2
BATCH 10000;
38PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
( )
5: ( )
6:
MERGE DELTA OF SAMPLE_TABLE;
(0 à 252,363)
39PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
1: ( )
2:
MERGE DELTA OF SAMPLE_TABLE WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'ON');
(252,363 à 2,443)
”DEFAULT” ”RLE”
40PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
Q1
: (R)#1
REPEATABLE READ
: (R)#2
READ COMMITTED
: (W)#3 TX1 U1
Q2 Q3
Q4 Q5 Q6
TX2 U2 U3 TX3 U4 U5
U6
I1 Qx
Ux : :
Ix :
SAP HANA
READ COMMITTED MVCC :
:
REPEATABEL READ MVCC
: :
SERIALIZABLE MVCC
: :
:
SAP HANA
REPEATABLE READ
SERIALIZABLE
:
:
41PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
1: HANAO Tenant DB HXE :
2:
3: 1
hxeadm> hdbsql -n localhost -i 90 -d hxe -u hanao -p <password> -j -m -z
hdbsql hxe=> CREATE COLUMN TABLE TX_TEST
> (ID INT
> ,STR1 NVARCHAR(10)
> ,STR2 NVARCHAR(10)
> ,QTY INT);
hdbsql hxe=> INSERT INTO TX_TEST VALUES (1, 'テスト1-1', 'テスト1-2', 1);
hdbsql hxe=> COMMIT;
42PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
? ?:
1: (SESSION#1) ( COMMIT)
2: (SESSION#2) ( COMMIT)
hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-1' WHERE ID=1;
hdbsql hxe=> UPDATE TX_TEST SET STR2='テスト1-2-1' WHERE ID=1;
SESSION#2 SESSION#1
SAP HANA
43PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
SAP HANA MVCC Snapshot Isolation READ COMMITTED :
1: (SESSION#1) ( COMMIT)
2: (SESSION#2)
3: (SESSION#1)
4: (SESSION#2)
hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-2' WHERE ID=1;
hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1;
hdbsql hxe=> COMMIT;
hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; #1
44PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
SAP HANA REPEATABLE READ :
1: (SESSION#1) REPEATABLE READ
2: (SESSION#1)
3: (SESSION#2) (COMMIT )
4: (SESSION#1) &
hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1;
hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-3' WHERE ID=1;
hdbsql hxe=> COMMIT;
hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1;
hdbsql hxe=> COMMIT;
hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1;
3 SESSION#2
3 SESSION#2
45PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
SAP HANA REPEATABLE READ :
1: (SESSION#1) REPEATABLE READ
2: (SESSION#1)
3: (SESSION#2) (COMMIT )
4: (SESSION#1) &
hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
hdbsql hxe=> SELECT STR1 FROM TX_TEST;
hdbsql hxe=> INSERT INTO TX_TEST VALUES (2, 'テスト2-1', 'テスト2-2', 2);
hdbsql hxe=> COMMIT;
hdbsql hxe=> SELECT STR1 FROM TX_TEST;
hdbsql hxe=> COMMIT;
hdbsql hxe=> SELECT STR1 FROM TX_TEST; 3 SESSION#2
3 SESSION#2
46PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Transaction Isolation
SAP HANA REPEATABLE READ :
1: (SESSION#1) REPEATABLE READ
2: (SESSION#1)
3: (SESSION#2) (COMMIT )
4: (SESSION#1)
hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
hdbsql hxe=> SELECT QTY FROM TX_TEST WHERE ID=1;
hdbsql hxe=> UPDATE TX_TEST SET QTY=QTY+1 WHERE ID=1;
hdbsql hxe=> COMMIT;
hdbsql hxe=> UPDATE TX_TEST SET QTY=QTY+1 WHERE ID=1;
* 138: transaction serialization failure: … (ERROR)
SAP HANA
48PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
Smart Data Access
–
–
–
–
– Oracle, SQL Server, Teradata, DB2, Netezza
– Hadoop – Hive (Hortonworks, Cloudera, MapR, etc.), Spark
– SAP HANA
– SAP Vora
– SAP ASE, SAP IQ, SAP MaxDB, SAP SQLAnywhere, SAP ESP
SAP HANA
3rd
Netezza Db2 SQL Server Oracle
SAP HANA SAP ASE SAP IQ SAP ESP
Teradata
SAP HANA
Smart Data Access
49PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
.2, 1 1
1
.2 1. .2
1
50PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
1: (SAP HANA) ODBC
2: (SAP HANA) SAP HANA Oracle ODBC
* unixODBC ODBC
https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/4e955bd42d1a49a29489617515a88c7a.html
https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/be5ced62c08448e99efb3bc6d68f16f3.html
3: (Oracle) DEPT
hxeadm> isql ORCL scott tiger
SQL> SELECT * FROM DEPT;
hxeadm> cat ~/.odbc.ini
51PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
52PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
53PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
1: (Oracle) DEPT
2: (SAP HANA) ORACLE_DEPT
3: (SAP HANA) SAP HANA
SQL> SELECT * FROM DEPT;
hxeadm> hdbsql -n localhost -i 90 -u hanao -p SapHana8787 -d hxe -j -m -z
hdbsql hxe=> SELECT * FROM ORACLE_DEPT;
hdbsql hxe=> SELECT E.*, D.*
> FROM EMP E, ORACLE_DEPT D
> WHERE E.DEPTNO = D.DEPTNO;
SAP HANA
54PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
4: (SAP HANA)
SAP HANA EMP Oracle
Oracle EMP DEPT SAP HANA
55PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
4: (SAP HANA) (CREATE STATISTICS on ORACLE_DEPT; )
SAP HANA
SAP HANA HASH JOIN
56PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
Smart Data Integration
:
l
• ( )
• ( )
• (ETL / ELT)
l ( )
l
l Web
l
•
• SDK
Data Provisioning Agent
SAP HANA
Data Provisioning Server
SAP HANA SAP HANA Smart Data Integration
(SDK)
Smart Data Access Server – Agent -
Firewall
OData
API
57PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
., 2 2
2
2 2 2 1 ,
2 2 2 1 1
. 1
OracleLogReaderAdapter Oracle REDO
Oracle
SAP HANA (Change Data Capture)
58PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
1: (SAP HANA) Data Provisioning Server(dpserver)/
2: (DPAgent) Data Provisioning Agent/ /
hxeadm> ps -elf | grep dpserver
hxeadm> dpagentconfigtool
Smart Data Integration SAP HANA, express edition / SAP HANA smart data integration
SAP HANA, express edition 2.0 SPS02
https://help.sap.com/viewer/32c9e0c8afba4c87814e61d6a1141280/2.0.02/en-US/7621f586085b4a93898290e1571e560a.html
Smart Data Integration / / / /
(SAP HANA, express edition Linux (x86_64)/
59PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
3: (DPAgent) Data Provisioning Agent
60PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
4: (DPAgent) SAP HANA
61PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
5: (DPAgent) SAP HANA DP agent
62PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
:
6: (DPAgent) SAP HANA Adapter
63PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
1: (SAP HANA) Data Provisioning Agent
(Source Location) (Adapter Name)
Source Name
( )
64PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
2: (SYSTEM ) _SYS_REPO ”REP_ORACLE” ”CREATE REMOTE
SUBSCRIPTION”, “CREATE VIRTUAL TABLE”
65PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
3: Web based Development Workbench
http://<tenantdb_host>:8090/sap/hana/ide/
Web based Development Workbench DB
https://blogs.sap.com/2017/08/10/sap-hana-2.0-express-edition-transport-between-tenants/
66PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
4: Package
67PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
5: Replication Task
Replication Task
(REP_ORACLE)
+
68PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
5: Replication Task ( )
Oracle ”SCOTT”.”REP_TEST” SAP HANA
”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST”
+
69PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
6: Replication Task
70PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
7:
Oracle ”SCOTT”.”REP_TEST”
SAP HANA ”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST”
SQL> SELECT * FROM "SCOTT"."REP_TEST";
hdbsql hxe=> SELECT * FROM "HANAKO"."DEMO::DEMO.SCOTT_REP_TEST";
“HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST”
71PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
SAP HANA Oracle
Smart Data Integration :
8: (CDC)
Oracle ”SCOTT”.”REP_TEST” INSERT
SAP HANA ”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST”
SQL> INSERT INTO "SCOTT"."REP_TEST" VALUES (3, 'Hello Database’);
SQL> COMMIT;
hdbsql hxe=> SELECT * FROM "HANAKO"."DEMO::DEMO.SCOTT_REP_TEST";
“HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST” Oracle
(1 INSERT)
SAP HANA
73PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
Advanced Analytical Processing
&
* Partner integration
SQL
SAP HANA
PAL, APL, R, EMP(TensorFlow)*
74PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
Predictive Analysis Library (PAL)
– 90
▫ Association, Clustering, Classification, Regression,
Time Series
▫ – structured, spatial, text, streaming, series
data
– AFM PAL, R-Script
– SAP Predictive Analytics(PA) Automated Predictive Libraries
(APL),PAL
– SAS SAP HANA
– R
–
SAP HANA
studio/Web IDE
Application
Function
Modeler (AFM)
Tools &
Applications
SAP
Predictive
Analytics
S A P H A N A P L A T F O R M
Predictive
Analysis
Libraries (PAL)
R Integration
Application
Function Library
(AFL) SDK
Automated
Predictive
Libraries (APL)
External Machine
Learning (EML)
75PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
Predictive Analysis Library (PAL)
Classification Analysis
Ÿ CART
Ÿ C4.5 Decision Tree Analysis
Ÿ CHAID Decision Tree Analysis
Ÿ K Nearest Neighbour
Ÿ Logistic Regression Elastic Net
Ÿ Back-Propagation (Neural Network)
Ÿ Naïve Bayes
Ÿ Support Vector Machine
Ÿ Random Forests
Ÿ Gradient Boosting Decision Tree
Ÿ Linear Discriminant Analysis (LDA)
Ÿ Confusion Matrix
Ÿ Area Under Curve (AUC)
Ÿ Parameter Selection / Model
Evaluation
Regression
Ÿ Multiple Linear Regression Elastic Net
Ÿ Polynomial, Exponential, Bi-Variate
Geometric, Bi-Variate Logarithmic
Regression
Ÿ Generalized Linear Model
Ÿ Cox Proportional Hazards Model
Association Analysis
Ÿ Apriori
Ÿ Apriori Lite
Ÿ FP-Growth
Ÿ KORD – Top K Rule Discovery
Ÿ Sequential Pattern Mining
Probability Distribution
Ÿ Distribution Fit/ Weibull analysis
Ÿ Cumulative Distribution Function
Ÿ Quantile Function
Ÿ Kaplan-Meier Survival Analysis
Outlier Detection
Ÿ Inter-Quartile Range Test (Tukey’s Test)
Ÿ Variance Test
Ÿ Anomaly Detection
Ÿ Grubbs Outlier Test
Recommender
Ÿ Factorized Polynomial Regression Models
Link Prediction
Ÿ Common Neighbors
Ÿ Jaccard’s Coefficient
Ÿ Adamic/Adar
Ÿ Katzβ
Statistic Functions
Ÿ Mean, Median, Variance, Standard
Deviation, Kurtosis, Skewness
Ÿ Covariance Matrix
Ÿ Pearson Correlations Matrix
Ÿ Chi-squared Tests:
– Test of Quality of Fit
– Test of Independence
Ÿ F-test (variance equal test)
Ÿ Data Summary
Ÿ ANOVA
Ÿ One-sample Median Test
Ÿ T Test
Ÿ Wilcox Signed Rank Test
Data Preparation
Ÿ Sampling
Ÿ Binning
Ÿ Scaling
Ÿ Partitioning
Ÿ Principal Component Analysis (PCA) /
PCA Projection
Other
Ÿ Weighted Scores Table
Ÿ Substitute Missing Values
Cluster Analysis
Ÿ ABC Classification
Ÿ DBSCAN
Ÿ K-Means / Accelerated K-Means
Ÿ K-Medoid Clustering
Ÿ K-Medians
Ÿ Kohonen Self Organized Maps
Ÿ Agglomerate Hierarchical
Ÿ Affinity Propagation
Ÿ Latent Dirichlet Allocation (LDA)
Ÿ Gaussian Mixture Model (GMM)
Ÿ Cluster Assignment
Time Series Analysis
Ÿ Single/Double/ Brown /Triple
Exp.Smoothing
Ÿ Forecast Smoothing
Ÿ Auto - ARIMA/ Seasonal ARIMA
Ÿ Croston Method
Ÿ Forecast Accuracy Measure
Ÿ Linear Regression with Damped Trend
and Seasonal Adjust
Ÿ Test for White Noise, Trend,
Seasonality
Ÿ Fast Fourier Transform (FFT)
Ÿ Correlation Function
76PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
PAL
1: SAP HANA Development
77PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
PAL
2: PAL
78PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
PAL
3: PAL
SAP HANA
PAL Back Propagation
Neural Network
79PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
1: PAL ( )
PAL BP Neural
Network (Predict)
(BPNN_P)
SAP HANA
81PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
1 SAP HANA
1-1. SAP HANA
1-2.
1-3. SAP HANA
1-4.
1-5. SAP HANA
2 SAP HANA on IBM Power Systems
2-1. SAP HANA IBM Power Systems
2-2.
2-3. IBM Power Systems
2-4.
3 SAP HANA
3-1. SAP HANA
3-2.
3-3.
3-4.
3-5.
3-6.
3-7.
3-8.
3-9. ( )
3-10. Hadoop SAP Vora
3-11. (Virtual Data Model)
3-12. SAP HANA ( )
3-13.
3-14.
3-15. &
3-16.
3-17.
3-18. SAP HANA ( )
3-19. SQL & SQLScript
3-20. SAP HANA
3-21. SAP HANA
3-22. SAP HANA cockpit (Performance Management Tools)
4 SAP HANA
4-1. SAP HANA
4-2.
4-3. SAP HANA
4-4
5 SAP HANA, express edition
5-1. SAP HANA, express edition
5-2. SAP HANA, express edition
5-3. SAP HANA, express edition
5-4. SAP HANA, express edition
5-5. SAP HANA studio
5-6. SAP HANA cockpit
5-7. SAP HANA client
5-8. SAP Web IDE
5-9. SAP HANA (SHINE)
[ ] HANA on Power
SAP HANA
Powered by IBM Power Systems
[ ]
Amazon ( https://goo.gl/RMvZwv )
( https://goo.gl/Mmroxe )
SAP HANA
82PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Data Integration & Quality
1: SYSTEM HANAKO
2: SYSTEM HANAO
3: SYSTEM HANAO
hdbsql hxe=> CREATE SCHEMA HANAKO;
hdbsql hxe=> CREATE USER HANAO PASSWORD <pwd> NO FORCE_FIRST_PASSWORD_CHANGE;
hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::CatalogDeveloper" TO HANAO;
hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::Developer" TO HANAO;
hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::EditorDeveloper" TO HANAO;
hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::SecurityAdmin" TO HANAO;
hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::TraceViewer" TO HANAO;
hdbsql hxe=> GRANT IMPORT TO HANAO;
hdbsql hxe=> GRANT SELECT ON SCHEMA HANAKO TO HANAO;
83PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
Advanced Analytical Processing
1: SYSTEM HANAO
* AFM
2: HANAO _SYS_REPO
hdbsql hxe=> GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO HANAO;
hdbsql hxe=> GRANT SELECT ON SCHEMA AFM TO HANAO;
hdbsql hxe=> GRANT MODELING TO HANAO;
hdbsql hxe=> GRANT EXECUTE ON REPOSITORY_REST TO HANAO;
hdbsql hxe=> GRANT REPO.READ, REPO.EDIT_NATIVE_OBJECTS, REPO.ACTIVATE_NATIVE_OBJECTS,
> REPO.MAINTAIN_NATIVE_PACKAGES ON ".REPO_PACKAGE_ROOT" TO HANAO;
hdbsql hxe=> GRANT SELECT ON SCHEMA AFM TO _SYS_REPO; ---> *
hdbsql hxe=> GRANT SELECT, INSERT, DELETE ON SCHEMA HANAO TO _SYS_REPO;
84PUBLIC© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ
SAP HANA
• SAP HANA, express edition: https://www.sap.com/japan/developer/topics/sap-hana-express.html
SAP https://www.sap.com/japan/developer.html
• : https://www.sap.com/japan/developer/topics/sap-hana-express.tutorials.html - tutorials
• : https://www.sap.com/japan/developer/topics/sap-hana-express.community.html - community
• : https://www.sap.com/japan/developer/topics/sap-hana-express.resources.html - resources
• : https://www.sap.com/japan/developer/topics/sap-hana-express.release-notes.html - release-notes
SAP Help Portal (SAP HANA, express edition) https://help.sap.com/viewer/p/SAP_HANA,_EXPRESS_EDITION
Thank you.
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.
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 or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated
companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP 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,
and they should not be relied upon in making purchasing decisions.
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. All other product and service names mentioned are the trademarks of their respective companies.
See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
© 2017 SAP SE or an SAP affiliate company. All rights reserved.

関西DB勉強会 (SAP HANA, express edition)

  • 1.
  • 2.
    2PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA SAP HANA, express edition SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA, express edition
  • 3.
    3PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ - SAP HANA Platform SAP HANA - SAP HANA, express edition PC-SAP HANA, express edition - SAP HANA - SAP HANA - OS (Multitenant Database Container) - - HTAP Translytical Processing ( ) - - - SAP HANA Transaction Isolation SAP HANA - Smart Data Access- - SAP HANA Oracle - Smart Data Integration- - SAP HANA Oracle - SAP HANA - Advanced Analytical Processing - Predictive Analysis Library (PAL) - PAL- - SAP HANA - SAP HANA - - SAP HANA
  • 4.
    4PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Platform ++ SAP OLTP + OLAPONE Open Platform ONE Copy of the Data or * : In-Memory/on Disk Relational SAP Vora Graphic Modeler Series Data Graph Document Store Object Storage (Amazon S3, Azure Blob Storage) Hadoop (Any Hadoop, Azure Data Lake) 3rd party Data Source/Target SAP Data Hub Cockpit Pipeline Security & Governance Data Share DATABASE MANAGEMENT Web Server JavaScript Graphic Modeler Data Virtualization ETL & Replication Columnar OLTP+OLAP Multi-Core & Parallelization Advanced Compression Multi-tenancy Multi-Tier Storage Graph Predictive Search Data Quality Series Data Business Functions Hadoop & Spark Integration Application Lifecycle Management High Availability & Disaster Recovery OpennessData Modeling Admin & Security Remote Data Sync Spatial Text Analytics Fiori UX APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING SAP HANA Platform Streaming Analytics Machine Learning
  • 5.
    5PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP ranked as a LEADER The Forrester Wave™: Translytical Data Platforms, Q4 2017 SAP Translytical Data Platforms Wave SAP 18 5/5 The Forrester Wave™: Translytical Data Platforms, Q4 2017,Noel Yuhanna and Mike Gualtieri with Gene Leganza and Jun Lee , 28 November 2017 Read the full report "The Forrester Wave™ is copyrighted by Forrester Research, Inc. Forrester and Forrester Wave™ are trademarks of Forrester Research, Inc. The Forrester Wave™ is a graphical representation of Forrester's call on a market and is plotted using a detailed spreadsheet with exposed scores, weightings, and comments. Forrester does not endorse any vendor, product, or service depicted in the Forrester Wave. Information is based on best available resources. Opinions reflect judgment at the time and are subject to change." • Architecture • Data management • Data types • Development tools • Data modeling • Transactions • Analytical queries • Advanced analytics • Streaming • Data Security • Performance features • Ability to execute • Roadmap • Implementation support • Product revenue • Install base • Market awareness • Partnerships
  • 6.
    SAP HANA / /SAP HANA, express edition
  • 7.
    7PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA, express edition § ( ) SAP HANA § § SAP HANA SAP HANA, express edition
  • 8.
    8PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA, express edition SAP HANA § 32 GB ( ) § – ( 16 GB ) – SAP Cloud Appliance Library(CAL) (AWS or Azure) – Public Cloud (AWS, Azure, GCP …) § SAP Community § 128 GB ( ) § – 128 GB – § SAP § JDBC, ODBC, .Net § SAP HANA § PC
  • 9.
    9PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ ? SAP HANA, express edition 1. SAP Developer Center SAP HANA, express edition Download Manager https://www.sap.com/japan/developer/topics/sap-hana-express.html 2. ( or ) * 16GB 3. SAP HANA, express edition 4. PC & Ÿ SAP Cloud Appliance Library(CAL) SAP http://cal.sap.com * * Ÿ /Market Place SAP HANA, express edition * * 2017.12
  • 10.
    10PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA, express edition § SUSE Linux Enterprise Server (SLES) for SAP Red Hat Enterprise Linux (RHEL) for SAP SAP HANA, express edition § ( )SAP HANA XSA (Extended Application Services, advanced model) § Windows Mac SAP HANA, express edition SLES for SAP § : – SAP HANA server only – SAP HANA server + application (SAP HANA XSA)
  • 11.
    11PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA, express edition 2 SAP HANA express edition server only SAP HANA express edition server + application / SQL hdbsql SAP HANA studio (Eclipse + SAP HANA plugin) SAP Web IDE (based on XSA) SAP HANA, express edition SQL, JDBC/ODBC, ADO.Net, HTTP(s) (REST/OData), Web Sockets (MDC) SAP HANA data integration * SDI DB DB DB Web based Development Workbench (based on XSC) SAP HANA cockpit (based on XSA) server only server + application Extended Application Services, advanced model Node.js / XSJS BYO RuntimeJava (SDA) ETL (SDI) CDC based Replication (SDI)
  • 12.
    12PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ PC SAP HANA, express edition ( ) https://www.sap.com/japan/developer/topics/sap-hana-express.html
  • 13.
    13PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ PC SAP HANA, express edition SAP HANA, express edition Download Manager Mac (Java 8 ) * OS
  • 14.
    14PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ PC SAP HANA, express edition SAP HANA, express edition * Mac Server only + application + application 24GB 2
  • 15.
    15PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ PC SAP HANA, express edition SAP HANA, express edition ( )
  • 16.
    16PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ DATABASE MANAGEMENT Web Server JavaScript Graphic Modeler Data Virtualization ETL & Replication Columnar OLTP+OLAP Multi-Core & Parallelization Advanced Compression Multi-tenancy Multi-Tier Storage Graph Predictive Search Data Quality Series Data Business Functions Hadoop & Spark Integration Application Lifecycle Management High Availability & Disaster Recovery OpennessData Modeling Admin & Security Remote Data Sync Spatial Text Analytics Fiori UX APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING SAP HANA Platform Streaming Analytics SAP HANA, express edition OLTP + OLAPONE Open Platform ONE Copy of the Data DATABASE MANAGEMENT Web Server JavaScript Graphic Modeler Data Virtualization ETL & Replication Columnar OLTP+OLAP Multi-Core & Parallelization Advanced Compression Multi-tenancy Multi-Tier Storage Graph Predictive Search Data Quality Series Data Business Functions Hadoop & Spark Integration Application Lifecycle Management High Availability & Disaster Recovery OpennessData Modeling Admin & Security Remote Data Sync Spatial Text Analytics Fiori UX APPLICATION DEVELOPMENT DATA INTEGRATION & QUALITYADVANCED ANALYTICAL PROCESSING SAP HANA, express edition Streaming Analytics
  • 17.
  • 18.
    18PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA OS ( ): SID( 3 ) SAP HANA, express edition HXE SAP HANA OS SID <sid>adm SAP HANA, express edition ”HXEHana1” OS (* ) SAP HANA : SAP HANA : hxeadm> HDB start hxeadm> HDB stop
  • 19.
    19PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA OS SAP HANA : ps : SAP HANA nameserver indexserver hxeadm> HDB info hxeadm> ps -fu hxeadm UID PID PPID C STIME TTY TIME CMD hxeadm 1488 1 0 21:24 ? 00:00:00 /usr/lib/systemd/systemd –user hxeadm 1490 1488 0 21:24 ? 00:00:00 (sd-pam) hxeadm 1573 1 0 21:24 ? 00:00:00 /usr/sap/HXE/HDB90/exe/sapstartsrv pf=/usr/sap/HXE/SYS/profile hxeadm 1662 1 0 21:24 ? 00:00:00 sapstart pf=/usr/sap/HXE/SYS/profile/HXE_HDB90_hxehost hxeadm 1706 1662 0 21:24 ? 00:00:01 /usr/sap/HXE/HDB90/hxehost/trace/hdb.sapHXE_HDB90 -d -nw -f /u hxeadm 1727 1706 5 21:24 ? 00:00:40 hdbnameserver hxeadm 1906 1706 5 21:24 ? 00:00:38 hdbcompileserver hxeadm 1937 1706 17 21:24 ? 00:01:57 hdbindexserver -port 39003 hxeadm 1939 1706 4 21:24 ? 00:00:29 hdbscriptserver -port 39040 hxeadm 2375 1706 3 21:25 ? 00:00:19 hdbwebdispatcher hxeadm 2861 2858 0 21:35 ? 00:00:00 sshd: hxeadm@pts/0 hxeadm 2862 2861 0 21:35 pts/0 00:00:00 –bash hxeadm 2923 2862 0 21:35 pts/0 00:00:00 ps -fu hxeadm
  • 20.
    20PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA( SAP HANA (MDC) compileserver scriptserver webdispatcher nameserver indexserver preprocessor ( MDC(System DB) DB (MDC(Tenant DB) ( ( OS hdbindexserver indexserver hdbnameserver nameserver hdbpreprocessor preprocessor hdbcompileserver compileserver hdbscriptserver scriptserver SAP Web hdbwebdispatcher webdispatcher SAP start service sapstartsrv sapstartsrv SQLScript ( AFL( XS (HTTP(S) ( (2 ( *
  • 21.
    21PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Schema X Tenant DB SAP HANA Instance App X Schema X App Y Tenant DB HW OS System DB § SID § § (CPU ) § § § § SAP HANA 2.0 SPS01 MDC § System DB ( ) ( Tenant DB ) SAP HANA (Multitenant Database Container)
  • 22.
    22PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA (hdbsql ) hdbsql SAP HANA : System DB : -j: SQL OS -m: -z: off Tenant DB (HXE) hxeadm> hdbsql -n <host> -i <instance#> -d <db> -u <user> -p <password> [options] hxeadm> hdbsql -n localhost -i 90 -d systemdb -u system -p <password> -j -m -z hxeadm> hdbsql -n localhost -i 90 -d hxe -u system -p <password> -j -m -z
  • 23.
    23PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA (SAP HANA studio) eclipse SAP HANA https://www.sap.com/developer/how-tos/2016/09/hxe-howto-eclipse.html Add System...
  • 24.
    24PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA (SAP HANA studio) System DB :
  • 25.
    25PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA (SAP HANA studio) Tenant DB (HXE) :
  • 26.
    26PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA * SAP HANA = = • • *Undo • ( ) • ( = ) REDO (WAL) REDO § • ( ) • ( 300 * ) • ( ) • = REDO (WAL) - Log Buffer FULL - Commit/Rollback (Shadow Paging) SAP HANA UNDO DATAREDO Log Buffer Row Store Column Store
  • 27.
    27PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA ”DATA” ”LOG” SAP HANA ” ”
  • 28.
    28PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA : ? 1: HANAO Tenant DB HXE 2: 3: (indexserver) hxeadm> hdbsql -n localhost -i 90 -d hxe -u hanao -p <password> -j -m -z hdbsql hxe=> CREATE COLUMN TABLE HANAO_TAB (ID INT); hxeadm> date;ls -l /hana/shared/*/HXE/mnt00001/hdb00002.00003/|grep -v __DO_NOT
  • 29.
    29PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA 1: INSERT 2: hdbsql hxe=> INSERT INTO HANAO_TAB VALUES (1); hdbsql hxe=> COMMIT; ?
  • 30.
    30PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA ? 1: SAVEPOINT SYSTEM è hdbsql ¥c -u system -p <password>) 2: hdbsql hxe=> ALTER SYSTEM SAVEPOINT; (
  • 31.
    31PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA HTAP Translytical Processing ( ) SAP HANA( ) DML Consistent View ( ) INSERT/UPDATE/DELETE Append ( ) Read / DELETE Isolation Level(MVCC) ( ) ( ) ( )
  • 32.
    32PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA + • • + • • Prefix Encoding • • Run Length Encoding (RLE) • ( ( + • Linear Run Length Encoding (LRLE) • Series • Cluster Encoding • ) 1 • Sparse Encoding • • Indirect encoding • ) Order Country Product Sales 456 France corn 1000 457 Italy wheat 900 458 Spain rice 600 459 Italy rice 800 460 Denmark corn 500 461 Denmark rice 600 462 Belgium rice 600 463 Italy rice 1100 … … … … Logical Table 1 corn 2 rice 3 wheat 1 3 2x2 1 3x2 … 1 3 2 2 1 2 2 2 …
  • 33.
    33PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Name Miller John Millman Zsuwalski Baker Miller Jones Miller Johnson John Millman Name 4 1 5 N 0 4 3 4 2 1 5 Value ID 0 Baker 1 John 2 Johnson 3 Jones 4 Miller 5 Millman N Zsuwalski … Value ID SAP HANA
  • 34.
    34PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Prefix Encoding 4 4 4 4 4 4 4 4 3 5 3 1 1 0Uncompressed 8 4 3 5 3 1 1 0Prefixed Encoded Run-Length Encoding 5 5 5 4 4 4 4 3 3 2 2 2 2 2Uncompressed 5 4 3 2Run-Length Encoded 0 3 7 9 Cluster Encoding 4 4 4 4 4 4 4 3 3 0 0 0Uncompressed 4 4 4 3 3 0Cluster Encoded N=4, Cluster size = 3 Bit Vector 1 1 0 1 1 Sparse Encoding 4 4 4 3 3 1 0 0 0 4 4 4 4 0Uncompressed 4 3 3 1 0 0 0 0Cluster Encoded Bit Vector 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 SAP HANA
  • 35.
    35PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Indirect Encoding 2 1 576 9 1 2 2 9 88 21 3 19 46 79 45 13 9 6 9 6 3 6 9 3Uncompressed Compressed Block size = 8 1 0 3 2 0 1 1 2 88 21 3 19 46 79 45 13 2 1 2 1 0 1 2 0 0 1 1 2 2 9 3 576 0 3 1 6 2 9 Dictionary for block#1 Dictionary for block#3 block#2 SAP HANA
  • 36.
    36PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA 1: : 2: off: 3: IMPORT ( ) CREATE COLUMN TABLE SAMPLE_TABLE (SEX NVARCHAR(1)); ALTER TABLE SAMPLE_TABLE DISABLE AUTOMERGE; hxeadm> cat /tmp/data.csv | head -n 5 男 女 女 女 女
  • 37.
    37PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA ( ) 3: IMPORT 4: IMPORT FROM CSV FILE '/tmp/data.csv' INTO SAMPLE_TABLE WITH RECORD DELIMITED BY '¥n' FIELD DELIMITED BY ',' THREADS 2 BATCH 10000;
  • 38.
    38PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA ( ) 5: ( ) 6: MERGE DELTA OF SAMPLE_TABLE; (0 à 252,363)
  • 39.
    39PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA 1: ( ) 2: MERGE DELTA OF SAMPLE_TABLE WITH PARAMETERS ('OPTIMIZE_COMPRESSION' = 'ON'); (252,363 à 2,443) ”DEFAULT” ”RLE”
  • 40.
    40PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation Q1 : (R)#1 REPEATABLE READ : (R)#2 READ COMMITTED : (W)#3 TX1 U1 Q2 Q3 Q4 Q5 Q6 TX2 U2 U3 TX3 U4 U5 U6 I1 Qx Ux : : Ix : SAP HANA READ COMMITTED MVCC : : REPEATABEL READ MVCC : : SERIALIZABLE MVCC : : : SAP HANA REPEATABLE READ SERIALIZABLE : :
  • 41.
    41PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation 1: HANAO Tenant DB HXE : 2: 3: 1 hxeadm> hdbsql -n localhost -i 90 -d hxe -u hanao -p <password> -j -m -z hdbsql hxe=> CREATE COLUMN TABLE TX_TEST > (ID INT > ,STR1 NVARCHAR(10) > ,STR2 NVARCHAR(10) > ,QTY INT); hdbsql hxe=> INSERT INTO TX_TEST VALUES (1, 'テスト1-1', 'テスト1-2', 1); hdbsql hxe=> COMMIT;
  • 42.
    42PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation ? ?: 1: (SESSION#1) ( COMMIT) 2: (SESSION#2) ( COMMIT) hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-1' WHERE ID=1; hdbsql hxe=> UPDATE TX_TEST SET STR2='テスト1-2-1' WHERE ID=1; SESSION#2 SESSION#1 SAP HANA
  • 43.
    43PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation SAP HANA MVCC Snapshot Isolation READ COMMITTED : 1: (SESSION#1) ( COMMIT) 2: (SESSION#2) 3: (SESSION#1) 4: (SESSION#2) hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-2' WHERE ID=1; hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; hdbsql hxe=> COMMIT; hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; #1
  • 44.
    44PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation SAP HANA REPEATABLE READ : 1: (SESSION#1) REPEATABLE READ 2: (SESSION#1) 3: (SESSION#2) (COMMIT ) 4: (SESSION#1) & hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; hdbsql hxe=> UPDATE TX_TEST SET STR1='テスト1-1-3' WHERE ID=1; hdbsql hxe=> COMMIT; hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; hdbsql hxe=> COMMIT; hdbsql hxe=> SELECT STR1 FROM TX_TEST WHERE ID=1; 3 SESSION#2 3 SESSION#2
  • 45.
    45PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation SAP HANA REPEATABLE READ : 1: (SESSION#1) REPEATABLE READ 2: (SESSION#1) 3: (SESSION#2) (COMMIT ) 4: (SESSION#1) & hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; hdbsql hxe=> SELECT STR1 FROM TX_TEST; hdbsql hxe=> INSERT INTO TX_TEST VALUES (2, 'テスト2-1', 'テスト2-2', 2); hdbsql hxe=> COMMIT; hdbsql hxe=> SELECT STR1 FROM TX_TEST; hdbsql hxe=> COMMIT; hdbsql hxe=> SELECT STR1 FROM TX_TEST; 3 SESSION#2 3 SESSION#2
  • 46.
    46PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Transaction Isolation SAP HANA REPEATABLE READ : 1: (SESSION#1) REPEATABLE READ 2: (SESSION#1) 3: (SESSION#2) (COMMIT ) 4: (SESSION#1) hdbsql hxe=> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ; hdbsql hxe=> SELECT QTY FROM TX_TEST WHERE ID=1; hdbsql hxe=> UPDATE TX_TEST SET QTY=QTY+1 WHERE ID=1; hdbsql hxe=> COMMIT; hdbsql hxe=> UPDATE TX_TEST SET QTY=QTY+1 WHERE ID=1; * 138: transaction serialization failure: … (ERROR)
  • 47.
  • 48.
    48PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Smart Data Access – – – – – Oracle, SQL Server, Teradata, DB2, Netezza – Hadoop – Hive (Hortonworks, Cloudera, MapR, etc.), Spark – SAP HANA – SAP Vora – SAP ASE, SAP IQ, SAP MaxDB, SAP SQLAnywhere, SAP ESP SAP HANA 3rd Netezza Db2 SQL Server Oracle SAP HANA SAP ASE SAP IQ SAP ESP Teradata SAP HANA Smart Data Access
  • 49.
    49PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : .2, 1 1 1 .2 1. .2 1
  • 50.
    50PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 1: (SAP HANA) ODBC 2: (SAP HANA) SAP HANA Oracle ODBC * unixODBC ODBC https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/4e955bd42d1a49a29489617515a88c7a.html https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/be5ced62c08448e99efb3bc6d68f16f3.html 3: (Oracle) DEPT hxeadm> isql ORCL scott tiger SQL> SELECT * FROM DEPT; hxeadm> cat ~/.odbc.ini
  • 51.
    51PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle :
  • 52.
    52PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle :
  • 53.
    53PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 1: (Oracle) DEPT 2: (SAP HANA) ORACLE_DEPT 3: (SAP HANA) SAP HANA SQL> SELECT * FROM DEPT; hxeadm> hdbsql -n localhost -i 90 -u hanao -p SapHana8787 -d hxe -j -m -z hdbsql hxe=> SELECT * FROM ORACLE_DEPT; hdbsql hxe=> SELECT E.*, D.* > FROM EMP E, ORACLE_DEPT D > WHERE E.DEPTNO = D.DEPTNO; SAP HANA
  • 54.
    54PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle 4: (SAP HANA) SAP HANA EMP Oracle Oracle EMP DEPT SAP HANA
  • 55.
    55PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle 4: (SAP HANA) (CREATE STATISTICS on ORACLE_DEPT; ) SAP HANA SAP HANA HASH JOIN
  • 56.
    56PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Smart Data Integration : l • ( ) • ( ) • (ETL / ELT) l ( ) l l Web l • • SDK Data Provisioning Agent SAP HANA Data Provisioning Server SAP HANA SAP HANA Smart Data Integration (SDK) Smart Data Access Server – Agent - Firewall OData API
  • 57.
    57PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : ., 2 2 2 2 2 2 1 , 2 2 2 1 1 . 1 OracleLogReaderAdapter Oracle REDO Oracle SAP HANA (Change Data Capture)
  • 58.
    58PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 1: (SAP HANA) Data Provisioning Server(dpserver)/ 2: (DPAgent) Data Provisioning Agent/ / hxeadm> ps -elf | grep dpserver hxeadm> dpagentconfigtool Smart Data Integration SAP HANA, express edition / SAP HANA smart data integration SAP HANA, express edition 2.0 SPS02 https://help.sap.com/viewer/32c9e0c8afba4c87814e61d6a1141280/2.0.02/en-US/7621f586085b4a93898290e1571e560a.html Smart Data Integration / / / / (SAP HANA, express edition Linux (x86_64)/
  • 59.
    59PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 3: (DPAgent) Data Provisioning Agent
  • 60.
    60PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 4: (DPAgent) SAP HANA
  • 61.
    61PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 5: (DPAgent) SAP HANA DP agent
  • 62.
    62PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle : 6: (DPAgent) SAP HANA Adapter
  • 63.
    63PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 1: (SAP HANA) Data Provisioning Agent (Source Location) (Adapter Name) Source Name ( )
  • 64.
    64PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 2: (SYSTEM ) _SYS_REPO ”REP_ORACLE” ”CREATE REMOTE SUBSCRIPTION”, “CREATE VIRTUAL TABLE”
  • 65.
    65PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 3: Web based Development Workbench http://<tenantdb_host>:8090/sap/hana/ide/ Web based Development Workbench DB https://blogs.sap.com/2017/08/10/sap-hana-2.0-express-edition-transport-between-tenants/
  • 66.
    66PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 4: Package
  • 67.
    67PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 5: Replication Task Replication Task (REP_ORACLE) +
  • 68.
    68PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 5: Replication Task ( ) Oracle ”SCOTT”.”REP_TEST” SAP HANA ”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST” +
  • 69.
    69PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 6: Replication Task
  • 70.
    70PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 7: Oracle ”SCOTT”.”REP_TEST” SAP HANA ”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST” SQL> SELECT * FROM "SCOTT"."REP_TEST"; hdbsql hxe=> SELECT * FROM "HANAKO"."DEMO::DEMO.SCOTT_REP_TEST"; “HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST”
  • 71.
    71PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA SAP HANA Oracle Smart Data Integration : 8: (CDC) Oracle ”SCOTT”.”REP_TEST” INSERT SAP HANA ”HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST” SQL> INSERT INTO "SCOTT"."REP_TEST" VALUES (3, 'Hello Database’); SQL> COMMIT; hdbsql hxe=> SELECT * FROM "HANAKO"."DEMO::DEMO.SCOTT_REP_TEST"; “HANAKO”.”DEMO::DEMO.SCOTT_REP_TEST” Oracle (1 INSERT)
  • 72.
  • 73.
    73PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Advanced Analytical Processing & * Partner integration SQL SAP HANA PAL, APL, R, EMP(TensorFlow)*
  • 74.
    74PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Predictive Analysis Library (PAL) – 90 ▫ Association, Clustering, Classification, Regression, Time Series ▫ – structured, spatial, text, streaming, series data – AFM PAL, R-Script – SAP Predictive Analytics(PA) Automated Predictive Libraries (APL),PAL – SAS SAP HANA – R – SAP HANA studio/Web IDE Application Function Modeler (AFM) Tools & Applications SAP Predictive Analytics S A P H A N A P L A T F O R M Predictive Analysis Libraries (PAL) R Integration Application Function Library (AFL) SDK Automated Predictive Libraries (APL) External Machine Learning (EML)
  • 75.
    75PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA Predictive Analysis Library (PAL) Classification Analysis Ÿ CART Ÿ C4.5 Decision Tree Analysis Ÿ CHAID Decision Tree Analysis Ÿ K Nearest Neighbour Ÿ Logistic Regression Elastic Net Ÿ Back-Propagation (Neural Network) Ÿ Naïve Bayes Ÿ Support Vector Machine Ÿ Random Forests Ÿ Gradient Boosting Decision Tree Ÿ Linear Discriminant Analysis (LDA) Ÿ Confusion Matrix Ÿ Area Under Curve (AUC) Ÿ Parameter Selection / Model Evaluation Regression Ÿ Multiple Linear Regression Elastic Net Ÿ Polynomial, Exponential, Bi-Variate Geometric, Bi-Variate Logarithmic Regression Ÿ Generalized Linear Model Ÿ Cox Proportional Hazards Model Association Analysis Ÿ Apriori Ÿ Apriori Lite Ÿ FP-Growth Ÿ KORD – Top K Rule Discovery Ÿ Sequential Pattern Mining Probability Distribution Ÿ Distribution Fit/ Weibull analysis Ÿ Cumulative Distribution Function Ÿ Quantile Function Ÿ Kaplan-Meier Survival Analysis Outlier Detection Ÿ Inter-Quartile Range Test (Tukey’s Test) Ÿ Variance Test Ÿ Anomaly Detection Ÿ Grubbs Outlier Test Recommender Ÿ Factorized Polynomial Regression Models Link Prediction Ÿ Common Neighbors Ÿ Jaccard’s Coefficient Ÿ Adamic/Adar Ÿ Katzβ Statistic Functions Ÿ Mean, Median, Variance, Standard Deviation, Kurtosis, Skewness Ÿ Covariance Matrix Ÿ Pearson Correlations Matrix Ÿ Chi-squared Tests: – Test of Quality of Fit – Test of Independence Ÿ F-test (variance equal test) Ÿ Data Summary Ÿ ANOVA Ÿ One-sample Median Test Ÿ T Test Ÿ Wilcox Signed Rank Test Data Preparation Ÿ Sampling Ÿ Binning Ÿ Scaling Ÿ Partitioning Ÿ Principal Component Analysis (PCA) / PCA Projection Other Ÿ Weighted Scores Table Ÿ Substitute Missing Values Cluster Analysis Ÿ ABC Classification Ÿ DBSCAN Ÿ K-Means / Accelerated K-Means Ÿ K-Medoid Clustering Ÿ K-Medians Ÿ Kohonen Self Organized Maps Ÿ Agglomerate Hierarchical Ÿ Affinity Propagation Ÿ Latent Dirichlet Allocation (LDA) Ÿ Gaussian Mixture Model (GMM) Ÿ Cluster Assignment Time Series Analysis Ÿ Single/Double/ Brown /Triple Exp.Smoothing Ÿ Forecast Smoothing Ÿ Auto - ARIMA/ Seasonal ARIMA Ÿ Croston Method Ÿ Forecast Accuracy Measure Ÿ Linear Regression with Damped Trend and Seasonal Adjust Ÿ Test for White Noise, Trend, Seasonality Ÿ Fast Fourier Transform (FFT) Ÿ Correlation Function
  • 76.
    76PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA PAL 1: SAP HANA Development
  • 77.
    77PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA PAL 2: PAL
  • 78.
    78PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA PAL 3: PAL SAP HANA PAL Back Propagation Neural Network
  • 79.
    79PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA 1: PAL ( ) PAL BP Neural Network (Predict) (BPNN_P)
  • 80.
  • 81.
    81PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA 1 SAP HANA 1-1. SAP HANA 1-2. 1-3. SAP HANA 1-4. 1-5. SAP HANA 2 SAP HANA on IBM Power Systems 2-1. SAP HANA IBM Power Systems 2-2. 2-3. IBM Power Systems 2-4. 3 SAP HANA 3-1. SAP HANA 3-2. 3-3. 3-4. 3-5. 3-6. 3-7. 3-8. 3-9. ( ) 3-10. Hadoop SAP Vora 3-11. (Virtual Data Model) 3-12. SAP HANA ( ) 3-13. 3-14. 3-15. & 3-16. 3-17. 3-18. SAP HANA ( ) 3-19. SQL & SQLScript 3-20. SAP HANA 3-21. SAP HANA 3-22. SAP HANA cockpit (Performance Management Tools) 4 SAP HANA 4-1. SAP HANA 4-2. 4-3. SAP HANA 4-4 5 SAP HANA, express edition 5-1. SAP HANA, express edition 5-2. SAP HANA, express edition 5-3. SAP HANA, express edition 5-4. SAP HANA, express edition 5-5. SAP HANA studio 5-6. SAP HANA cockpit 5-7. SAP HANA client 5-8. SAP Web IDE 5-9. SAP HANA (SHINE) [ ] HANA on Power SAP HANA Powered by IBM Power Systems [ ] Amazon ( https://goo.gl/RMvZwv ) ( https://goo.gl/Mmroxe ) SAP HANA
  • 82.
    82PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Data Integration & Quality 1: SYSTEM HANAKO 2: SYSTEM HANAO 3: SYSTEM HANAO hdbsql hxe=> CREATE SCHEMA HANAKO; hdbsql hxe=> CREATE USER HANAO PASSWORD <pwd> NO FORCE_FIRST_PASSWORD_CHANGE; hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::CatalogDeveloper" TO HANAO; hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::Developer" TO HANAO; hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::EditorDeveloper" TO HANAO; hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::SecurityAdmin" TO HANAO; hdbsql hxe=> GRANT ROLE "sap.hana.xs.ide.roles::TraceViewer" TO HANAO; hdbsql hxe=> GRANT IMPORT TO HANAO; hdbsql hxe=> GRANT SELECT ON SCHEMA HANAKO TO HANAO;
  • 83.
    83PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ Advanced Analytical Processing 1: SYSTEM HANAO * AFM 2: HANAO _SYS_REPO hdbsql hxe=> GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO HANAO; hdbsql hxe=> GRANT SELECT ON SCHEMA AFM TO HANAO; hdbsql hxe=> GRANT MODELING TO HANAO; hdbsql hxe=> GRANT EXECUTE ON REPOSITORY_REST TO HANAO; hdbsql hxe=> GRANT REPO.READ, REPO.EDIT_NATIVE_OBJECTS, REPO.ACTIVATE_NATIVE_OBJECTS, > REPO.MAINTAIN_NATIVE_PACKAGES ON ".REPO_PACKAGE_ROOT" TO HANAO; hdbsql hxe=> GRANT SELECT ON SCHEMA AFM TO _SYS_REPO; ---> * hdbsql hxe=> GRANT SELECT, INSERT, DELETE ON SCHEMA HANAO TO _SYS_REPO;
  • 84.
    84PUBLIC© 2017 SAPSE or an SAP affiliate company. All rights reserved. ǀ SAP HANA • SAP HANA, express edition: https://www.sap.com/japan/developer/topics/sap-hana-express.html SAP https://www.sap.com/japan/developer.html • : https://www.sap.com/japan/developer/topics/sap-hana-express.tutorials.html - tutorials • : https://www.sap.com/japan/developer/topics/sap-hana-express.community.html - community • : https://www.sap.com/japan/developer/topics/sap-hana-express.resources.html - resources • : https://www.sap.com/japan/developer/topics/sap-hana-express.release-notes.html - release-notes SAP Help Portal (SAP HANA, express edition) https://help.sap.com/viewer/p/SAP_HANA,_EXPRESS_EDITION
  • 85.
  • 86.
    No part ofthis 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. 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 or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP 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, and they should not be relied upon in making purchasing decisions. 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. All other product and service names mentioned are the trademarks of their respective companies. See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices. © 2017 SAP SE or an SAP affiliate company. All rights reserved.