You are on page 1of 12

Getting started with

SAP HANA
What you should know if youve been handed a live HANA
instance without training
Chris Kernaghan
SAP Mentor, Hacker, Technology
lover
Twitter - @BoobBoo
Google+ - Chris Kernaghan
About.me/BoobBoo

Thanks in advance
This presentation would not have been possible without the tireless works
of others
Andy Silvey - @andysilvey
John Appleby - @applebyj
Paul Aschmann - @paups

This presentation assumes that you have been handed a HANA instance
without any Solution Manager configuration
I would appreciate a tweet to these people because they are supporting
the community in amazing ways as are many others not mentioned here
This presentation does not replace proper training, it is
something to try and keep you out of trouble whilst you are
learning GO ON HA200!

Server Software and versions


HANA Service packs are released every 6 months
current version is SP8
HANA Release SP9 is due out soon
Several ways to update the software Command line
driven or GUI driven hdblcm and hdblcmgui. This is part of
HANA Appliction Lifecycle Management
HANA editions
Platform
Enterprise
Suite or NW on HANA or HANA Live

Client software and troubleshooting


SAP HANA Client software is paired with the Database
software it is best to keep them matched together
Primary client development platform is Eclipse aka SAP
HANA Studio
1577128 - Supported clients for SAP HANA
Application software uses connectors like JDBC, ODBC,
HDBC from the OS level
1732157 - Collecting Diagnosis Information For SAP
HANA

Server Performance
SAP HANA administration is primarily Command line driven
deal with it!
Learn how to script in JavaScript, SQL, Jruby use resources
like Github, Stack Overflow to get borrow the code of others.
Guaranteed you are not the only person to face these issues
External software can be installed to help monitor service
performance see SAP notes 1730928, 1730929
Get to know your Database Views schedule queries to
provide performance stats for automation.
HANA client software can provide GUI views of performance

Query performance
HANA for Suite/NW or Native have to be catered for
Poor SQL design can and will cripple your database performance
Like most databases HANA has views which detail the current processes
running as well as their resource utilisation
Very useful view PUBLIC"."M_EXPENSIVE_STATEMENTS
Out of memory dumps 1984422 - SAP HANA: Analysis of Out-of-memory (OOM) Dumps
Best Practice Guide Considerations for Custom ABAP Code During a Migration to SAP HANA.
Optimizing Custom ABAP Code for SAP HANA
The New ABAP SQL Monitor.pdf

User creation and security


Standard Users SYSTEM and <sid>adm, also technical users
Security is operation and object based with privileges assigned
directly or indirectly to users and or groups cumulative design
HANA Security is not a BASIS task, please do not make it one
especially for HANA Native instances, it should be Database security
All operations can be security audited and reported against
Useful hint for remote database connection via Solution Manager to
HANA Native - DBA Cockpit users
1640741 DB users for the DBA Cockpit for SAP HANA
Useful hint Reset HANA System user password
Useful hint Reactivating
the SYSTEM user when no User with USER ADMIN is Available -

Web and XS engine


WEB IDE is preconfigured in SP7, in addition to HANA
Studio it is a fully featured IDE Link
Several roles need to be allocated to users in order to
use the Web IDE
XS Engine is very like ICM so monitoring is based on
same principle
Simplest test for XS running, so can use CURL or other
Web page monitoring applications
http://<yourserver>:<ICM Port>
Xsite scripting attacks Onapsis X1 (Free trial available)

Logs and traces


HANA database file system is very like SAP application file system
Location of Configuration Files - $DIR_INSTANCE/../SYS/global/hdb
Trace Files Location /usr/sap/&trace

HANA can output logs in Syslog format this means you can pump it
into External Best of Breed tools like LogStash
As usual - performance penalties exist for auditing and tracing events
Enabling HANA System wide traces 1627480
Native auditing performance problems 1991634 - Performance problems when enabling native auditing in
SAP HANA Database

SAP Note1993251
SAP Note 1993254

Mobile and Web monitors for HANA


Solution Manager is not the only game in town HANA
is also for non-SAP deployments!
Several excellent examples

Metric2 Open Source & Free & Mobile App!!!, Link


Syslink Xandria Paid, Link
Zabbix Open Source & Free, Link
Monitiq Paid, Link
Community Projects on SCN - Link

Change management outside CTS+

Example HANA daily tasks


1.Check first if all the services are running fine
2.Run Unique checker
3. Check for CRASH dumpsif Any
4.check SLT - if any table has error status
5.Check LTRas well :
6.clean up the garbage memory: 7. Validate Backup - Successful backup taken on
**/**/** . Next Back Up on **/**/**.
8.
1977584 - Technical Consistency Checks for SAP HANA
Databases

You might also like