Sap Hana Administration Tutorial PDF
Sap Hana Administration Tutorial PDF
This tutorial will teach you SAP HANA Administration tasks in a single and distributed
environment. This tutorial is specifically focused on admin activities in HANA system -
System Management, Table Properties, License Keys, Smart data access, integration with
different non-SAP systems, security management, and audit policies in HANA system.
Audience
This tutorial has been prepared for those who have good knowledge on SAP Basis and
HANA system concepts. After completing this tutorial, you will find yourself at a moderate
level of expertise in administration and management of SAP HANA in multitenant
environment.
Prerequisites
Before you proceed with this tutorial, we assume that you are well-versed with basic SAP
Basis and HANA concepts. You should have a good exposure to SAP HANA in-memory
concepts, HANA Studio, and different options in HANA studio. If you are not aware of these
concepts, then we recommend that you first go through our short tutorials on SAP HANA
and Basis.
All the content and graphics published in this e-book are the property of Tutorials Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish
any contents or a part of contents of this e-book in any manner without written consent
of the publisher.
We strive to update the contents of our website and tutorials as timely and as precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our
website or its contents including this tutorial. If you discover any errors on our website or
in this tutorial, please notify us at [email protected].
i
SAP HANA Admin
Table of Contents
About the Tutorial .................................................................................................................................... i
Audience .................................................................................................................................................. i
Prerequisites ............................................................................................................................................ i
ii
SAP HANA Admin
Creating a Table in HANA Database Using GUI Option in HANA Studio ................................................. 36
Range Partitioning................................................................................................................................. 41
iii
SAP HANA Admin
iv
1. SAP HANA Admin ─ Overview
SAP HANA Admin
SAP HANA is an in-memory database for performing real-time data analysis, and
development of applications on the top of real-time data. HANA administration deals with
managing SAP HANA system in a single and distributed system environment. Each HANA
system can contain multi node architecture with each node containing multiple processors
for fast speed data analysis and real-time data provisioning. You can use Smart data
access to get the data from non-SAP systems without importing the data to HANA
database, and virtual tables can be used to perform read/write data operations.
Each SAP system contains multiple servers and it can be checked in HANA Studio under
Administration tab. SAP HANA Studio contains Administration Perspective (default) to
manage all admin tasks in HANA systems.
To check the landscape of HANA system, navigate to Landscape tab in HANA studio.
Services shows all the services running on HANA system.
The following screenshot shows SAP HANA system and all the key services running under
system Landscape for the same system.
You can see the service name corresponding to each server in HANA system landscape.
1
SAP HANA Admin
From the dropdown list, you can select all the host names and services that you want to
see and the status of each system.
Various details available for each service includes: Start time, CPU and Memory details,
Used Memory, Peak Used Memory, Effective Allocation Unit, Physical Memory on host, and
SQL Port.
When you click the Hosts tab, you can see the host names in the System Landscape and
the role of HANA system defined under Name server.
You can also check the status of the systems, failover status, Index server role, and
Failover group.
2
2. SAP HANA Admin ─ Architecture Overview
SAP HANA Admin
In SAP HANA system architecture, it contains all the server components that gets installed
at the time of installation. Each server has defined set of tasks and different services are
run for each server in a SAP HANA distributed environment.
The most important server system and the heart of HANA system is the Index server. This
server is responsible for processing SQL/MDX statement using engines in the Index server.
It also contains Session and Transaction Manager to keep track of completed and running
transactions.
Persistence Layer in the Index server is used for backing up data and transaction of log
files.
Following table lists all the key server components in HANA, the corresponding services,
and OS process details.
3
SAP HANA Admin
Data
To provide SAP HANA smart
Provisioning dpserver hdbdpserver
data access function.
Server
It is used to process
HTTP/HTTPS request to
Web Dispatcher Webdispatcher Hdbwebdispacher
HANA XS
Engine.
4
3. SAP HANA Admin ─ Multitenant Database
SAP HANA Admin
It is possible to set up multiple databases into a single HANA system. When you install
SAP HANA system in multiple container mode, you can setup multiple isolated databases
in single SAP HANA system. This is called Multitenant database containers.
You can also covert a single container HANA system to multiple container databases HANA
system. In multiple container HANA system, each database runs on the same
infrastructure and uses the same computing resources. However, each database contains
following components:
Database Users
Repository
Catalog
Backups
Traces and Logs
Persistence
All the database objects - tables, schemas, database views, SQL procedures - are separate
for each database. You can also perform cross-database functions in multitenant database.
In SAP HANA system, it contains multiple server - Name Server, Index Server,
Preprocessor, and XS Server. With multiple container databases, different combinations of
the above servers are used.
Name server maintains the landscape details of the system and the system databases run
the Name server. The Name server of multitenant databases doesn’t contain topology
information and this information is stored in tenant database catalog.
Preprocessor and Compile server runs on system databases as they don’t contain persist
data. Each tenant database contain its own index server and SAP HANA Classic Server
runs on the Index server of tenant database by default.
5
SAP HANA Admin
You can see the architecture of SAP HANA multiple container system in the following
screenshot. Each instance of system database runs on multiple hosts to provide scalability
and system availability. In multiple worker configuration, when a system fails, standby
instance will fail over all active databases.
In the above screenshot, you can see 2 databases distributed across three hosts in multiple
container database system.
In multiple container architecture, the system database is set up at the time of installation
of a multiple-container system or when you convert a single container system to multiple
container system. This is used to manage information about the system as a whole, and
also for tenant databases. It is used for Central System Administration in multitenant
environment.
System database contains data and user data for system administration and SAP HANA
Administration tools such as SAP HANA Studio to connect to the system database. All the
administration tasks that are performed in the system database applies to the whole
system and you can also target the configuration for a specific tenant database. System
database contains complete landscape information about Tenant components, however it
doesn’t contain topology related information.
6
4. SAP HANA Admin ─ Multiple Host Systems
SAP HANA Admin
When your SAP HANA system is installed on a single system, it is known as Single Host
System; however, when you distribute the system installation on multiple systems, it is
called Multiple Host Systems. Using multiple host systems, you can use features such
as Load Balancing and Scale Out feature of SAP HANA system. You can overcome the
hardware limitations by distributing the load of your system on multiple servers.
You can also assign different tables to different hosts using database partition to split a
single table between hosts (partitioning of tables), and to replicate tables to multiple hosts.
When SAP HANA system is installed on multiple hosts, SAP HANA Administrator can
perform start and stop, backup, or run update as a single system by taking single System
ID known as SID.
Each SAP HANA system contains its own server components for each host and the request
from the client application can be distributed to different hosts in multiple host systems.
In the above screenshot, you can see SAP HANA multiple host system architecture, where
HANA system has 3 separate instances, and each instance has its own server components.
The request from the client application can be distributed to any of the instance in this
environment.
7
5. SAP HANA Admin ─ Tools SAP HANA Admin
There are various tools that can be used to perform administration tasks in single container
or multiple container system. All the tools are used to perform database level
administration and the system level administration can be performed using SAP HANA
Cockpit.
HANA Studio is an Eclipse-based tool and is available for Window, Mac, and Unix OS.
8
6. SAP HANA Admin ─ CockpitSAP HANA Admin
This is an administration tool to manage your SAP HANA system and is based on SAP Fiori
Launchpad based navigation to access long range of HANA applications. SAP HANA cockpit
can be accessed via a web browser.
You can also use SAP HANA Cockpit in an offline mode to perform administration tasks -
starting HANA system to fix performance-related issues.
SAP HANA Cockpit with Fiori-based Launchpad shows the content in the form of tiles
arranged in groups. Using these tiles, you can access individual applications and can also
access app-specific data for immediate review.
You can also perform a drill on these tiles to see the detailed information about specific
applications.
Following roles are required to open and access tile-based SAP HANA Cockpit:
To open SAP HANA Cockpit via a web browser, you need to have browser support SAPUI5
library sap.m.
You can also open SAP HANA Cockpit via HANA Studio. Navigate on HANA system ->
Configuration and Monitoring -> Open SAP HANA Cockpit.
9
SAP HANA Admin
https://<host_FQDN>:43<instance>/sap/hana/admin/cockpit
http://<host_FQDN>:80<instance>/sap/hana/admin/cockpit
Host name is SAP HANA system name and Instance number is SAP HANA system Instance
number.
To login to SAP HANA Cockpit for offline administration, following perquisites should be
met:
You need to have credentials for Operating System user <sid> admuser created
at the time of installation.
10
SAP HANA Admin
There are two ways to open SAP HANA Cockpit in an offline mode:
https://<host>:1129/lmsl/hdbcockpit/<sid>/index.html
You can directly enter the above URL in the web browser and it opens SAP HANA Cockpit
for offline administration. You have to authenticate via Operating system user <sid>
admuser.
This method is not recommended as it transfers the password in plain text via HTTP.
https://<host_FQDN>:43<instance>/sap/hana/admin/cockpit
Navigate to SAP HANA Database Administration group -> Select SAP HANA Cockpit for
offline administration as shown in the 2nd last box of the following screenshot.
There are various options under SAP HANA Cockpit for offline mode, when you click on the
options as shown in the following screenshot -
11
SAP HANA Admin
Running
Stopping
Stopped
Initializing
When you click on this tile, it allows you to start, stop, and restart a server.
Diagnosis Files
This is used to open the log files, trace results and other diagnosis files. You can use this
tile to get the diagnosis files in zip format and it can be attached to support messages.
It is also possible to search diagnosis files to find specific words and phrases.
Note: In multitenant database containers, when you use Start option under SAP HANA
Cockpit offline administration -> Star, Restart, Stop tile -> Footer bar, Start System - this
options restarts all the tenant database systems.
When you stop a system, the status of the system under Start, Restart, and Stop tile is
changed to Stopped (red) as seen in the following screenshot.
12
7. SAP HANA Admin ─ HANA Studio
SAP HANA Admin
SAP HANA Studio is an Eclipse-based tool. SAP HANA Studio is both, the central
development environment and the main administration tool for HANA system. Additional
features are −
It is a client tool, which can be used to access local or remote HANA system.
There are various administration tasks that can be performed using SAP HANA Studio:
In SAP HANA Studio, you will find a long list of perspectives, which can be considered as
separate tools in HANA Studio. All these perspectives can be used for performing various
administrative tasks, system monitoring, and data provisioning.
To see list of all Perspectives in HANA Studio, navigate to Window tab -> Perspective ->
Open Perspective -> Other.
13
SAP HANA Admin
When you click on “Other…”, it will open the list of all the perspectives that can be used
to manage and perform system administration.
To open SAP HANA Administration, you can select SAP HANA Administration Console
Perspective default option. You can also access it via Administration button at the top.
14
SAP HANA Admin
When you click the Administration button as shown in the following screenshot, it opens
SAP HANA Administration Console. The console contains all database administration and
monitoring features of the SAP HANA studio.
Overview
Landscape
Alerts
Performance
Volumes
Configuration
System Information
Diagnosis Files
Trace Configuration
These tabs are used to perform monitoring and administration tasks in your SAP HANA
system.
Step 1: Right-click the Navigator space and click Add System. Enter HANA system details,
i.e. Host name & Instance number and click Next.
Step 2: Enter Database user name and password to connect to SAP HANA database. Click
Next and then Finish.
16
SAP HANA Admin
Once you click on Finish, HANA system will be added to System View for administration
and modeling purposes. You can see the hierarchical structure of HANA system under
HANA Studio.
Each HANA system has two main sub-nodes, Catalog and Content.
Catalog Tab: It contains all available Schemas, i.e. all data structures, tables and data,
column views, procedures that can be used in the Content tab.
Content Tab: The Content tab contains design time repository, which holds all information
of data models created with the HANA Modeler. These models are organized in Packages.
The content node provides different views on the same physical data.
17
SAP HANA Admin
Once SQL Editor is opened, Schema name can be confirmed from the name written on the
top of SQL Editor. You can create database objects using SQL statement.
To create a table −
In this SQL statement, we have created a Column table “Test1”, defined data types of the
table and the Primary Key.
Once you write Create table SQL query, click the Execute option on top of SQL editor on
the right side of the screen. Once the statement is executed, we will get a confirmation
message as follows -
Statement 'Create column Table Test1 (ID INTEGER,NAME VARCHAR(10), PRIMARY KEY
(ID))' successfully executed in 13 ms 761 μs (server processing time: 12 ms 979 μs) −
Rows Affected: 0
18
SAP HANA Admin
Insert statement is used to enter the data in the Table using SQL editor.
Click Execute.
You can right-click the Table name and use Open Data Definition to see the data type of
the table. Open Data Preview/Open Content to see the table contents.
To logoff from a system, right-click the System name in HANA Studio -> Log Off.
19
SAP HANA Admin
To login again, right-click on HANA system in System Pane -> Log On. You will be
prompted to enter the password. Enter the password and click OK. You will be logged in
to HANA system under HANA Studio. You can view all the folders and objects in HANA
system.
You can also define the user logon behavior in SAP HANA Studio startup. It allows you to
save the password for the users when HANA Studio or other user settings is open.
20
SAP HANA Admin
If you wish automatic logon takes place when the Studio is started and also to allow explicit
logon when HANA studio starts, uncheck the first option.
21
8. SAP HANA Admin ─ System Management
SAP HANA Admin
When SAP HANA system is installed, there are various components that get installed with
HANA system. It includes:
Additional Components
When the installation is complete, you may need to perform various tasks in SAP HANA
system, such as:
These tasks can be performed using various SAP HANA admin tools. Most common tools
to perform SAP HANA system management - HANA Cockpit, SAP HANA Studio.
22
9. SAP HANA Admin ─ Multitenant DB SAP
Container
HANA Admin
Management
SAP HANA system can be configured in a single container database system or multiple
container system. To set up tenant databases, your system should be configured in
multiple container mode. You can also convert a single container mode to multiple
container mode, before you create and configure tenant database.
When SAP HANA system is installed in multiple container mode, only the system database
is created initially. Tenant databases are created by the administrator and then later it can
be configured.
You can convert a SAP HANA system to support multitenant database containers using the
SAP HANA Database Lifecycle Manager (HDBLCM) resident program in the graphical user
interface.
When you convert a Single container system to multitenant database container using
HDBLCM, it can’t be reversed.
You can open SAP HANA database lifecycle Manager using the following URL in a web
browser.
https://hostname:1129/lmsl/HDBLCM/HDB/index.html
You can also open this browser from SAP HANA Studio. Right-click HANA system ->
Lifecycle Management -> Platform Lifecycle Management -> SAP HANA Platform Lifecycle
Management.
23
SAP HANA Admin
You can also perform conversion of single container to multitenant database system using
SAP HANA Cockpit. Navigate to SAP HANA Platform Lifecycle Manager.
Step 1: To create a tenant database, you need to navigate to Manage Database app of
SAP HANA Cockpit.
24
SAP HANA Admin
Step 2: To access this tile in SAP HANA Cockpit, you must have the following role
assigned: sap.hana.admin.cockpit.sysdb.roles::SysDBAdmin
Step 3: In the footer toolbar, you have to navigate to Overflow menu -> Create Tenant
Database.
Step 4: Enter the name of tenant database and the system user password. You can also
specify OS user and group of tenant database.
You can select various optional fields while creating tenant database, such as creating OS
user or to add tenant database to a group and many more.
Step 5: Once you complete the wizard, click Create Tenant Database and it may take
some time to complete the creation process.
New database that has been created has been added to manage database app in SAP
HANA cockpit. You can also check newly created tenant database using database view
command -
A HANA database administrator can start or stop the tenant databases either individually
or all in one go, by starting/stopping the whole system. A tenant database which is
individually stopped can’t be started with the whole system and you need to start it
individually.
Select the tenant database that you want to start and stop under manage database app
in HANA Cockpit. Click Start Tenant database/Stop tenant database to perform a start and
stop.
25
10. SAP HANA Admin ─ Starting a HANA System
SAP HANA Admin
Navigate to Open the System Operations app by clicking the Start, Stop, Restart tile on
the homepage of the SAP HANA cockpit for offline administration.
26
SAP HANA Admin
At the bottom, you have an option to Start the System. When you click on Start System,
database services start one by one. In case your environment contains multitenant
database containers, it starts the services of all tenant databases.
The status of the system shows “Running” when all the services are successfully started.
27
11. SAP HANA Admin ─ Stopping the HANA System
SAP HANA Admin
You can stop all SAP HANA systems using SAP HANA Cockpit for offline administration
option in HANA Cockpit. In multitenant database container system, all tenant databases
will be stopped using this option.
When all the services are stopped one by one for all the databases, it shows the status of
system as “Stopped” as shown in the following screenshot.
You can also use the SAP HANA Cockpit for offline administration to restart SAP HANA
system. In the multitenant database environment, when you select Restart from the footer
bar, it also restarts all the tenant databases.
Stopping a system is required in certain scenarios, when you have to make certain
configuration changes, maintenance, patch upgrade, or other scenarios.
To start a system, navigate to System view and right-click HANA system that you want to
start and stop -> Configuration and Monitoring -> Start System.
28
12. SAP HANA Admin ─ License Keys
SAP HANA Admin
SAP HANA License management and keys are required to use HANA database. You can
install or delete HANA License keys using HANA studio.
There are two types of permanent License keys for HANA system −
There are different License scenarios that can be used in HANA system depending on the
landscape of the system (Standalone, HANA Cloud, BW on HANA, etc.) and not all of these
models are based on the memory of HANA system installation.
When a system is locked, it is not possible to run any transactions by connecting to the
database. To renew license keys/unlock the system, only HANA user with License Admin
system privilege can connect to HANA database.
29
SAP HANA Admin
Following are the scenarios which can cause the lockdown of SAP HANA system:
When hardware license key changes and Temporary license key is used in SAP
HANA system.
SAP HANA system permanent license key expires and has not been renewed in
the grace time period of 28 days.
You are using Enforced License key and your memory consumption exceeds the
licensed amount and tolerance limit assigned.
Note: It is not possible to take a backup of HANA system when the system is locked down.
To check and install a new License key, navigate and right-click HANA system -> Properties
-> License.
It tells about License type, Start Date and Expiration Date, Memory Allocation and the
information (Hardware Key, System Id) that is required to request a new license through
SAP Marketplace.
Now to renew/install a new License key, navigate to Install License key -> Browse ->
Enter Path, is used to install a new License key. The Delete option is used to delete any
old expiration key.
All Licenses tab under License tells about the Product name, description, Hardware key,
First installation time, etc.
30
SAP HANA Admin
To delete the license key, you can use SAP HANA Studio or it can also be performed using
SQL console. Deleting a license key is required in various scenarios such as you have
installed permanent license keys with an incorrect installation number or incorrect system
number on the database.
To delete a license key, right-click HANA system -> Properties -> License -> Delete License
Key.
You can also execute the following SQL command to delete all license keys in HANA
database that results in a system lockdown.
31
13. SAP HANA Admin ─ Monitoring the HANA System
SAP HANA Admin
System Monitor in HANA Studio provides an overview of all your HANA system at a glance.
From System Monitor, you can drill down into the details of an individual system in the
Administration Editor. It tells about Data disk, Log disk, Trace disk, Alerts on resource
usage with priority.
SAP HANA alert monitoring is used to monitor the status of system resources and services
that are running in the HANA system. Alert monitoring is used to handle critical alerts like
CPU usage, disk full, FS reaching threshold, etc. The monitoring component of HANA
system continuously collects information about health, usage, and performance of all the
components of HANA database. It raises an alert when any of the component breaches
the set threshold value.
32
SAP HANA Admin
The priority of alert raised in HANA system tells the criticality of the problem and it depends
on the check that is performed on the component. Example: If CPU usage is 80%, a low
priority alert will be raised; however, if it reaches 96%, the system will raise a high priority
alert.
The System Monitor is the most common way to monitor HANA system and to verify the
availability of all your SAP HANA system components. The System monitor is used to check
all key components and services of a HANA system.
You can also drill down the details of an individual system in Administration Editor. It tells
about Data disk, Log disk, Trace disk, alerts on resource usage with priority.
33
SAP HANA Admin
Alert tab in Administrator editor is used to check the current and all other alerts in HANA
system.
It also shows the time when an alert is raised, the description of the alert, the priority of
the alert, etc.
SAP HANA monitoring dashboard shows the key aspects of system health and
configuration.
34
SAP HANA Admin
You can also use SAP HANA Cockpit for system monitoring and alerts. SAP HANA Cockpit
can be opened directly from HANA Studio or you can also open it via web browser. You
should have sap.hana.admin.roles::Monitoring or sap.hana.admin.roles::Administrator
role assigned to access SAP HANA Database Administrator catalog access.
35
14. SAP HANA Admin ─ Table Management
SAP HANA Admin
SAP HANA supports all the database functions that can be performed in a conventional
database. You can create database tables, views, triggers, synonyms, stored procedures,
and other database functions. In SAP HANA, you can create two types of tables:
Row Store
Column Store
SAP HANA column store tables are suitable to perform performance optimized read
operations and also to perform write operations. You can achieve a data compression up
to 11 times, and searches and calculations can be performed much faster as compared to
column store tables. Data Partitioning feature of SAP HANA is only available to column
store tables and SAP HANA Data modeling can be used only on column store tables.
Row store tables are more suitable for performing INSERT and UPDATE SQL statements
on small size tables.
In SAP HANA database, it is possible to join different store table types - Row store table
can be joined to a column store table but it is recommended to join similar table types
together to keep the performance high.
Once you click on New Table, it will open a window to enter the Table name. Choose
Schema name from the dropdown -> Define Table type from the dropdown list: Column
Store or Row Store.
Define data type as shown in the following screenshot, columns can be added by clicking
the (+) sign. Primary Key can be chosen by clicking the cell under Primary key in front of
Column name. Not Null will be active by default. Once columns are added, click Execute.
In the following screenshot, you can see the Table Type as Column Store. You have an
option to create a Row store table by selecting Row Store from the dropdown list.
While using SQL statement to create a table, you need to mention “Column” keyword in
Create Table command. By default, it creates a Row store table using SQL Editor.
36
SAP HANA Admin
Once you Execute (F8), right-click Table Tab -> Refresh. The new table will be reflected
in the list of tables under the chosen Schema.
Note: You can also change the table type in SAP HANA database using the following Alter
command in SQL Editor.
Data Compression
When you store column based tables in HANA database, similar data types are stored
continuous in memory. It allows you to apply various data compression techniques such
as - Run Length Compressed, Dictionary Compressed, hence reducing the space required
to store the tables. You can achieve a data compression as high as 11 times as compared
to conventional database.
37
SAP HANA Admin
Parallel Processing
With the use of multi core processors, you can perform parallel processing on column store
tables. As data is stored vertically, column operations can easily be processed on column
based tables.
38
15. SAP HANA Admin ─ Table Partition
SAP HANA Admin
Using Partitioning, you can split column store tables into smaller tables in a multiple host
system. You can even divide tables into smaller more manageable parts using partitioning.
Partitioning can be done using DML SQL statements.
When a table is partitioned it contains different set of rows for each part and Partitioning
can be done based on different algorithms - Hash Partitioning, Single Level or multilevel
Partitioning.
Partitioning Pruning
You can determine if a query can be analyzed in a particular partition. Using this method,
you can reduce the load on the system and hence improve the response time.
Example: When you partition a table based on the year, a query is executed to analyze
the data for a particular year. You can use specific partition and hence query performance
is improved.
Load Balancing
You can divide individual partitions on multiple hosts and hence a query is not processed
by a single server, results in better load balancing on all the servers hosting table
partitions.
Size Limitation
In a column store table, maximum number of rows that can be entered is around 2 billion.
You can overcome this by distributing the rows of a column table on multiple partitions
and hence the size limit is increased to 2 billion for each partition.
39
SAP HANA Admin
Hash Partitioning
Round Robin Partitioning
Range Partitioning
In Hash partitioning, rows are distributed equally to perform load balancing. You don’t
require the detailed information about table content in this Partitioning type.
As compared to Hash Partitioning, in Round Robin Partitioning rows are equally distributed
to each partition and new rows are equally assigned to each partition.
To create 4 partitions of a table using Round Robin, you can use the following SQL queries.
No primary keys should be defined.
CREATE COLUMN TABLE Table_Name (a INT, b INT, c INT, PRIMARY KEY (a,b))
PARTITION BY HASH (a, b) PARTITIONS 4
This will create 4 partitions on column a and b, and you need to specify at least one
column.
40
SAP HANA Admin
Range Partitioning
In Range partitioning, you create dedicated partitions for certain values and you should
have in-depth knowledge of table contents for partitioning columns.
This will create 4 partitions, one for partition range 1 to 10, 2 nd from 10 to 20, 3rd for value
50, and 4th for all other values.
Multilevel Partitioning
In multilevel partitioning, you can overcome the limitation of HASH and RANGE single level
partitioning to use key columns as partitioning columns. Using multilevel partitioning, you
can partition a column that is not a primary key. The most common type of multilevel
partitioning is HASH-Range Partitioning.
In Hash-Range multilevel partitioning, you implement Hash partitioning at the first level
to implement load balancing and Range partitioning at the second level to implement time-
based partitioning.
CREATE COLUMN TABLE Table_name (a INT, b INT, c INT, PRIMARY KEY (a,b))
PARTITION BY HASH (a, b) PARTITIONS 4, RANGE (c) (PARTITION 1 <= VALUES < 10,
PARTITION 10 <= VALUES < 20)
Instead of using Hash partitioning at the first level, you can also use Round Robin
partitioning and it is known as Round Robin-Range multilevel partitioning.
41
16. SAP HANA Admin ─ Table Replication
SAP HANA Admin
In SAP HANA system, it is also possible to replicate tables on multiple hosts. When you
need to join the tables or partition tables on multiple hosts, table replication is useful to
improve the performance, to reduce the load on the network in a distributed environment.
When you are using SAP BW on HANA, it doesn’t support Table replication.
When you perform table replication, it consumes the main memory and disk
space to store persistence of each replica.
Column store tables with history tables and text columns without a primary key
can’t be replicated.
This command will create a column store table with a replica on each host. You can also
replicate an existing column base table on each available host using ALTER table command
as follows:
42
SAP HANA Admin
It is also possible to drop replica of an existing table using ALTER table drop replica
command as follows.
Note:
In SAP HANA system, you can also perform consistency check on replicated tables using
the following SQL command:
43
17. SAP HANA Admin ─ Data Compression
SAP HANA Admin
Using SAP Column store tables, you can perform data compression up to 11 times, which
results in a cost-saving solution to store more data in HANA database. Column store tables
also provide faster data access, search, and complex calculations.
The ratio of uncompressed data size to compressed data size is known as Compression
Factor. The compressed table size is the size occupied by the table in the main memory
of SAP HANA database.
Object privilege: UPDATE for the table or the schema in which the table is
located
You can also load a table using SQL command. Open the SQL console and execute the
following statement:
LOAD <table_name>
UNLOAD <table_name>
44
SAP HANA Admin
Note that when you load a table, it loads the complete data and also delta storage into the
main memory of SAP HANA system.
To perform data compression, run the following SQL command to check data compression
properties.
To check the Compression ratio for a table, you can navigate to Table Definition. Go to
Runtime Information.
To see Compression Ratio, go to Columns tab. You can see the compression ratio in the
Main Size Compression Ratio [%] column.
45
SAP HANA Admin
46
SAP HANA Admin
When you run the above SQL command, compression status remains the same. You can
also force the database to reevaluate compression using the following SQL status:
47
18. SAP HANA Admin ─ SAP Solman Integration
SAP HANA Admin
You can also support your SAP HANA system by using SAP Solution Manager. To make two
systems communicate with each other, you need to register your SAP HANA system to
SAP solution manager’s System Landscape Directory (SLD). This directory contains the
information about the landscape and software component versions. A SAP system can be
configured to register under SLD. SLD manages the information about all installable and
installed elements of your system landscape.
Important Checks
To register your SAP HANA system under SLD, you should meet the following
prerequisites:
Your SAP HANA system should be installed with SAP HANA Database Lifecycle
Manager (HDBLCM).
To perform the integration of SAP HANA system under SLD, open SAP HANA Database
Lifecycle Manager GUI. You can open SAP HANA Database Lifecycle Manager via HANA
cockpit or via HANA Studio -> Platform Lifecycle Manager.
48
SAP HANA Admin
Navigate to Configure System Landscape Registry Configuration under SAP HANA Platform
Lifecycle Management.
SLD Host Name ─ Name of the host where the SLD system is installed.
SLD Port ─ Enter the standard HTTP access port of the SLD.
SLD User Name ─ Enter the user of the SLD system. It must be a user that
already exists on the host where the SLD system is running.
Use HTTPS ─ Here you can mention whether to use HTTPS or not.
Click the Run button to finish the configuration under System Landscape Directory.
You can also perform the above steps from the command line, by executing the following
command:
./hdblcm --action=configure_sld
Enter the above specified parameters using command line. Select ’y’ to finalize the
configuration under SLD.
49
19. SAP HANA Admin ─ Lifecycle Management
SAP HANA Admin
SAP HANA Lifecycle Management includes two features in HANA system: Platform Lifecycle
Management for performing updates and customizing SAP HANA platform, and Application
Lifecycle Management to manage applications based on SAP HANA system and transports.
Following are the key features under SAP HANA Platform Lifecycle Manager:
You can integrate your SAP HANA system with business solutions such as - SAP
Solution Manager by registering under System Landscape Directory SLD.
You can add and configure additional components, rename your HANA system or
you can convert a single container system to multiple container system and vice
versa as shown in the following screenshot.
50
SAP HANA Admin
In the above screenshot, you can see different options under SAP HANA Platform Lifecycle
Management.
SAP HANA Platform Lifecycle Management can be accessed via three ways:
Model: Define Package structure, define package hierarchy, and assign packages
to Delivery Units for application development.
Assemble: Assemble your developed product and translation delivery units for
assembling your add-on product.
Install: Install products and software components from SAP Support Portal.
51
SAP HANA Admin
You can click HANA Application Lifecycle Management from here or can be opened
directly using the web browser.
http://<WebServerHost>:80<SAPHANAinstance>/sap/hana/xs/lm
52
SAP HANA Admin
In SAP HANA Cockpit, you can use tiles available in the SAP HANA Application Lifecycle
Management and in the SAP HANA Application Installation and Update groups. These tiles
can be customized as per your requirement.
sap.hana.xs.lm.roles::Administrator
This role is required to perform all read and write operations in the SAP HANA Application
Lifecycle Management and to grant access privilege to other uses in SAP HALM
environment.
sap.hana.xs.lm.roles::Developer
This role is required to perform changes and to work on the change list and add objects to
the change list from the development perspective.
sap.hana.xs.lm.roles::ExecuteTransport
This role is required to perform specific transport operations but they can’t perform system
register or maintain systems, define new transport routes, delivery units, or new packages
in the repository.
These roles can be assigned to the users using SAP HANA Cockpit or under SAP HANA
Studio -> Security tab.
53
SAP HANA Admin
In the above screenshot, you can see different SAP HANA Application Lifecycle
Management roles that can be assigned to the users for performing development and
transport tasks.
54
20. SAP HANA Admin ─ Securing HANASAPSystem
HANA Admin
You should also manage the users and roles, auditing activities in SAP HANA, encryption
of data in HANA database, and client certificates in the system.
SAP HANA system has many security settings that should be implemented carefully
otherwise any misconfiguration can result in a risk of unauthorized access.
SAP HANA Cockpit and HANA Studio provides you with different options to monitor critical
security settings.
55
SAP HANA Admin
You can check the status of security on each tile under SAP HANA Security Overview. You
can further drill down by clicking on any tile to see more details.
56
21. SAP HANA Admin ─ User Provisioning
SAP HANA Admin
SAP HANA user and role management configuration depends on the architecture of your
HANA system. If SAP HANA is integrated with BI platform tools and acts as a reporting
database, then the end user and the role are managed in the application server.
If the end user directly connects to SAP HANA database, then the user and the role in the
database layer of HANA system is required for both end users and administrators.
Every user who wants to work with HANA database must have a database user with
necessary privileges. User accessing HANA system can either be a technical user or an end
user depending on the access requirement. After successful logon to the system, the user’s
authorization to perform the required operation is verified. Executing that operation
depends on the privileges that the user has been granted. These privileges can be granted
using roles in HANA Security. HANA Studio is one of the powerful tools to manage the user
and the roles for HANA database system.
User Types
User types vary according to the security policies and different privileges assigned to the
user profile. User type can be a technical database user or an end user. The user needs
access to HANA system for reporting the purpose or for data manipulation.
Standard Users
Standard users are the users who can create objects in their own Schemas and have Read
access in the system Information models. Read access is provided by PUBLIC role, which
is assigned to every standard user.
57
SAP HANA Admin
Restricted Users
Restricted users are those users who access HANA system with some applications and they
don’t have SQL privileges on HANA system. When these users are created they don’t have
any access initially.
Restricted users can’t create objects in HANA database or their own Schemas.
They don’t have access to view any data in the database as they don’t have
generic Public role added to profile like standard users.
Create users
Grant roles to users
Define and create roles
Delete users
Reset user passwords
Reactivate users after too many failed logon attempts
Deactivate users when it is required
58
SAP HANA Admin
When you expand the security tab, it gives an option of User and Roles. To create a new
user, right-click on the User and go to New User. A new window will open where you define
User and User parameters.
Enter the user name (mandate) and in the Authentication field enter the password.
Password is applied while saving password for a new user. You can also choose to create
a restricted user.
The specified role name must not be identical to the name of an existing user or role. The
password rules include a minimal password length and a definition of which character
types (lower, upper, digit, special characters) have to be part of the password.
Different authorization methods can be configured such as SAML, X509 certificates, SAP
Logon ticket, etc. Users in the database can be authenticated by varying mechanisms:
External mechanisms such as Kerberos, SAML, SAP Logon Ticket, SAP Assertion
Ticket or X.509.
59
SAP HANA Admin
It also gives an option to define the validity of the user. You can mention the validity
interval by selecting the dates. Validity specification is an optional user parameter.
There are some users that are by default delivered with the SAP HANA database: SYS,
SYSTEM, _SYS_REPO, _SYS_STATISTICS.
Once this is done, next is to define the privileges for the user profile.
Granted Role
This is used to add inbuilt sap.hana roles to the user profile or to add custom roles created
under Roles tab. Custom roles allow you to define roles as per access requirement and
you can add these roles directly to the user profile. This removes the need to remember
and add objects to a user profile every time for different access types.
60
SAP HANA Admin
Public Role
This is a generic role and is assigned to all database users by default. This role contains
read-only access to system views and execute privileges for some procedures. These roles
cannot be revoked.
Modeling
It contains all privileges required for using the information modeler in the SAP HANA
studio.
System Privileges
There are different types of System privileges that can be added to a user profile. To add
system privileges to a user profile, click on the (+) sign.
System privileges are used for Backup/Restore, User Administration, Instance start and
stop, etc.
Content Admin
It contains the similar privileges as that in MODELING role, but with the addition that this
role is allowed to grant these privileges to other users. It also contains the repository
privileges to work with imported objects.
61
SAP HANA Admin
Data Admin
This is another type of privilege that is required for adding Data from the objects to the
user profile.
AUDIT OPERATOR - Authorizes the execution of the following command: ALTER SYSTEM
CLEAR AUDIT LOG. Also allows access to AUDIT_LOG system view.
BACKUP ADMIN - Authorizes BACKUP and RECOVERY commands for defining and
initiating backup and recovery procedures.
CATALOG READ - Authorizes the users to have unfiltered read-only access to all system
views. Normally, the content of these views is filtered based on the privileges of the
accessing user.
CREATE SCHEMA - Authorizes the creation of database schemas using the CREATE
SCHEMA command. By default, each user owns one schema. With this privilege, the user
is allowed to create additional schemas.
62
SAP HANA Admin
DATA ADMIN - Authorizes reading all data in the system views. It also enables the
execution of any Data Definition Language (DDL) commands in the SAP HANA database.
A user having this privilege cannot select or change data stored tables for which they do
not have access privileges, but they can drop tables or modify table definitions.
EXPORT - Authorizes export activity in the database via the EXPORT TABLE command.
Note that besides this privilege, the user requires the SELECT privilege on the source tables
to be exported.
IMPORT - Authorizes the import activity in the database using the IMPORT commands.
Note that besides this privilege, the user requires the INSERT privilege on the target tables
to be imported.
LICENSE ADMIN - Authorizes the SET SYSTEM LICENSE command to install a new
license.
LOG ADMIN - Authorizes the ALTER SYSTEM LOGGING [ON|OFF] commands to enable or
disable the log flush mechanism.
OPTIMIZER ADMIN - Authorizes the ALTER SYSTEM commands concerning SQL PLAN
CACHE and ALTER SYSTEM UPDATE STATISTICS commands, which influence the behavior
of the query optimizer.
ROLE ADMIN - Authorizes the creation and deletion of roles using the CREATE ROLE and
DROP ROLE commands. It also authorizes the granting and revocation of roles using the
GRANT and REVOKE commands.
Activated roles, meaning roles whose creator is the pre-defined user _SYS_REPO, can
neither be granted to other roles or users nor dropped directly. Users having ROLE ADMIN
privilege are also not able to do so. Please check documentation concerning activated
objects.
SAVEPOINT ADMIN - Authorizes the execution of a savepoint process using the ALTER
SYSTEM SAVEPOINT command.
Components of the SAP HANA database can create new system privileges. These privileges
use the component-name as the first identifier of the system privilege and the component-
privilege-name as the second identifier.
63
SAP HANA Admin
Object/SQL Privileges
Object privileges are also known as SQL privileges. These privileges are used to allow
access to objects like Select, Insert, Update and Delete of tables, Views, or Schemas.
Object/SQL Privileges are collection of all DDL and DML privileges on database
objects.
64
SAP HANA Admin
There are multiple database objects in HANA database, so not all the privileges are
applicable to all kinds of database objects.
65
SAP HANA Admin
Analytic privileges are used to limit the access on HANA Information Views at the object
level. We can apply row and column level security in Analytic Privileges.
Allocation of row and column level security for specific value range
Allocation of row and column level security for modeling views
Package Privileges
In the SAP HANA repository, you can set package authorizations for a specific user or for
a role. Package privileges are used to allow access to data models - Analytic or Calculation
views or on to Repository objects. All privileges that are assigned to a repository package
are assigned to all sub packages too. You can also mention if the assigned user
authorizations can be passed to other users.
Step 1: Click Package privilege tab in HANA studio under User creation ->Choose
(+) sign to add one or more packages. Use Ctrl key to select multiple packages.
Step 2: In the Select Repository Package dialog, use all or part of the package
name to locate the repository package that you want to authorize access to.
Step 3: Select one or more repository packages that you want to authorize access
to, the selected packages appear in the Package Privileges tab.
66
SAP HANA Admin
Following grant privileges are used on repository packages to authorize the user to modify
the objects -
REPO.READ: Read access to the selected package and design-time objects (both
native and imported)
Grantable to Others
If you choose ‘Yes’ for this, this allows assigned user authorization to pass to the other
users.
Application Privileges
Application privileges in a user profile used to define authorization for access to HANA XS
application. This can be assigned to an individual user or to a group of users. Application
privileges can also be used to provide different level of access to the same application such
as to provide advanced functions for database administrators and read-only access to
normal users.
67
SAP HANA Admin
68
22. SAP HANA Admin ─ Authentication SAP
Methods
HANA Admin
All SAP HANA users who have access to HANA database are verified with different
Authentication methods. SAP HANA system supports various types of authentication
methods and all these login methods are configured at the time of profile creation.
User name/Password
Kerberos
SAML 2.0
SAP Logon tickets
X.509
User Name/Password
This method requires HANA user to enter the user name and password to login to
database. This user profile is created under User management in HANA Studio -> Security
Tab.
Password should be as per password policy. For example - Password length, complexity,
lower and upper case letters, etc. You can change the password policy as per your
organization’s security standards.
69
SAP HANA Admin
Kerberos
All users who connect to HANA database system using an external authentication method
should also have a database user. It is required to map the external login to the internal
database user.
This method enables the users to authenticate HANA system directly, using JDBC/ODBC
drivers through the network or by using front-end applications in SAP Business Objects.
It also allows HTTP access in HANA Extended Service using HANA XS engine. It uses
SPENGO mechanism for Kerberos authentication.
SAML
SAML stands for Security Assertion Markup Language and can be used to authenticate the
users accessing HANA system directly from ODBC/JDBC clients. It can also be used to
authenticate the users in HANA system, coming via HTTP through HANA XS engine.
70
SAP HANA Admin
SAML is used only for authentication purposes and not for authorization.
The user in trusted certificate should exist in HANA system as there is no support for user
mapping.
71
SAP HANA Admin
SAML
Kerberos
X.509 client certificates for HTTP access from HANA XS engine
SAP Logon/Assertion tickets
You can also use SAP HANA Cockpit for performing user and role management tasks.
72
23. SAP HANA Admin ─ Auditing Activities
SAP HANA Admin
SAP HANA audit policy specifies the actions to be audited and also the condition under
which the action must be performed to be relevant for auditing. Audit Policy defines what
activities have been performed in HANA system and who has performed those activities at
what time.
SAP HANA database auditing feature allows to monitor the action performed in HANA
system. SAP HANA audit policy must be activated on HANA system to use it. When an
action is performed, the policy triggers an audit event to write an audit trail. You can also
delete audit entries in Audit trail.
In a distributed environment, where you have multiple database, Audit policy can be
enabled on each individual system. For the system database, audit policy is defined in
nameserver.ini file and for tenant database it is defined in global.ini file.
In SAP HANA Cockpit, Auditing tile is available under SAP HANA Security Overview as in
the following screenshot.
When you open Auditing App, navigate to Configuration tab and select Edit button from
the bottom.
73
SAP HANA Admin
Next, select Auditing status to Enabled. You have to configure multiple audit trail targets:
one for the system (Overall Audit Trail Target), and optionally one or more for the severity
of audited actions that is the audit level of the corresponding audit entries.
If you do not configure a specific target for an audit level, audit entries are written to the
audit trail target configured for the system.
By default, database table is default audit trail target. You can also select - Syslog, CSV
text file for audit trail target.
74
SAP HANA Admin
Step 2: On the right side, create Audit Policy button. Click the Create Audit Policy button
and enter the Policy name.
Step 3: Select the status of Audit Policy. You can select Enabled/Disabled option.
SUCCESSFUL - The action is audited only when the SQL statement is successfully
executed.
UNSUCCESSFUL - The action is audited only when the SQL statement is unsuccessfully
executed.
ALL - The action is audited when the SQL statement is both successfully and
unsuccessfully executed.
Step 5: Select the audit level. The audit level specifies the severity of the audit entry
written to the audit trail when the actions in the policy occur.
75
SAP HANA Admin
Step 6: Select Audit Trail Target. Audit entries triggered by this policy will be written to
the specified audit trail target(s).
Step 7: Enter the actions to be audited by clicking the add button and selecting the
relevant actions.
There are different Actions that can be selected using Add Action button as shown in the
following screenshot.
In Add action, you need to enter the target object(s) to be audited by clicking the add
button and selecting the relevant objects. You can also select actions to be audited. For
example: SELECT, INSERT, UPDATE, DELETE, and EXECUTE. You can click the Save button
to SAVE the policy.
76
SAP HANA Admin
Note: You can manage Auditing Policy in SAP HANA Studio as well. Please check our SAP
HANA tutorial -
https://www.tutorialspoint.com/sap_hana/sap_hana_auditing.htm
77
24. SAP HANA Admin ─ Backing Up HANA System
SAP HANA Admin
SAP HANA backup and recovery is used to perform HANA system backups and recovery of
system in case of any database failure.
To view backup details, you can navigate to SAP HANA Backup app in HANA Cockpit. You
can see the last backup status on the main screen and it can be customized.
When you open Data Backup app, you can see different options related to data backup.
You can create a new backup or you can add schedules.
You can also see the last backup status, time, duration, size and destination type details
under Backup Catalog details.
78
SAP HANA Admin
You can also perform SAP HANA Backup using HANA Studio. Navigate to Backup Folder in
System view.
Overview Tab
This tab specifies the status of the currently running data backup and last successful data
backup.
Configuration Tab
This tab specifies the Backup interval settings, file-based data backup settings, and log-
based data backup setting.
Configure the connection to a third-party backup tool by specifying a parameter file for
the Backint agent.
You can also limit the size of data backup files. If the system data backup exceeds this set
file size, it will split across the multiple files.
79
SAP HANA Admin
Log backup settings specify the destination folder where you want to save log backup on
the external server. You can choose a destination type for log backup.
Backint − Special named pipe exists on the file system, however, require no disk space.
You can choose backup interval from the dropdown. It tells the longest amount of time
that can pass before a new log backup is written.
Enable Automatic log backup option - Checking this option, helps to keep the log area
vacant. If you disable this option, the log area will continue to fill and cause the database
to hang.
Backup wizard is used to specify backup settings. It specifies the Backup type, Destination
type, Backup Destination folder, Backup prefix, the size of backup, etc.
Click Next -> Review Backup settings -> Finish. It runs the system backups and shows
the time of complete backup for each server.
80
25. SAP HANA Admin ─ Recovery of HANA System
SAP HANA Admin
To recover SAP HANA database, the database needs to shut down. Hence, during recovery,
the end users or SAP applications cannot access the database.
A disk in the data area is unusable or a disk in the log area is unusable.
Point in Time: Used for recovering the database to the specific point in time. For this
recovery, the data backup and log backup have to be available, since last data backup and
the log area are required to perform the above type of recovery.
Specific Data Backup: Used for recovering the database to a specified data backup.
Specific data backup is required for the above type of recovery option.
Specific Log Position: This recovery type is an advanced option that can be used in
exceptional cases where a previous recovery failed.
81
26. SAP HANA Admin ─ HANA XS Application Service
SAP HANA Admin
In SAP HANA system, there are many tools that can be used to manage application
development in HANA XS Service Classic model and Advance model. You can provide
administering and support services to XS service model or you can also perform
development under SAP HANA system.
HANA XS Application service includes tools available under SAP HANA XS Administration
Cockpit or you can also use SAP HANA Studio to maintain application development under
HANA XS service.
Following are the various roles that exist under SAP HANA system to manage XS
Application Service.
HTTPDestAdministrator
Full access to the details of HTTP destination configurations (display and edit).
HTTPDestViewer
Read-only access to HTTP destination configurations, which are used to specify connection
details for outbound connections. For example, using the server-side JavaScript
Connectivity API that is included with SAP HANA XS.
RuntimeConfAdministrator
Full access to the configuration settings for SAP HANA XS application security and related
user-authentication providers.
RuntimeConfViewer
Read-only access to the configuration settings for SAP HANA XS application security and
related user-authentication providers. For example, SAML or X509.
82
SAP HANA Admin
There are various roles that exist in SAP HANA system to manage HANA XS Application
Service as shown in the above screenshot.
XS Artifact Administration
This is used to maintain runtime configurations for individual applications or a complete
application hierarchy.
83
SAP HANA Admin
XS Job Dashboard
This is used to monitor and maintain SAP HANA XS job schedules defined using the XS job
syntax.
Trust Manager
This is used to maintain certificates which are used to establish trust relationships between
servers used by SAP HANA XS applications.
SMTP Configuration
This tile is used to define the details of SMTP server that is available for use by all
applications running on an SAP HANA XS server.
Navigate to xsengine.ini file under the configuration tab and expand the folder. You can
view the various configuration parameters as shown in the following screenshot.
84
SAP HANA Admin
Application_container
This contains list of all the applications trusted by XS Engine.
Communication
This contains application-related connection requests and configuration.
Customer_usage
This defines customer specific usage details for HANA application service.
Debugger
This is used to manage debugger settings.
Httpserver
This provides SAP HANA XS Web Server details. Other options under xsengine.ini is used
to define SAP HANA XS application service configuration.
85
27. SAP HANA Admin ─ Data Provisioning
SAP HANA Admin
SAP HANA Replication allows the migration of data from source systems to SAP HANA
database. A simple way to move data from the existing SAP system to HANA is by using
various data replication techniques.
System replication can be set up on the console via command line or by using HANA studio.
The primary ECC or transaction systems can stay online during this process. There are
three types of data replication methods in HANA system −
There is a trusted RFC connection between HANA DB and ECC transaction system, which
enables trigger-based data replication in HANA system environment.
It enables to read the business data at the Application layer. You need to define data flows
in Data Services, scheduling a replication job, and defining the source and the target
system in data store in Data Services designer.
DXC is a batch-driven process and data extraction using DXC at certain interval is enough
in many cases. You can set an interval when batch job executes, for example, every 20
minutes. In most of the cases it is sufficient to extract data using these batch jobs at
certain time intervals.
You can check complete details about Data Provisioning in our SAP HANA tutorial -
https://www.tutorialspoint.com/sap_hana/data_replication_overview.htm
86
28. SAP HANA Admin ─ Smart Data Access
SAP HANA Admin
In SAP HANA system, you can use Smart Data Access (SDA) option to replicate data to
HANA database from other data sources where you create virtual tables, which are linked
to tables in the remote system. You can perform read/write operations on these virtual
tables - SELECT, Insert, and Update.
Different types of remote systems can be used under Smart Data Access:
SAP HANA
Sybase
Teradata
Apache Hadoop
Oracle
All the above remote data sources are supported under HANA SPS07 or higher. Older
version of SAP HANA supports only - Sybase, Apache Hadoop, and Teradata.
87
29. SAP HANA Admin ─ New Remote SAP
System
HANA Admin
Connection
To create a new remote connection, navigate to Data Provisioning tab -> New Remote
Sources.
Enter Source name and select Adapter from the dropdown list. On the right hand side, you
have option to Test the Connection. You can also run to create the data source.
Once you set up the connection, it can be used to perform read/write functions in remote
system and to join the tables for data provisioning.
88
30. SAP HANA Admin ─ Integration withSAPHadoop
HANA Admin
In SAP HANA system, you can also integrate SAP HANA computing power with Hadoop to
process huge amount of data at faster speed. Hadoop system is used for storing huge
amount of unstructured data and HANA provides high speed data analysis.
To use Smart Data Access to connect to Hadoop system in HANA Studio, select Adapter
Name: Hadoop.
You can also use the following SQL statement to create a remote connection to connect to
Hadoop system. We have selected Authentication type as Password here:
89
SAP HANA Admin
Enter the above SQL statement in HANA Studio SQL editor and click the Execute button.
This way you can integrate your SAP HANA system with Hadoop using Smart data
integration in HANA Studio.
90
31. SAP HANA Admin ─ Key Commands
SAP HANA Admin
This command will display the details of HANA database such as the host name, database,
user, Kernel version, SQLDBC version, etc.
The above command displays the following result about concurrent sessions:
91
32. SAP HANA Admin ─ Job Responsibilities
SAP HANA Admin
Following are certain experiences and capabilities required to handle the job responsibility
of HANA Admin.
HANA system administration using SAP HANA Cockpit and HANA Studio.
92