Você está na página 1de 207

B1Day HANA Tech Session

Thiago Mendes Local Product Expert


Maio, 2015

Public

OBJETIVO

Agenda HANA
Introduo e Infra

Administrao

SAP HANA

HANA Studio

B1A vs B1H

Gesto do sistema

Tipos de Instalao

Gesto dos usurio

Instalao on-premise

Monitoramento

Instalao cloud

Tracing

2015 SAP SE or an SAP affiliate company. All rights reserved.

Consultoria

HANA SQL Scripts

Modelagem

Public

O QUE
SAP HANA?

O que SAP HANA?


SAP HANA uma plataforma de computao in-memory que
transformou completamente a indstria de banco de dados.
Ela combina banco de dados, processamento de aplicaes, e
servios de integrao em uma

nica plataforma. Esta

mesma arquitetura oferece bibliotecas para predio, planejamento,


processamento de textos, especial e anlise de negcios.
Fonte: SAP

A plataforma para aplicaes e anlises da prxima gerao.

Radicalmente simples. Espantosamente rpido. SAP HANA trata quantidades massivas de


dados, permitindo que os usurios de negcio tirem informao vital e tomem deciso
sobre eles em tempo real.
Fonte: SAP

High-Performance Analytic Appliance


HANA

2015 SAP SE or an SAP affiliate company. All rights reserved.

Plataforma SAP HANA Mais do que um banco de dados


Any Apps

SAP Business One

Any App Server

HANA Platform
SQL, SQLScript, JavaScript

Supports any Device


Spatial

Search

Text
Analysis & Mining

Stored Procedure
& Data Models

Application &
UI Services

Business Function
Library

Predictive Analysis
Library

Database
Services

Graph
Engine

Rules
Engine

Integration & Streaming Services

Transaction

Unstructured

Machine

HADOOP

Real-time

Supports any application


SAP HANA is the platform
for ALL Applications

2015 SAP SE or an SAP affiliate company. All rights reserved.

60% of HANA use cases are outside of the


SAP Landscape
1,600+ start-ups & ISVs developing on
HANA

Location

Other Apps

A true platform
Converged OLTP + OLAP
Embedded business logic
Native data services

Public

Armazenamento em linhas e colunas


Tabela
Pas

Produto

Valor

US

Alpha

3000

US

Beta

1250

JP

Alpha

700

UK

Alpha

450

Linhas
Linha 1 US

Colunas
Pais

Alpha

US

3000

JP

Linha 2 US
Beta

UK
Produto Alpha

1250

Beta

Linha 3 JP

Alpha

Alpha

700
Linha 4 UK

2015 SAP SE or an SAP affiliate company. All rights reserved.

US

Alpha
Valor

3000
1250

Alpha

700

450

450

Public

11

Exemplo

1.
2.
3.
4.
5.

Realizar a soma de todas as vendas


Armazenamento por linhas - SQL

Linhas

Realizar a consulta
Encontrar a tabela
Mapear todos os
campos de valor
Realizar a soma
Retorna a informao

Linha 1 US
Alpha
3000

Linha 2 US
Beta
1250

Memoria Principal

Linha 3 JP

Alpha

5400

700

Linha 4 UK
Alpha
450

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

12

Exemplo

1.
2.
3.
4.
5.

Realizar a soma de todas as vendas


Armazenamento por colunas - HANA

Realizar a consulta
Encontrar a tabela
Mapear todos os
campos de valor
Realizar a soma
Retorna a informao

Colunas
Pais

Memoria Principal

US
US
JP
UK

Produto Alpha
Beta
Alpha
Alpha
Valor

3000
1250

5400

700
450

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

13

Exemplo

Compresso de dados
Armazenamento em colunas - HANA

Memoria Principal

Colunas
Pais

US
US
Pais

US

UK

UK
Produto

Beta
Beta
Alpha

Valor

3 US

Compresso

Produto

2 Beta
2 Alpha

Valor

3000

Alpha

1250

3000

700

1250

450

700
450

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

14

SAP Business One Analytics, powered by SAP HANA


VS
SAP Business One, version for SAP HANA

SAP Business One analytics, powered by SAP HANA

Key features

Key benefits

Enterprise search
Dashboards and analysis
Ad hoc interactive reporting

Speed and flexibility with analytics


based on an in-memory database
side by side with a transactional
server

SAP Business One, version for SAP HANA

Key features

Enterprise search
Dashboards and analysis
Ad hoc interactive reporting
Pervasive analytics
Apps available with SAP
Business One , version for SAP
HANA: advanced available-topromise (ATP) and cash flow
forecasting.

Key benefits
Real-time analytics, innovative
scenarios, and high transactional
throughput on the SAP HANA
platform

Enterprise Search

Enterprise Search

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

18

Informao correta no
momento adequado
Disponvel para todas as pessoas de acordo com o perfil

Sem a necessidade de
configurao
Uso fcil da informao

Dashboards

Dashboards

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

21

Interactive Analysis

Interactive Analysis

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

24

Pervasive Analytics

Pervasive Analytics

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

27

Apps:
ATP and Cash flow Forecasting

Available To Promise

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

30

Cash Flow Forecast

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

31

Em Resumo
SAP HANA nosso futuro

SAP Business One analytics powered by SAP HANA

Temos uma tecnologia de


ponta
Prepare-se, capacite-se
B1A como oferta para a
base instalada

SAP Business One, version for SAP HANA

Destaque-se

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

32

SAP Business One alavancando a tecnologia HANA


Posicionamento do B1, B1A e B1H
Alto

Gesto de Informaes
Analticas / Estratgicas

B1H

B1 + B1A

B1

Baixo

2015 SAP SE or an SAP affiliate company. All rights reserved.

Capacidade de processamento transacional

Alto

Public

33

Modelos de Instalao

Modelos de Instalao
On-premise

2015 SAP SE or an SAP affiliate company. All rights reserved.

Cloud

Public

35

On-premise
Hardware Certificado

64 GB
25u

96 GB
40u

128 GB
50u

18K USD*

256 GB
100u

384 GB
150u

25K USD*

1 TB
300u

512 GB
200u

60K USD*
*Valores de referncia. Consulte os fabricantes.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

36

On-premise
Parceiros

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

37

HANA Sizing

https://partneredge.sap.com/content/partnerexp/en/library/assets/products/ent_mng/sbo/about/sbo_b1h/tech_specs/tr_d_sbo_b1h_sizingtool.html

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

38

HANA Supported Hardware

https://partneredge.sap.com/en/library/assets/products/ent_mng/sbo/about/sbo_b1h/platform_info/tr_d_sbo_b1h_pfm/assetfile/Supported%20Hardware%20Platforms%20for%20SAP%20Business%20O
ne,%20version%20for%20SAP%20HANA.pdf

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

39

Cloud
Parceiros

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

40

Cloud
Configurao Certificada

https://s3.amazonaws.com/quickstart-reference/sap/B1/latest/doc/SAP_Business_One_for_HANA_on_the_AWS_Cloud.pdf

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

41

Cloud
Configurao Certificada

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

42

Cloud
Configurao Certificada

Produo
60 GB
25u

244 GB
30u

800 USD/ms*

Desenvolvimento
61 GB
N/A

122 GB
N/A

200 USD/ms*
*Valores de referncia. Consulte os fabricantes.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

43

Instalao
Suse, HANA e Business One

Windows Client

B1
Client

HANA
Client

HANA
Studio

Suse Linux Server

Business One Server

SAP HANA Platform

SUSE Linux Enterprise Server

Preparao

Arquivos de instalao

Prepare a imagem Suse Linux


Prepare os pacotes de instalao SAP HANA
Prepare os pacotes de instalao SAP Business One
SAPCAR (para os arquivos HANA)

Boot
Verifique as configuraes de BIOS para realizar o boot pelo CD

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

46

Onde esto os arquivos?

Imagem Suse Linux Enterprise Server


SAP HANA Platform
SAP Business One, version for SAP HANA

Imagem Suse Linux Enterprise Server

http://www.novell.com/docrep/2014/05/7_steps_deploy_suse.pdf

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

48

Imagem Suse Linux Enterprise Server

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

49

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

50

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

51

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

52

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

53

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B

SAP Business One Products

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

54

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B
SAP Business One Products
SAP B1 Version for SAP HANA

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

55

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B
SAP Business One Products
SAP B1 Version for SAP HANA
SAP B1 9.1 FOR SAP HANA

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

56

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Aqui so apresentados trs
grupos de instaladores:
1. Business One
Pacote de instalao do B1H
2. HANA Platform
Pacote de instalao dos
componentes da plataforma
HANA para B1
3. Elster
Pacote de instalao do
Elster para Alemanha
2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

57

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B
SAP Business One Products
SAP B1 Version for SAP HANA
SAP B1 9.1 FOR SAP HANA
Installation

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

58

Downloads dos arquivos de instalao

Arquivos Business One

Aqui so apresentados trs


arquivos que compe o pacote
de instalao completa do B1H

Selecione os trs arquivos e


adicione ao Download Manager
(Add to Download Basket)
para baixar esse pacote.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

59

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B
SAP Business One Products
SAP B1 Version for SAP HANA
SAP B1 9.1 FOR SAP HANA
HANA PLATFORM EDIT. 1.0 FOR B1

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

60

Downloads dos arquivos de instalao

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

61

Downloads dos arquivos de instalao

Support Page

https://support.sap.com/
Selecione:
Download Software
Installations & Upgrades
Alphabetical List of my Products
B
SAP Business One Products
SAP B1 Version for SAP HANA
SAP B1 9.1 FOR SAP HANA
HANA PLATFORM EDIT. 1.0 FOR B1

Linux on x86 64 64bit

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

62

Downloads dos arquivos de instalao

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

63

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

65

Downloads dos arquivos de instalao

AFL Application
Functional Library

So funes escritas em C++ e


executadas diretamente na
base de dados e, portanto, tem
melhor desempenho.
Utilizadas para operaes
complexas e processamento
intensivo de dados.
Utilizada, por exemplo, pelo
Pervasive Analytics.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

66

Downloads dos arquivos de instalao

HANA Client

o driver que permite o acesso


das aplicaes ao Banco de
Dados.

Este pacote deve ser instalado


no host (pacote para Linux
64bit) e vai permitir que
aplicaes do prprio host
tenham acesso ao HANA, como
por exemplo o Hana Studio e
os servios do Business One
(B1 Server) que sero
instalados nesta mquina.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

67

Downloads dos arquivos de instalao

HANA Server

o Sistema Gerencial da
Plataforma HANA, e do banco
de dados, ou seja, o core do
HANA, instalador principal.
ele que vai instalar os
principais servios como
indexserver, nameserver,
statisticsserver, preprocessor,
daemon.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

68

Downloads dos arquivos de instalao

HANA Studio

o responsvel pela instalao


do Eclipse (Juno) com todos os
addins SAP HANA.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

69

Configurao das parties

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

70

Instalao
Boot from CD-ROM
Choose Install/Restore with help of cursor
keys

press ENTER

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

71

Instalao
If the machine has multiple disks please
choose the smaller drive (72GB) for the OS
Normally this is /dev/sda

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

72

Instalao
Confirm that it is the right disk
Up to this point you can still abort the
installation

With confirming this step, the disk will be


formatted

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

73

Instalao
Now the operating system is copied onto the
disk

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

74

Instalao
After some messages which show the start
of some services you will see the EULA for
the SUSE Linux Enterprise Server
Scroll down <Pg-down> Or
press q (quit) to go to the end.
Accept it with y and ENTER

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

75

Instalao
Now be back in the graphical setup of the
SUSE Linux Enterprise Server
Choose your Keyboard type

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

76

Instalao
Enter you Hostname and domain name here

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

77

Instalao
Setup the network
Click on the green Network Interfaces or
use the pull-down box at the bottom

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

78

Instalao
Select the Network-Card and choose Edit

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

79

Instalao
Select the Statically assigned IP address
And enter you IP-Address and subnet mask

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

80

Instalao
Select Hostname/DNS tab
And enter your Name Server and/or Domain
Search

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

81

Instalao
Select Routing Tab
And enter your default gateway
Now your Network configuration is ready

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

82

Instalao
Next step is to set the password for the
system administrator root
Your SUSE Linux installation is ready now
and we now move on to the SAP setup

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

83

Instalao
Choose to register with the Novell Customer
Center for updates now or later

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

84

Instalao
Choose one of the following options to
continue:
Create SAP-related partitions, logical
volumes and file systems, such as /usr/sap,
/hana/shared, /hana/data, /hana/log, and
proceed to install SAP HANA, as described
in SAP HANA Installation.
Only create SAP-related partitions, logical
volumes and file systems.

Finish the wizard and proceed to OS login


prompt (Registering the Linux Operating
System).

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

85

Instalao
Now we start the Wizard part for the SAP
HANA and SAP Business One installation
First provide the path to the unpacked SAP
HANA media
This could be provided through NFS, DVD,
USB etc

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

86

Instalao
Enter the SAP HANA installation parameters
Do not change the SID NDB and the
instance number 00

Enter the Master Password

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

87

Instalao
Provide the path to the unzipped Business
One product files

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

88

Instalao
A summary window is displayed

.and we are ready!

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

89

HANA Prerequisites

HANA Prerequisites

SuSE Linux Enterprise Server from the vendor

If built from scratch (bare metal) use SAP Customer note 1310037 to ensure the OS is ready

Executing HanaHwCheck.py shows supported hardware

If the check fails on certified hardware apply the fix in note 1658845

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

91

Which ports are required?

Port number

Used by

40000-40001

System Landscape Directory,


License Service

30000-30016

HANA System

8443-8000
50000-50004

2015 SAP SE or an SAP affiliate company. All rights reserved.

HANA XS
Service Layer

Public

92

Linux Setup
OS Verification

cat /etc/SuSE-release returns support


OS version

Network properly configured

hostname i returns the ip address


hostname f returns FQDN

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

93

Linux Setup
OS Storage Verification

Verify adequate storage\


df h

Verify Partition Structure


fdisk -l

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

94

HANA Setup

HANA Setup
Navigate to directory where you decompressed the files

hdbinst: console installation of HANA


hdbsetup: graphical installation of HANA
hdbuninst: HANA uninstaller
hdbupd: HANA upgrade

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

96

HANA Setup
Navigate to directory where you decompressed the files

Ensure hdb* files and ./instruntime/sdbrun have execute permission set

chmod 754 hdb*


chmod 754 sdbrun

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

97

Graphical install with hdbsetup

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

98

Enter parameters

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

99

Enter parameters

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

100

Enter parameters

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

101

Install and Summary

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

102

Install and Summary

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

103

Install and Summary

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

104

Install Complete

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

105

Console Install - hdbinst

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

106

Console install output

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

107

HANA Upgrade

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

108

HANA Verification

OS Admin Console

HANA Studio

Process List I

Process List II

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

109

HANA Verification via OS Admin Console

su - ndbadm

HDB admin or HDBAdmin.sh

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

110

HANA Process verification via Studio

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

111

Server running verification via Process List I

su - ndbadm

HDB info

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

112

Server running verification via Process List II

ps ef | grep hdb

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

113

Business One
Server Side Setup

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

115

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

116

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

117

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

118

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

119

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

120

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

121

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

122

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

123

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

124

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

125

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

126

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

127

Business One Installation process

Informe hostname ou IP.


No deixar localhost

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

128

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

129

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

130

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

131

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

132

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

133

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

134

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

135

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

136

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

137

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

138

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

139

Business One Installation process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

140

Youtube Instalao HANA

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

141

HANA - Administrao

Agenda

Introduction

SAP Hana Studio

System Maintenance

User Maintenance

Monitoring

Tracing

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

143

Introduction

System Administration

Seeks to ensure

Uptime
Keep the system availability.

Performance
Assure that the system is running as expected.

Resources
There is no pick of resources use impacting on system behavior.

Security
Restrict system access.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

145

SAP Hana Studio

SAP HANA Studio


The SAP HANA Studio has the tools to effectively monitor the system.

Enables you to check system is running as expected

Provides possibilities to analyze issues

Contains the SAP HANA modeler

Allows you to create and manage user authorizations for SAP HANA

Manages backup housekeeping and executes database restores

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

147

SAP HANA Studio

Runs on Eclipse platform

Linux and Windows

Used by
Developers, DBA, Data Modelers, Business Architects...

Distinct perspectives

Administration
Development
Modeling
Control
Debug
Etc...

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

148

SAP HANA Studio


Perspectivas

Administration Perspective

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

150

Modeler Perspective

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

151

Development Perspective

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

152

System Maintenance

SAP HANA Services


Stop & Start a HANA System

Using SSH Client:

su ndbadm
./HDB info
./HDB stop
./HDB start

Using HANA Studio Client:

Right click on the HANA System


Stop/Start

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

154

Backups

Backup do Sistema

Backup da Empresa

Backup do Sistema

SAP HANA Services


Perform System Backup

Whole system Backup using HANA Studio:

Connect to the System

Select the Backup icon

Setup folders: log and backup

Execute Backup Wizard

Check log

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

157

SAP HANA Services


Monitoring the Backup

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

158

SAP HANA Services


Schedule Backups
How to schedule periodic backups for the SAP HANA database:

See the SCN blog post How do I use the cron to schedule a backup?
http://scn.sap.com/community/business-one/blog/2013/07/24/how-do-i-use-the-cron-to-schedule-a-backup

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

159

SAP HANA Services


Perform System Recover
Using data and log backups, the SAP HANA database can be recovered.

Recover the database to its most recent state


Recover the database to the following point in time
Recover the database to a specific data backup
Recover the database to a log position (in exceptional cases if previous recoveries failed)

1
Data backups
(external backup
destination)
2015 SAP SE or an SAP affiliate company. All rights reserved.

2
Log backups
(external backup
destination)

3
Most recent
log entries
from log area

4
Hardware
failure

Public

160

SAP HANA Services


Perform System Recover

System recover using HANA Studio:

Stop the HANA server


Right click on the system
Recover
Use the Recovery Wizard

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

161

SAP HANA Services


Perform System Recover

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

162

Backup Housekeeping

Cleaning old backups using SAP HANA Studio

Administration perspective
Backup > Backup Catalog Tab

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

163

Backup Housekeeping

Right Click on the backup to remove


Delete Older Backups.
Select Catalog and Backup location
Confirm that File System is checked

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

164

Backup Housekeeping
Review the settings and files
Download the deletion list (optional)
Finish the process

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

165

Backup da Empresa

Import and Export Schemas (SQL Commands)

Export Schema

Import Schema

Import <db_schema>.* as binary from import_path with replace;

Import Schema (with rename)

Export <db_schema>.* as binary into export_path with replace;

Import <db_schema>.* as binary from import_path with replace rename


schema old_schema_name to new_schema_name;

Detailed Information

http://scn.sap.com/community/business-one/blog/2013/11/25/sap-business-one-90-version-forsap-hana-pl04-available

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

167

Import and Export Schemas (HANA Studio)

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

168

Instalao da Licena

HANA Services
License installation

HANA is licensed per memory block

New HANA installations has a 90 day free trial

To install a new license:

On HANA Studio

Right click on the System

Properties >> License

Install License Key

*HW Key found on this same screen

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

170

HANA Auto Start

HANA Services
Enabling Auto Start

Log on to the SAP HANA host as a user with root authorization.

Change to the system profile directory


/usr/sap/<SAPSID>/SYS/profile.

Edit the profile <SID>_HDB<Instance_No>_<host_name>.

Change the parameter setting Autostart = 0 to Autostart = 1 .

Save the profile <SID>_HDB<Instance_No>_<host_name>.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

172

HANA Version Migration

SAP HANA Version Migration

SAP Note: 1943067 - Recommended configuration on SAP HANA


for upgrading to revision 67 or higher

Best practices

Avoid Statistics server problems (out of memory)

Change memory allocation parameters.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

174

Usurios

Mapa dos usurios


The root user can:
Install/upgrade SAP software
Control Business One Server
Components using
/etc/init.d/sapb1servertools
Shutdown/Restart the HANA host

The SYSTEM user can:

Perform HANA DB administrative tasks


Create HANA users
Take HANA backups
Same tasks as sa for MS-SQL

2015 SAP SE or an SAP affiliate company. All rights reserved.

The ndbadm user can:


Responsible for execution of SAP HANA
services (nameserver, indexserver,
statisticsserver and etc..)
Control SAP HANA database
Control SAP Business One Analytics

The COMMON user:


B1A user, do not change the password
Deleting this user lets you delete the
COMMON schema

Public

176

User Maintenance
Create new user

Access HANA Studio

Connect a system

Click the folder security

Right-click on users > new

Add a Role (eg Public)

Activate

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

177

User Maintenance
Roles

Set of privileges for a particular function or task. Examples:

Users read information with Excel

Data modelers

Database administration tasks and maintenance.

Roles are granted directly to users of the SAP HANA database

Roles are the standard mechanism when granting privileges

Reusable authorizations

Can be generated at runtime or in design

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

178

Monitoring

Monitoring
System Availability

Monitoring is a critical task on HANA environments.

Allows to anticipate, identify and discover where problems lies.

Avoid interruptions.

A HANA System is a set of services


Indexserver, preprocessor, nameserver e statisticsserver

The HANA System general status is the one most critical among its
services

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

180

Monitoring
System Availability

Deconhecido
Inicializado
Inicializando (erro no
sapstartsrv)
No inicializado

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

181

Monitoring
System Monitor

SAP HANA System overview

General and detailed information regarding System and resources

Host Status and Auto-Failover configuration

Alerts

Performance

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

182

2014 SAP AG or an SAP affiliate company. All rights reserved.

183

Services tab page


The Services tab page is found under the Landscape tab.

Here, you can check all services that belong to your system are
running:

Preprocessor

Name server

Index server

Statistics server

Daemon

Scripts server

XS engine

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

184

Statistics Server

You can view information from SAP HANAs


statistics server in the SAP HANA Studio.

The Statistics Server:

2015 SAP SE or an SAP affiliate company. All rights reserved.

Collects historical performance and resource


data

Issues system resource alerts

Alerts summarized on Overview tab

Details found on Alerts tab

Public

185

Alerts Generated by the Statistics Server

Alerts appear in the SAP HANA Studio on


the Overview tab for the chosen system.
Statistics tables for the system display
under the schema _SYS_STATISTICS
in the Tables folder.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

186

Checking Alerts from the Statistics Server


Alert status

Overview tab lists number of alerts per


priority category
Allows jumping into Alert details...
... which is identical to moving to
Alerts tab

2015 SAP SE or an SAP affiliate company. All rights reserved.

Alerts tab sorts individual alerts by time


period

Public

187

Configuring Alerts

2015 SAP SE or an SAP affiliate company. All rights reserved.

Set up email
alerts to your
inbox

Configure thresholds
for alerts

Enter start times


for periodic
checks

Filter the types of


alerts

Public

188

System Configuration
The Configuration tab allows you to check configuration parameters.
Hierarchy

of parameter values

Host overrules Tenant overrules


System overrules Default
Active values different from default
marked with a green dot

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

189

Tracing

Trace

Several Traces available

Detailed system information

The following traces can be configured


Trace

Configuracin defecto

Database

active

SQL

Inactive

Performance

Inactive

Kernel Profiler

Inactive

Expensive statements trace

Inactive

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

191

Trace Configuration
Activation

Administration panel > Trace Configuration

Chose Edit Configuration and activate SQL Tracing

Define the filters:


Users
Tables
Others

Use an SSH client to view the trace file


E.g: /usr/sap/HDB/HDB00/hana/trace

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

192

Diagnosis and Trace Files


To monitor system health, go to the tab with the Diagnosis Files

Double click on any log file to see the trace.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

193

SQLScript x T-SQL

SQLScript x T-SQL
Data Types
Tipos

MS SQL Server

SAP HANA DB

bit

tinyint

int

Interger

numeric

decimal

smallmoney

Smalldecimal

money

Decimal

datetime2

timestamp

datetime

timestamp

datetimeoffset

Sin supporte

smalldatetime

seconddate

Unicode

ntext

nclob

Binary

image

Blob

Others

uniqueidentifier

nvarchar

Numbers

Date/Time

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

195

SQLScript x T-SQL
Data Types
Tipos

MS SQL Server

SAP HANA DB

cursor
hierarchyid

uniqueidentifier
Others

SAP HANA do not support these


data types

sql_variant
xml

Table

All other data types of MS SQL are equal in HANA DB


Bigint, decimal, smallint, float, real, date, time, char,
varchar, text, nchar, nvarchar, ntext, binary and others

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

196

Best Practices
Coding SQL Script

Best Practices
Standardize

Avoid T-SQL code specific

Work with standard SQL

reduced rewriting code

better support

SELECT OITM."ItemCode" As CustomName FROM OITM

Select CustomName = OITM."ItemCode" FROM OITM

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

198

Best Practices
Quotes

To rename a field with an AS, use double quotes

HANA do not supports single quotes

MSSQL supports both types of quotes

select field" as "name"

from TABLE

select field" as name

from TABLE

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

199

Best Practices
Quotes & Case Sensitivity

Use double quotes around fields in all SQL operations

Fields: Case sensitive

Tables and Schemas: Case insensitive

select RDR1."Price" * RDR1."Quantity" as Total from RDR1 where


RDR1."DocEntry" = 1

select "PRICE", "price", price,"prICE from RDR1

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

200

Best Practices
Texts

Varchar, nvarchar, char, etc

All texts are Case Sensitve HANA

"Example" is distinct from "EXAMPLE" and "example"

In case you need to compare text fields user UPPER function

Select CardCode from OCRD where UPPER(Cardcode) = UPPER(user text)

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

201

Best Practices
Trim

Trim should be performed before sending text fields to the


database.

HANA does not performs automatic trim

Update "Table" SET CampoTexto" = trim('my text


WHERE "Code" = '0001';

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

202

Syntax & Functions changes

Syntax & Functions changes


COALESCE

Null returns:

ISNULL is not supported by HANA

IFNULL is equivalent.

However, COALESCE works with both MSSQL ans SAP HANA

Select coalesce(null,valor') as Field

Select isnull(null,valor') as Field

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

204

Syntax & Functions changes


CAST

There is no convert in HANA

To change a data type: CAST

Select Cast("LineTotal" as bigint) as "TotalString" from "INV1

select Convert(varchar, inv1."LineTotal") as Totalstring from OITM

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

205

Syntax & Functions changes


TIMESTAMP

There is no GetDate () on HANA

Instead, use current_timestamp

update @USERTABLE SET U_DATE" = current_timestamp where .

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

206

Query migration tool

T-SQL x SQLScript Migration


Query Migration tools

Available in SCN
Query Migration Tool for Microsoft SQL Server to SAP HANA

To Execute:
Converter.exe

<command-line parameters>
or
Configuration File

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

208

Obrigado!
Thiago Mendes
Local Product Expert
SAP Business One
thiago.mendes@sap.com

@ThiagoMendesSAP
2015 SAP SE or an SAP affiliate company. All rights reserved.

2015 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.epx for 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 SEs 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 forwardlooking 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.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

210

2015 SAP SE oder ein SAP-Konzernunternehmen.


Alle Rechte vorbehalten.
Weitergabe und Vervielfltigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrckliche schriftliche
Genehmigung durch SAP SE oder ein SAP-Konzernunternehmen nicht gestattet.

SAP und andere in diesem Dokument erwhnte Produkte und Dienstleistungen von SAP sowie die dazugehrigen Logos sind Marken oder eingetragene Marken der
SAP SE (oder von einem SAP-Konzernunternehmen) in Deutschland und verschiedenen anderen Lndern weltweit.
Weitere Hinweise und Informationen zum Markenrecht finden Sie unter http://global.sap.com/corporate-de/legal/copyright/index.epx.
Die von SAP SE oder deren Vertriebsfirmen angebotenen Softwareprodukte knnen Softwarekomponenten auch anderer Softwarehersteller enthalten.
Produkte knnen lnderspezifische Unterschiede aufweisen.

Die vorliegenden Unterlagen werden von der SAP SE oder einem SAP-Konzernunternehmen bereitgestellt und dienen ausschlielich zu Informations-zwecken.
Die SAP SE oder ihre Konzernunternehmen bernehmen keinerlei Haftung oder Gewhrleistung fr Fehler oder Unvollstndigkeiten in dieser Publikation.
Die SAP SE oder ein SAP-Konzernunternehmen steht lediglich fr Produkte und Dienstleistungen nach der Magabe ein, die in der Vereinbarung ber die jeweiligen
Produkte und Dienstleistungen ausdrcklich geregelt ist. Keine der hierin enthaltenen Informationen ist als zustzliche Garantie zu interpretieren.
Insbesondere sind die SAP SE oder ihre Konzernunternehmen in keiner Weise verpflichtet, in dieser Publikation oder einer zugehrigen Prsentation dargestellte
Geschftsablufe zu verfolgen oder hierin wiedergegebene Funktionen zu entwickeln oder zu verffentlichen. Diese Publikation oder eine zugehrige Prsentation, die
Strategie und etwaige knftige Entwicklungen, Produkte und/oder Plattformen der SAP SE oder ihrer Konzernunternehmen knnen von der SAP SE oder ihren
Konzernunternehmen jederzeit und ohne Angabe von Grnden unangekndigt gendert werden.
Die in dieser Publikation enthaltenen Informationen stellen keine Zusage, kein Versprechen und keine rechtliche Verpflichtung zur Lieferung von Material, Code oder
Funktionen dar. Smtliche vorausschauenden Aussagen unterliegen unterschiedlichen Risiken und Unsicherheiten, durch die die tatschlichen Ergebnisse von den
Erwartungen abweichen knnen. Die vorausschauenden Aussagen geben die Sicht zu dem Zeitpunkt wieder, zu dem sie gettigt wurden. Dem Leser wird empfohlen,
diesen Aussagen kein bertriebenes Vertrauen zu schenken und sich bei Kaufentscheidungen nicht auf sie zu sttzen.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

211