SAP HANA Administr Administration ation Guide 2013
Contents
1. About this guide The purpose of this SAP HANA administration guide is to centralize a variety of product-specific information for technical practitioners so they can quickly become familiar ith the SAP HANA administration! This guide serves as a quick start " reference guide for all those ho are orking on and planning to do administration related ork on SAP HANA! Since the information is in one location# practitioners save time by not having to search through installation guides# $SS notes# and other technical information before starting to ork on SAP Hana! All the administration steps mentioned in this document have been tested using specific SAP documentation! This guide also identifies ne guidelines hen it comes to administering Hana# describe lessons learned# and provide links to additional information that ill help practitioners get started! This admin guide is not intended to replace official SAP documentation# nor should they be used in this ay! Practitioners should familiarize themselves ith the official SAP technical guide%s& and critical $SS notes! Also this guide focuses only at SAP HANA solution and not other HANA solutions like '( poered on Hana etc!
2. Executive summary SAP HANA is a modern platform for real-time analytics and applications! )t enables business to analyze their operations based on a large volume and variety of detailed data in real time and ith an amazing subsecond response time! The platform can be deployed as an appliance! SAP in-memory computing is the core technology underlying the SAP HANA platform! SAP HANA appliance softare is a fle*ible# multipurpose# datasource- agnostic# in-memory appliance that combines SAP softare components optimized on hardare provided and delivered by leading SAP technology partners# such as +isco# ,ell# )'# HP# and .u/itsu# using the )ntel 0eon processor! )t runs on Suse 1inu* $perating system! The appliance includes a number of integrated SAP softare components# including the SAP HANA database# data and lifecycle management applications# support for multiple interfaces based on industry standards# and the SAP HANA studio# an easy-to-use data modeling and administration tool!
3. Lessons learned 2! SAP HANA 3!4 runs on the operating system 1inu* S5S6 S16S 33 SP3" *78-82! 9ou need to select the packages sysstat and graphviz during the installation of the operating system :! The server softare for the SAP HANA database is only available on S5S6 1inu* 6nterprise Server *78-82! 8! )t is alays recommended to have Hana database# client on the same patch level! Hana studio can be latest revision# as it is backard compatible! ;! The folloing platforms are supported for Hana client icrosoft (indos *<= and *82 versions of> ? (indos 0P ? (indos @ista
? (indos ; S5S6 1inu* 6nterprise Server> ? *78 82-bit> minimum version 1inu* S16S33 SP3 ? *78 <=-bit> minimum version 1inu* S16S 33 7! (hen installing Hana client the folloing are installed S1,'+ $,'+ B! Supported platform for Hana studio is icrosoft (indos *<= and *82 versions of> ? (indos 0P ? (indos @ista ? (indos ; S5S6 1inu* 6nterprise Server S16S 33> *78 82-bit version
34!6very user created in Hana database creates the corresponding schema also and that user is the oner of the schema and has full access rights! The schema oner can grant access to his schema to other users 33! Point in time recovery and log backup of Hana database is introduced in SP
15.
Assumptions
3! The operating system used for client tools is indos 38!Hana platform edition is u sed for installation of SAP Hana Softare!
17.
Reuired materials
3! SAP guide> http!""help.sap.com"hana#appliance =! SAP guide > http!""service.sap.com"hana a! 384<8;3 E SAP HANA 3!4 softare components and softare donload b! 3:32B8; E SAP HANA +entral note c! 3:=<<<; E SAP )n-emory ,atabase 3!4 central note d! 3:32B88 E SAP HANA 3!4 Sizing SAP )n-emory ,atabase e! 384432; E SAP HANA 3!4 SPS= Delease note f! 382=B<; E SAP HANA Appliance Softare SPS 4< Delease note g! 382:37< E +hanging log mode for SAP HANA ,' after SPS= to SPS< upgrade h! 38BB333 E 1icense key update in SAP HANA prior to rev =8 i! 3;4<23; E SAP HANA database revision =8 /! 3872=:: E SAP HANA appliance# revision =: of SAP HANA database k! 38;
1$.
%ana &nstallation
SAP Hana ,atabase# client and studio softare is available for donload from the folloing site http!""service.sap.com"s'dc G )nstallation and 5pgrades G 'rose our donload catalog G SAP Net(eaver and complementary products G SAP Hana G SAP Hana Platform 6dition G SAP Hana Platform 6dit 3!4 Patches to SAP Hana ,atabase# client and studio can be donloaded from
http!""service.sap.com"s'dc G Support Packages and Patches G 'rose our ,onload +atalog G SAP Net(eaver and complementary products G SAP HANA G SAP HANA P1AT.$D 6,)T)$N G SAP HANA P1AT.$D 6,)T 3!4 )nstalling Hana ,atabase via installation manager on single host system 3! 1og on to the Hana Suse 1inu* server as root user =! o to the directory here the Hana database softare is e*tracted
ention installation parameters
,efine IsidJadm passord# and leave the defaults
Specify the data and log area
ention database user passord
Devie the information entered and click )nstall# to install the Hana ,atabase
)nstalling Hana ,atabase via command line on single host system 3! 1og on to the Hana Suse 1inu* server as root user =! o to the directory here the Hana database softare is e*tracted
)nstalling Hana +lient on 1inu*! 3! ,onload and e*tract the softare to an empty directory =! 1ogin to the Hana server as root user K!"hdbsetup Ea clientL +ommand 1ine > K!"hdbinst Ea clientL 2! .ollo the instruction displayed by the installation tool :! Set the environment variable 1,C1)'DAD9CPATH to the installation path 8! 1og out of root user
)nstallation Hana client softare on indos environment!
3! ,onload and e*tract the softare to an empty directory =! o to the directory here the softare is donloaded "program files"sap" Please note that Hana client is installed on indos server here '$'F is also installed# so the nessary drivers are available for '$'F to connect to Hana database!
)nstallation of Hana Studio via installation manager on indos 3! ,onload and e*tract the softare to an empty directory =! o to the directory here the softare is donloaded ""program files"hdbstudio
)nstallation of Hana Studio via command on indos 3! ,onload and e*tract the softare to an empty directory =! $pen command indos
:! 6nter the installation directory! ,efault is IdriveJ>""program files"sap 8! There are = installation log files ritten# O!log and O!msg! they are stored in %TEMP %\hdb_studio_
)nstallation of Hana Studio via command on 1 inu* 3! 1og on ith root user =! o to the directory here the softare is donloaded
1(.
%ana )pdate
5pdating Hana ,atabase to neest revision 3! 6nsure that no users are logged into the database or using the Hana database! =! 1og on to the system as root
:! Specify the sequence number of the system to be upgraded as shon belo
8!
After successful upgrade logs file are ritten to "var"tmp"hdbCIS),JCupgradeCIT)6STAPJ!log
5pdating Hana +lient in 1inu* 3! 6nsure that no users are logged into the database or using the Hana database! =! 1og on to the system as root
5pdating Hana Studio in 1inu* 3! 1og on to the system as root =! o to the directory here Hana update softare for studio is donloaded and e*tracted %eg! "softare"SAPCHANACST5,)$&
5pdating Hana Studio in (indos 3! o to the directory here Hana Studio is donloaded and e*tracted
=! 6*ecute the program Mhdbsetup!e*e
.or more information on )nstallation and update# please refer to the *A+ %ana &nstallation guides.
2,.
Adding %ana *ystem in *tudio
$nce SAP HANA Studio is installed you can access the Hana server by adding the system in the Studio! 'elo are the steps for adding the Hana system in the studio! 3! )n the indos machine here you have installed studio# go to Start G Program G SAP HANA and click on SAP HANA Studio program =! Dight click on Navigator panel and select Add System as shon belo
2! 6nter the Hana database username and passord and click ne*t
:! )n the ne*t screen# leave default and click finish
8! )f the database username# passord and connection parameters are correct then connection is established successfully and you see the system catalog and schemas in the database as shon belo
;! At first# the system status of Hana server shos yello! ,o the folloing to make it turn green! a! )n the SAP HANA studio# choose (indo G Preferences G eneral G Netork +onnections G Active provider and change the value from Native to ,irect# as shon belo
b! Add in the hostfile of your indos machine ere Hana studio is running the folloing entries 34!337!4!74
Hana-Small
Hana-Small!solutions!glbsnet!com
$nce both the above steps are done# the status of the Hana system in the studio turns green! Please note that# since Hana server runs on 1inu* and domain names are not applicable# you have to do step Mb above! This ensures that the Hana system status is green# hich also allos you to start and stop the Hana system from the studio directly!
21.
%ana *tudio -perations
9ou can do the folloing operations in Hana Studio
Start and Stop Hana system To Stop Hana system# right click on the Hana system in the studio and click on stop! The status turns to grey once the Hana system is stopped successfully! 1ogs of stop is displayed in the studio!
To start the Hana system# right click on the Hana system in the studio and click on start! The status turns to green upon successful starting of Hana system!
Administration View To vie the administration console of Hana server in studio# either right click on the Hana system in studio and select MAdministration or click on Administration icon in the navigator as shon belo
OR
Setting database parameters ,atabase parameter such as ,ata @olume path# log backup p ath# database backup path# log b ackup timeout# log mode etc can be set directly from the Studio! )n the Administration vie# go to +onfiguration tab and e*pand global!ini and under persistence you have all the database related parameter that can be ad/usted!
SQL Editor 9ou can open sql editor directly in studio and query from the database! To do so right click on Hana system in studio and select sql editor or click on sql editor icon in navigator as sho belo
OR
Creating users Please note that# in Hana database# creating users via studio also creates the respective schema# ith the same name as the user name and that corresponding user is the full oner of that schema! )n order to give permissions to other users to the created schema# you must log in as that schema user and grant the privileges! .or eg! if user Mtest is created via studio# schema Mtest is also automatically created! $nly test users has full permission on schema test and can create ob/ects under schema test! )f another user ants
to add ob/ects to the test schema# then you have to login as test user into the Hana database via studio and grant respective privileges to other user! Also you can create users by e*ecuting create user query in the sql editor! 9ou can create schema only via the sql editor query and assign a user oner of that schema! 9ou cannot create schema only %ithout user& via studio! )n studio it only has option to create user and schema together! To create Hana database user via studio# follo belo steps 3! 1ogin to the Hana Studio and e*pand the system and then Authorization! Dight click on users and select ne G user# as shon belo
=! 6nter the username and initial passord and select the authorization tab such as Mranted Doles# MS1 Privileges# MAnalytic Privileges# MSystem Privileges# MPackage Privileges and click on the button to add the respective authorization for the user! Please refer to the *A+ %AA /atabase *ecurity guide for more information on Hana database security!
Adding Schema privileges to other users To give permission to create# select# e*ecute# delete ob/ects in a schema to other users apart from the schema oner# follo the belo steps 3! 1ogin as the schema oner!
=! 6*pand the system and authorization menu and under users# right click on the user# hom you ant to add to your schema and select open
and enter your schema name! Select the
2! 5nder privileges section on the right# check the desired privileges you like to give and hether you ant these privileges grantable to other users and click save! This ill add the user to your schema and that user then can perform the respective action!
System privileges Authorization tab Msystem privileges# has number of administrator roles such as backup admin# data admin# create schema# license admin etc! These privileges allos the user to perform specific administration task! )n order to restrict the user from any administration task# remove that respective privilege under system privilege tab!
Applying License Key via Hana Studio To request Hana system license key# you need Hardare ey and S),! 9ou can get the Hana system Hardare ey details in the studio by right clicking on the system and selecting properties and then 1icense!
$nce you get the Hana license# follo the belo steps to apply the license via studio 3! Dight click on the Hana system in studio ere you ant to apply the license and select properties =! 5nder 1icense# click on )nstall 1icense ey button
22.
%ana 0onitoring
)n Hana Studio# there are types of onitoring activity# hich can be carried out# as described belo 3! System onitoring > )n Hana studio under navigator# the system monitor button displays information such as system status# ,ata disk total and used size# log disk total and used size# memory utilized# percentage of +P5 consumed etc
=! Also via Hana studio database logs and trace files can be vieed! To do that# go to administration vie in Hana studio and open M,iagnosis .iles tab! 9ou can see all the Hana system logs and traces under this tab! ,ouble clicking the log# trace files opens the content!
23.
%ana /atabase 4ac6up and Recovery.
Hana ,atabase data and log files# including the configuration files can be backed up and recovered directly from the Hana Studio! The user used to perform the backup and recovery should have system privileges such as 'A+5PCA,)N# +ATA1$CD6A,!'A+5PCA,)N# +ATA1$CD6A,! The backup process is e*ecuted as operating system user IsidJadm on 1inu* Also belo are some of the points to be noted# regarding the Hana database backup!and recovery •
,ata backup in only available in operational mode online
•
During data backup, the system is available as usual
•
,uring recovery# the database cannot be accessed by end-users and applications!
•
The backup and recovery process cannot be used for system copies!
•
'ackup only supports files as backup media! 'ackup to pipes"tapes is not supported!
•
Provide all data and log backups at the beginning of a recovery
•
$nce started# backup or recovery cannot be canceled
•
)f a recovery fails# the complete recovery must be repeated
•
•
The configuration path for data and log backup must be defined system ide and not hostspecific )t is not possible to create a system copy using backup and recovery!
Bacup To start the database backup# perform the folloing steps! 3! )n Hana studio login ith the user ho has the above mentioned backup privileges =! Dight click on the system and select backup# as shon belo
2! +lick ne*t and revie the backup settings as shon belo
:! +lick .inish to start the backup! 'ackup progess indos appears as shon belo
8! $nce backup is successful# backup e*ecution summary displays the results as shon belo!
;! +opy the configuration files %ini files& from the folder "usr"sap"IsidJ"S9S"global"custom"config to the backup location!
!ecovery To start recovery of Hana system# follo the belo steps 3! 1og on to Hana Studio ith the user ho has the respective system privileges to do recovery! =! Dight click on the system in Hana studio and select recovery
2! +onfirm system shutdon by checking Mconfirm the system can be shutdon hen recovery start
:! )n the ne*t screen# select the recovery type! )n this test# most recent state is selected!
8! Specify the backup file location of both data and log files in the ne*t screen
;! )n the ne*t screen# revie the information entered and click .inish to start the recovery!
7! 5pon successful recovery# status message is displayed B! +opy the configuration files backup manually to the respective folders!