0% found this document useful (0 votes)
1K views191 pages

TADM55 EN Col19 EX LTR

Uploaded by

sasha2004*
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views191 pages

TADM55 EN Col19 EX LTR

Uploaded by

sasha2004*
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 191

TADM55

Installing and Administering SAP


HANA 2.0

.
.
EXERCISES AND SOLUTIONS
.
Course Version: 19
Exercise Duration: 11 Hours 20 Minutes
Material Number: 50165759
SAP Copyrights, Trademarks and
Disclaimers

© 2024 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 https://www.sap.com/corporate/en/legal/copyright.html 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 may have been machine translated and may contain grammatical errors or inaccuracies.
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 SE’s or its affiliated companies’ strategy and possible
future developments, products, and/or platform directions and functionality are all subject to change and
may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The
information in this document is not a commitment, promise, or legal obligation to deliver any material, code,
or functionality. All forward-looking statements are subject to various risks and uncertainties that could
cause actual results to differ materially from expectations. Readers are cautioned not to place undue
reliance on these forward-looking statements, which speak only as of their dates, and they should not be
relied upon in making purchasing decisions.

© Copyright. All rights reserved. iii


Typographic Conventions

American English is the standard used in this handbook.


The following typographic conventions are also used.

This information is displayed in the instructor’s presentation

Demonstration

Procedure

Warning or Caution

Hint

Related or Additional Information

Facilitated Discussion

User interface control Example text

Window title Example text

© Copyright. All rights reserved. iv


Contents

Unit 1: Discovering SAP HANA

No exercises

Unit 2: Preparing the Installation

1 Exercise 1: Explore the HA200 Training Landscape

Unit 3: Installing the SAP HANA Database System

6 Exercise 2: Install a Single-Host SAP HANA System


11 Exercise 3: Generate the Installation Template File

Unit 4: Installing the SAP HANA Cockpit

14 Exercise 4: Install SAP HANA Cockpit


19 Exercise 5: Retrieve the SAP HANA Cockpit URLs
22 Exercise 6: Configure and Open SAP HANA Cockpit
34 Exercise 7: Update SAP HANA Cockpit

Unit 5: Performing the Post-Installation Tasks

40 Exercise 8: Update SAP HANA


46 Exercise 9: Create and Rename a Tenant Database
54 Exercise 10: Work with SAP HANA HDBSQL and HDBUSERSTORE

Unit 6: Working with Database Explorer

60 Exercise 11: Opening SAP HANA Database Explorer


63 Exercise 12: Import Demo Data and Tables
67 Exercise 13: Display Table Data
70 Exercise 14: Create a Table and Manually Load/Unload Table Data
74 Exercise 15: Use the SAP HANA Statement Library

Unit 7: Monitoring using the SAP HANA Cockpit

77 Exercise 16: Monitor Key Health Indicators


80 Exercise 17: Determine Memory Usage of SAP HANA Services
83 Exercise 18: Determine the Tenant Database Memory Usage
87 Exercise 19: Check for SAP HANA Alerts

© Copyright. All rights reserved. v


Unit 8: Administering using SAP HANA Cockpit

93 Exercise 20: Use Different Methods to Start and Stop the SAP HANA
Database
106 Exercise 21: Change SAP HANA Configuration Parameters with SAP
HANA Cockpit
111 Exercise 22: Set Up Restricted Features and Blocked Parameters
117 Exercise 23: Manually Trigger a Delta Merge Operation
121 Exercise 24: Configure SAP HANA Traces

Unit 9: Performing Backup and Recovery

127 Exercise 25: Performing Data Backups


133 Exercise 26: Schedule Data Backups
137 Exercise 27: Check the Parameter Settings for the Log Backup
140 Exercise 28: Recover a Tenant Database
146 Exercise 29: Create a Fallback Snapshot

Unit 10: Describing SAP HANA Security Features

151 Exercise 30: Back Up the Encryption Root Keys


154 Exercise 31: Enable Audit Policy

Unit 11: Performing User and Authorization Maintenance

161 Exercise 32: Create Admin Roles


172 Exercise 33: Create an Admin User and Assign the Generic
Database Administration Role

Unit 12: Describing SAP ABAP Systems on SAP HANA

177 Exercise 34: Optional: Monitor SAP HANA with DBA Cockpit

© Copyright. All rights reserved. vi


Unit 2
Exercise 1

Explore the HA200 Training Landscape

Business Example
The hardware partner has installed the sandbox SAP HANA host in your data center. You are the
responsible administrator for this system and need to perform some initial tests on the host so
that you can sign off on the delivery of the sandbox system.

1. All participants: Access the assigned HA200 SAP Learning Cloud training system landscape.

Caution:
If you are an SAP Learning System Access customer, follow the provided SAP
Learning System Access instructions. You can skip this step and continue with
step 2.

2. All participants: Initialize your HA200 – SAP Learning Cloud training system session by
running the Initialize_HANA script found in the Initialize Course folder.
Result
You have initialized the course landscape and all the required course files are copied to the N:
\HA200 folder. Have fun with the HA200 training.

Note:

What Content Is in the N:\HA200 Folder?


In the Putty_RDP_Scripts folder, you find the scripts RDPConnectHA2xx.bat
and SSHConnectHA2xx.bat. You can use these scripts to quickly open the RDP
or ssh sessions to the different hosts.
In the SAP Note 1969700 folder, you can find the file SQLStatements.zip,
which will be used during the Using SAP HANA Mini Checks exercise.
In the URLs folder, you find the links to the SAP HANA Cockpit Administrator and
to the SAP HANA Cockpit Manager applications. You can use these shortcut links
instead of typing the complete URL.

3. All participants: From your HA200 – SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to your Linux host using the Microsoft Remote Desktop
application.
Field Participant 1 Value Participant 2 Value
Linux Server: wdflbmt7346 wdflbmt7347

© Copyright. All rights reserved. 1


Unit 2: Preparing the Installation

Field Participant 1 Value Participant 2 Value


Root User: haroot haroot

Password: W3lcome123 W3lcome123

Note:
Do not close the Xrdp session – you need it several times during the HA200
course.

Result
You are now connected to the Xrdp desktop on your Linux server.

4. All participants: From your HA200 – SAP Learning Cloud training system desktop, open an
ssh shell session to your Linux host using the SSHConnectHA2xx.bat script.

Field Participant 1 Value Participant 2 Value


Linux Server: wdflbmt7346 wdflbmt7347

Root User: haroot haroot

Password: W3lcome123 W3lcome123

Note:
Do not close the ssh session. You need it several times during the HA200 course.

Result
You are now connected to your Linux server, the haroot user, using an SSH shell.

5. All participants: Check the SAP HANA file system size and type of the Linux server assigned to
you.
Field Participant 1 Value Participant 2 Value
Linux Server: wdflbmt7346 wdflbmt7347

© Copyright. All rights reserved. 2


Unit 2
Solution 1

Explore the HA200 Training Landscape

Business Example
The hardware partner has installed the sandbox SAP HANA host in your data center. You are the
responsible administrator for this system and need to perform some initial tests on the host so
that you can sign off on the delivery of the sandbox system.

1. All participants: Access the assigned HA200 SAP Learning Cloud training system landscape.

Caution:
If you are an SAP Learning System Access customer, follow the provided SAP
Learning System Access instructions. You can skip this step and continue with
step 2.

a) All participants, please connect to the assigned HA200 SAP Learning Cloud training
system landscape as explained by your instructor.

2. All participants: Initialize your HA200 – SAP Learning Cloud training system session by
running the Initialize_HANA script found in the Initialize Course folder.
a) In your HA200 – SAP Learning Cloud training system session, open the Microsoft
Windows Start menu, and in the application list, scroll down to the Initialize Course folder,
and select it to open.

b) In the Initialize Course folder, select the item Initialize_HANA to open it.

c) In the Browse For Folder dialog box, follow the path HANA → HANA_19 → HA200, and
select the OK button.

Note:
Only select the top-level HA200 directory. All of its sub-directories will be
recursively copied to the N:\HA200 folder.

d) In the dialog box: You entered : \\wtstraining\KPS_Cloud\HANA_HANA_19\HA200,


choose the OK button.

Result
You have initialized the course landscape and all the required course files are copied to the N:
\HA200 folder. Have fun with the HA200 training.

© Copyright. All rights reserved. 3


Unit 2: Preparing the Installation

Note:

What Content Is in the N:\HA200 Folder?


In the Putty_RDP_Scripts folder, you find the scripts RDPConnectHA2xx.bat
and SSHConnectHA2xx.bat. You can use these scripts to quickly open the RDP
or ssh sessions to the different hosts.
In the SAP Note 1969700 folder, you can find the file SQLStatements.zip,
which will be used during the Using SAP HANA Mini Checks exercise.
In the URLs folder, you find the links to the SAP HANA Cockpit Administrator and
to the SAP HANA Cockpit Manager applications. You can use these shortcut links
instead of typing the complete URL.

3. All participants: From your HA200 – SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to your Linux host using the Microsoft Remote Desktop
application.
Field Participant 1 Value Participant 2 Value
Linux Server: wdflbmt7346 wdflbmt7347

Root User: haroot haroot

Password: W3lcome123 W3lcome123

a) If you have the directory N:\HA200\Putty_RDP_Scripts still open in the File Explorer,
you can continue with exercise step d.

b) Open the Microsoft Windows Start menu and select the File Explorer tile.

c) In the File Explorer window, navigate to the drive WDFLBMT7086 → Application (N:) →
HA200 → Putty_RDP_Scripts folder.

d) In the Putty_RDP_Scripts folder, choose the RDPConnectHA2xx.bat file, and open it.

e) In the HA200 – Open Remote Desktop sessions pop-up window, select the key number
that corresponds with the host that was assigned to you by your instructor.

f) In the Remote Desktop Connection – Unknown publisher dialog box, choose Connect to
continue the logon process.

g) In the Remote Desktop Connection – Identity of remote computer cannot be verified dialog
box, choose Yes to continue the logon process.

h) On the Login to <Linux Server> window, enter your <Root User> and <Password>
credentials from the above table, and choose the OK button.

© Copyright. All rights reserved. 4


Solution 1: Explore the HA200 Training Landscape

Note:
Do not close the Xrdp session – you need it several times during the HA200
course.

Result
You are now connected to the Xrdp desktop on your Linux server.

4. All participants: From your HA200 – SAP Learning Cloud training system desktop, open an
ssh shell session to your Linux host using the SSHConnectHA2xx.bat script.

Field Participant 1 Value Participant 2 Value


Linux Server: wdflbmt7346 wdflbmt7347

Root User: haroot haroot

Password: W3lcome123 W3lcome123

a) Open the Microsoft Windows Start menu and select the File Explorer tile.

b) In the File Explorer window, navigate to the drive WDFLBMT7086 → Application (N:) →
HA200 → Putty_RDP_Scripts folder.

c) In the Putty_RDP_Scripts folder, choose the SSHConnectHA2xx.bat file, and open it.

d) In the HA200 – Open SSH sessions pop-up window, select the key number that
corresponds to the host that was assigned to you by your instructor.

e) If there is a PuTTY Security Alert pop-up window, choose Yes to continue.

Note:
Do not close the ssh session. You need it several times during the HA200 course.

Result
You are now connected to your Linux server, the haroot user, using an SSH shell.

5. All participants: Check the SAP HANA file system size and type of the Linux server assigned to
you.
Field Participant 1 Value Participant 2 Value
Linux Server: wdflbmt7346 wdflbmt7347

a) In the ssh session, enter the following command:


df -Th | grep hana

b) What is the file system type shown for the SAP HANA file systems? . . . . . . . . . . . . .

c) What is the file system size shown for the SAP HANA file systems? . . . . . . . . . . . . .

© Copyright. All rights reserved. 5


Unit 3
Exercise 2

Install a Single-Host SAP HANA System

Business Example
The implementation team has decided that your company's SAP ERP system on AnyDB will be
migrated to SAP S/4HANA, which runs exclusively on SAP HANA. Accordingly, the members of
the IT department require knowledge on the new database system. To facilitate this, you will use
a sandbox server to perform a test installation of the SAP HANA database system. On this
sandbox, you will install a single-host SAP HANA 2.0 SPS07 database system. This sandbox
system will later be used to test configuration changes and for the update to the latest SAP HANA
2.0 SPS07 maintenance revision.

1. All participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use hdblcmgui to install a single-host SAP HANA database system on the
Linux server assigned to you using the input data from the following table:
Field Participant 1 Value Participant 2 Value

Local Host Name wdflbmt7346 wdflbmt7347

Installation Path /hana/shared /hana/shared

SAP HANA System ID H46 H47

Instance Number 00 00

Local Host Worker Group default default

System Usage custom custom

Enable backup encryption Select Select

Enable data and log volume Select Select


encryption
Apply System Size Dependent Select Select
Resource Limits
Restrict maximum memory Deselect Deselect
allocation?
Installation password Welcome1 Welcome1

© Copyright. All rights reserved. 6


Exercise 2: Install a Single-Host SAP HANA System

4. All participants: Use the command-line tool HDB to check that all the SAP HANA services are
running.
Field Participant 1 Value Participant 2 Value
<sid> h46 h47

© Copyright. All rights reserved. 7


Unit 3
Solution 2

Install a Single-Host SAP HANA System

Business Example
The implementation team has decided that your company's SAP ERP system on AnyDB will be
migrated to SAP S/4HANA, which runs exclusively on SAP HANA. Accordingly, the members of
the IT department require knowledge on the new database system. To facilitate this, you will use
a sandbox server to perform a test installation of the SAP HANA database system. On this
sandbox, you will install a single-host SAP HANA 2.0 SPS07 database system. This sandbox
system will later be used to test configuration changes and for the update to the latest SAP HANA
2.0 SPS07 maintenance revision.

1. All participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use hdblcmgui to install a single-host SAP HANA database system on the
Linux server assigned to you using the input data from the following table:
Field Participant 1 Value Participant 2 Value

Local Host Name wdflbmt7346 wdflbmt7347

Installation Path /hana/shared /hana/shared

SAP HANA System ID H46 H47

Instance Number 00 00

Local Host Worker Group default default

System Usage custom custom

Enable backup encryption Select Select

Enable data and log volume Select Select


encryption
Apply System Size Dependent Select Select
Resource Limits
Restrict maximum memory Deselect Deselect
allocation?
Installation password Welcome1 Welcome1

© Copyright. All rights reserved. 8


Solution 2: Install a Single-Host SAP HANA System

a) In the graphical Xrdp desktop session, open a terminal window by opening the context
menu (right-click) and selecting the Open in Terminal option.

b) In the terminal window, navigate to the directory where the hdblcmgui tool is located using
the following command:
cd /data/training/setup/install/DATA_UNITS/HDB_LCM_LINUX_X86_64

c) In the HDB_LCM_LINUX_X86_64 directory, check the content using the command ls -lh
and verify that the hdblcmgui exists.

d) In the terminal window, enter the command ./hdblcmgui and select the Enter key to
start the SAP HANA lifecycle management tool.
This starts the graphical version of the SAP HANA lifecycle management tool.

e) In the Select Software Components Locations window, choose Next to continue.

f) In the Install new SAP HANA Database System window, choose Install New System, and
then Next to continue.

g) In the Select additional components for installation window, keep the first option Install
SAP HANA Database Client version <no.>, but deselect the second option,
Install SAP HANA Local Secure Store version <no.>. Choose Next to
continue.
Attention: During the HA200 training, we only use the SAP HANA Database and the SAP
HANA Database Client software components. All of the other components are not needed
and should NOT be installed.

h) In the Choose System Type window, select the Single-Host System option, and choose
Next to continue.

i) In the Specify the System Properties window, enter the input data from the above table
(keep the default settings for the options that are not mentioned), and choose Next to
continue.

j) In the Specify the Data and Log Area window, accept the default locations, and choose
Next to continue.

k) In the Specify the Properties of the System Administrator window, enter and confirm the
installation password from the above table, keep the default values for all the other input
fields, and choose Next to continue.

l) In the Specify Password of System Database User 'SYSTEM' window, enter and confirm
the installation password from the above table, and choose Next to continue.

m) In the Specify the Properties of the SAP Host Agent User window, enter and confirm the
installation password from the above table, and choose Next to continue.

n) In the Summary window, note the warning about the needed backup of the root keys after
the installation, check the installation input parameters that you provided, and choose
Install to start the SAP HANA installation.

© Copyright. All rights reserved. 9


Unit 3: Installing the SAP HANA Database System

Hint:
The installation takes around 10 minutes.

o) After the installation has finished, check the logs by choosing one of the View Log buttons
in the SAP HANA Database System installed window. Review the installation log and when
you are done, close the opened log file by choosing the Close button.

p) Close the SAP HANA lifecycle management tool by choosing the Finish button.

4. All participants: Use the command-line tool HDB to check that all the SAP HANA services are
running.
Field Participant 1 Value Participant 2 Value
<sid> h46 h47

a) If you closed the Terminal window, then open a terminal window by opening the context
menu (right-click) on the desktop and choosing Open in Terminal.

b) In the terminal, enter the following command:


su – <sid>adm

c) In the terminal, execute the following command:


HDB info

This command shows an overview of all locally running SAP HANA database system
services.

d) To leave the <sid>adm user session, enter exit.

e) To close the terminal, enter exit.

© Copyright. All rights reserved. 10


Unit 3
Exercise 3

Generate the Installation Template File

Business Example
The administration team has decided that they want to be able to automate the SAP HANA
deployments as much as possible. To make this work, you need to generate and review an
installation configuration template file using the hdblcm tool.

1. All participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use the command line-tool hdblcm to generate the installation configuration
template file.

4. All participants: Review the content of the installation configuration template file
HA200_hdblcmTemplate.cfg

5. All participants: From the file HA200_hdblcmTemplate.cfg, find out if the SSH Key is
installed automatically.

6. All participants: Close the text editor by selecting the [X] (close button).

7. All participants: To close the terminal, enter exit.

© Copyright. All rights reserved. 11


Unit 3
Solution 3

Generate the Installation Template File

Business Example
The administration team has decided that they want to be able to automate the SAP HANA
deployments as much as possible. To make this work, you need to generate and review an
installation configuration template file using the hdblcm tool.

1. All participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use the command line-tool hdblcm to generate the installation configuration
template file.
a) If you closed the Terminal window, then open a terminal window by opening the context
menu (right-click) on the Xrdp desktop session and choosing Open in Terminal.

b) To change to the SAP HANA installation media directory, execute the following command:
cd /data/training/setup/install/DATA_UNITS/HDB_LCM_LINUX_X86_64/

c) To generate the installation configuration template file, execute the following command:
./hdblcm --dump_configfile_template=/root/HA200_hdblcmTemplate.cfg

4. All participants: Review the content of the installation configuration template file
HA200_hdblcmTemplate.cfg
a) To change to the home directory of the haroot user, use the following command:
cd /root

b) To open and review the file HA200_hdblcmTemplate.cfg, execute the following


command:
gedit HA200_hdblcmTemplate.cfg

Caution: In the HA200 SAP Learning Cloud training system landscape, the text editor gedit
cannot be used in a PuTTY session. So, if you did not use Xrdp, and used PuTTY in the
former steps, use the following command:
less HA200_hdblcmTemplate.cfg

5. All participants: From the file HA200_hdblcmTemplate.cfg, find out if the SSH Key is
installed automatically.
a) In the opened file HA200_hdblcmTemplate.cfg, use the key combination [Ctrl+f] to
open the search window (this only works in gedit, not in a PuTTY session).

© Copyright. All rights reserved. 12


Solution 3: Generate the Installation Template File

b) In the Search popup, search for install_ssh_key.


Caution: In the HA200 SAP Learning Cloud training system landscape, the text editor gedit
cannot be used in a PuTTY session. So, if you did not use Xrdp, and used PuTTY in
combination with the command less, perform the search with:
/install_ssh_key

Is the SSH Key automatically installed?

6. All participants: Close the text editor by selecting the [X] (close button).

7. All participants: To close the terminal, enter exit.

© Copyright. All rights reserved. 13


Unit 4
Exercise 4

Install SAP HANA Cockpit

Business Example
You want to use SAP HANA cockpit to monitor and manage all the SAP HANA database systems
centrally. To accomplish this, you need to install SAP HANA cockpit on a central server.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In the training
landscape, the SAP HANA cockpit is installed only once on a central server. To
accomplish this, Participant 1 and Participant 2 must work together on the central
SAP HANA cockpit server to install and configure SAP HANA cockpit 2.0 correctly.
The installation and upgrade tasks should be divided as follows:
● Participant 1 installs the SAP HANA cockpit 2.0.
● Participant 2 performs the upgrade of the SAP HANA cockpit 2.0 in a later
exercise.

1. Participant 1: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 1: From your HA200 SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to the SAP HANA cockpit host using the
RDPConnectHA2xx.bat script.

Caution:
For this task, Participant 1 and Participant 2 need to work together on the SAP
Learning Cloud training system desktop of Participant 1.

Field Value
SAP HANA Cockpit host: wdflbmt7350

Root User: haroot

Password: W3lcome123

3. Participant 1: Use hdblcmgui to install SAP HANA cockpit on the host wdflbmt7350.

© Copyright. All rights reserved. 14


Exercise 4: Install SAP HANA Cockpit

Field Value
Local Host Name: wdflbmt7350

Installation Path: /hana/shared

SAP HANA System ID: H4C

Instance Number: 96

Master password: Welcome1

© Copyright. All rights reserved. 15


Unit 4
Solution 4

Install SAP HANA Cockpit

Business Example
You want to use SAP HANA cockpit to monitor and manage all the SAP HANA database systems
centrally. To accomplish this, you need to install SAP HANA cockpit on a central server.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In the training
landscape, the SAP HANA cockpit is installed only once on a central server. To
accomplish this, Participant 1 and Participant 2 must work together on the central
SAP HANA cockpit server to install and configure SAP HANA cockpit 2.0 correctly.
The installation and upgrade tasks should be divided as follows:
● Participant 1 installs the SAP HANA cockpit 2.0.
● Participant 2 performs the upgrade of the SAP HANA cockpit 2.0 in a later
exercise.

1. Participant 1: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 1: From your HA200 SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to the SAP HANA cockpit host using the
RDPConnectHA2xx.bat script.

Caution:
For this task, Participant 1 and Participant 2 need to work together on the SAP
Learning Cloud training system desktop of Participant 1.

Field Value
SAP HANA Cockpit host: wdflbmt7350

Root User: haroot

Password: W3lcome123

a) From your SAP Learning Cloud training system desktop, in the File Explorer, open the
folder N:\HA200.

© Copyright. All rights reserved. 16


Solution 4: Install SAP HANA Cockpit

b) In the N:\HA200 folder, double-click the folder Putty_RDP_Scripts.

c) In the Putty_RDP_Scripts window, double-click the RDPConnectHA2xx.bat file to execute


it.

d) In the HA200 - Open Remote Desktop sessions window, select the number that
corresponds with the wdflbmt7350 host in your landscape.

e) In the Remote Desktop Connection – Unknown publisher window, choose Connect.

f) On the Remote Desktop Connection – Identity of remote computer cannot be verified


dialog box, choose Yes to continue the logon process.

g) In the Login to wdflbmt7350 window, enter the credentials from the above table, and
choose OK.
You are now connected as the haroot user to the SAP HANA cockpit host.

3. Participant 1: Use hdblcmgui to install SAP HANA cockpit on the host wdflbmt7350.
Field Value
Local Host Name: wdflbmt7350

Installation Path: /hana/shared

SAP HANA System ID: H4C

Instance Number: 96

Master password: Welcome1

a) In the graphical Xrdp desktop session, open a terminal window by opening the context
menu (right-click) and selecting the option Open in Terminal.

b) In the terminal window, navigate to the directory where the hdblcmgui tool is located using
the following command:
cd /data/training/setup/install

c) In the install directory, check the content using the command ls -lh and verify that the
hdblcmgui exists.

d) In the terminal window, enter the command ./hdblcmgui.sh and select the Enter key to
start the SAP HANA lifecycle management tool.
This starts the graphical version of the SAP HANA lifecycle management tool.

e) In the Install new SAP HANA Cockpit System window, choose Install New SAP HANA
Cockpit System, and choose Next to continue.

f) In the Specify the System Properties window, compare and accept the default settings
with the above table, and choose Next to continue.

g) In the Specify Master Password window, enter and confirm the master password from the
above table, and choose Next to continue.

© Copyright. All rights reserved. 17


Unit 4: Installing the SAP HANA Cockpit

h) In the Summary window, check the installation input parameters that you provided, and
choose Install to start the SAP HANA cockpit installation.

Note:
The installation takes approximately 45 minutes.

i) After the installation has finished, close the SAP HANA lifecycle management tool by
choosing the Finish button.

© Copyright. All rights reserved. 18


Unit 4
Exercise 5

Retrieve the SAP HANA Cockpit URLs

Business Example
Last week, your colleague installed SAP HANA cockpit, but forgot to write down the SAP HANA
cockpit URLs. Without these URLs, it is impossible to use the SAP HANA cockpit to connect and
configure the newly installed SAP HANA databases. It is now your task to retrieve the SAP HANA
cockpit URLs.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: From your HA200 SAP Learning Cloud training system desktop, open an ssh
shell session to the SAP HANA cockpit host using the SSHConnectHA2xx.bat script.

Participant Linux Server Root User Password


Participant 1 wdflbmt7350 haroot W3lcome123
Participant 2 wdflbmt7350 haroot W3lcome123

Result
You are now automatically connected to the SAP HANA cockpit host using an SSH shell.

3. All Participants: In the PuTTY session, use the h4cadm user to retrieve the SAP HANA cockpit
URLs.

4. All Participants: In your PuTTY session, use the xs command to list the SAP HANA cockpit
URLs.

© Copyright. All rights reserved. 19


Unit 4
Solution 5

Retrieve the SAP HANA Cockpit URLs

Business Example
Last week, your colleague installed SAP HANA cockpit, but forgot to write down the SAP HANA
cockpit URLs. Without these URLs, it is impossible to use the SAP HANA cockpit to connect and
configure the newly installed SAP HANA databases. It is now your task to retrieve the SAP HANA
cockpit URLs.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: From your HA200 SAP Learning Cloud training system desktop, open an ssh
shell session to the SAP HANA cockpit host using the SSHConnectHA2xx.bat script.

Participant Linux Server Root User Password


Participant 1 wdflbmt7350 haroot W3lcome123
Participant 2 wdflbmt7350 haroot W3lcome123

a) From your SAP Cloud Training System desktop, in the File Explorer, open the folder N:
\HA200.

b) In the N:\HA200 folder, double-click the folder Putty_RDP_Scripts.

c) In the Putty_RDP_Scripts window, double-click the SSHConnectHA2xx.bat file to execute


it.

d) In the HA200 – Open SSH sessions window, select the number that corresponds with the
SAP HANA Cockpit host wdflbmt7350.

Result
You are now automatically connected to the SAP HANA cockpit host using an SSH shell.

3. All Participants: In the PuTTY session, use the h4cadm user to retrieve the SAP HANA cockpit
URLs.
a) In your PuTTY session, execute the following command:
su - h4cadm

b) In your PuTTY session, execute the following command:


xs login

If requested, use the information from the following table:

© Copyright. All rights reserved. 20


Solution 5: Retrieve the SAP HANA Cockpit URLs

Input field Value


API URL https://wdflbmt7350.wdf.sap.corp:
39630

USERNAME COCKPIT_ADMIN

PASSWORD Welcome1

Org HANACockpit

Space SAP

4. All Participants: In your PuTTY session, use the xs command to list the SAP HANA cockpit
URLs.
a) In your PuTTY session, execute the following command:
xs apps | grep web-app

b) Write down the SAP HANA cockpit manager URL that is listed as cockpit-admin-web-app.
URL: ________________________________________________

c) Write down the SAP HANA cockpit Administrator URL that is listed as cockpit-web-app.
URL: ________________________________________________

d) To log off from the SAP HANA extended application services, advanced model, enter:
xs logout

e) To leave the h4cadm user session, enter:


exit

f) To close the ssh terminal window, enter:


exit

© Copyright. All rights reserved. 21


Unit 4
Exercise 6

Configure and Open SAP HANA Cockpit

Business Example
You have installed SAP HANA cockpit on a central server and want to use it for monitoring the
SAP HANA databases in your landscape.

Caution:
SAP HANA cockpit is a central monitoring and administration tool. In our training
landscape, SAP HANA cockpit is installed once on a central server. Both Participant 1
and Participant 2 use this central SAP HANA cockpit server for system
administration and monitoring.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 2: Start Google Chrome and log on to your SAP HANA Cockpit Manager using the
URL that you determined in the previous exercise.
Field Participant 2 Value

HANA Username COCKPIT_ADMIN

HANA Password Welcome1

Caution:
The COCKPIT_ADMIN user does not have the required authorizations for working
with the SAP HANA cockpit. During the first logon, the required authorizations
are auto-assigned.
Here, we let Participant 2 log on first. Participant 1 can look at Participant 2's
screen to see the procedure.

3. Participant 1: Start Google Chrome and log on to your SAP HANA Cockpit Manager using the
URL that you determined in the previous exercise.
Field Participant 1 Value

HANA Username COCKPIT_ADMIN

© Copyright. All rights reserved. 22


Exercise 6: Configure and Open SAP HANA Cockpit

Field Participant 1 Value

HANA Password Welcome1

4. All Participants: Register your SYSTEMDB database in SAP HANA Cockpit Manager, using the
following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple System database System database


containers
Description System database System database

Create Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Contact Name Admin01 Admin02

Contact E-mail Admin01@exam- Admin02@exam-


ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

5. All Participants: Register your TENANT database as a database in SAP HANA Cockpit
Manager using the following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple Tenant database Tenant database


containers
Tenant database H46 H47
name

© Copyright. All rights reserved. 23


Unit 4: Installing the SAP HANA Cockpit

Screen Input Field Participant 1 Value Participant 2 Value


Description Tenant database Tenant database
H46 H47

Create Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Database Groups Add Database to No database group to No database group to


Groups select select
Contact Name Admin01 Admin02

Contact E-mail Admin01@exam- Admin02@exam-


ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

6. All Participants: Add your registered databases to a database group using the following data:
Screen Field Participant 1 Value Participant 2 Value

General Information Group Name Group01 Group02

Description Group for H46 Group for H47


databases databases

Databases System database SYSTEMDB@H46 SYSTEMDB@H47

Tenant H46@H46 H47@H47

Cockpit Users Add Cockpit Users No users to select No users to select

7. All Participants: Create an SAP HANA cockpit user, and add your database group to this user
account.
Screen Field Participant 1 Value Participant 2 Value

User Information User Name ADMIN01 ADMIN02


screen
Password Init1234 Init1234

Confirm Password Init1234 Init1234

Email Admin01@exam- Admin02@exam-


ple.com ple.com

© Copyright. All rights reserved. 24


Exercise 6: Configure and Open SAP HANA Cockpit

Screen Field Participant 1 Value Participant 2 Value

Cockpit Roles screen Cockpit Roles Keep the default se- Keep the default se-
lection lection

Add User To Existing Group Name Group01 Group02


Groups

8. All Participants: Use Google Chrome to log on to the SAP HANA cockpit and change the initial
password for your admin user, which you have created in the previous step.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Init1234 Init1234

Current Password Init1234 Init1234

New Password Welcome1 Welcome1

9. All Participants: Use the Database Directory to check the overall status of your SAP HANA
system database and add the required credentials.
Field Participant 1 Value Participant 2 Value
your group tile Group01 Group02

<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

OS Username h46adm h47adm

OS User Password Welcome1 Welcome1

10. All Participants: Use the Database Directory to check the overall status of your SAP HANA
tenant database and add the required credentials.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

© Copyright. All rights reserved. 25


Unit 4
Solution 6

Configure and Open SAP HANA Cockpit

Business Example
You have installed SAP HANA cockpit on a central server and want to use it for monitoring the
SAP HANA databases in your landscape.

Caution:
SAP HANA cockpit is a central monitoring and administration tool. In our training
landscape, SAP HANA cockpit is installed once on a central server. Both Participant 1
and Participant 2 use this central SAP HANA cockpit server for system
administration and monitoring.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 2: Start Google Chrome and log on to your SAP HANA Cockpit Manager using the
URL that you determined in the previous exercise.
Field Participant 2 Value

HANA Username COCKPIT_ADMIN

HANA Password Welcome1

Caution:
The COCKPIT_ADMIN user does not have the required authorizations for working
with the SAP HANA cockpit. During the first logon, the required authorizations
are auto-assigned.
Here, we let Participant 2 log on first. Participant 1 can look at Participant 2's
screen to see the procedure.

a) From your HA200 – SAP Learning Cloud training system desktop, start Google Chrome
and connect to the SAP HANA Cockpit Manager application using the following URL:
https://wdflbmt7350.wdf.sap.corp:51028

b) In the Your connection is not private screen, choose Advanced and in the subsequent
screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

© Copyright. All rights reserved. 26


Solution 6: Configure and Open SAP HANA Cockpit

c) In the SAP HANA XS Advanced screen, enter your HANA username and HANA password
credentials from the above table, and choose Log On.

d) To get the required authorizations assigned, in the Not Authorized window, choose Yes.

e) To return to the logon screen, in the Success window, choose OK.

f) In the SAP HANA XS Advanced window, enter your username and password credentials
from the above table, and choose Log On.

3. Participant 1: Start Google Chrome and log on to your SAP HANA Cockpit Manager using the
URL that you determined in the previous exercise.
Field Participant 1 Value

HANA Username COCKPIT_ADMIN

HANA Password Welcome1

a) From your HA200 – SAP Learning Cloud training system desktop, start Google Chrome
and connect to the SAP HANA Cockpit Manager application using the following URL:
https://wdflbmt7350.wdf.sap.corp:51028

b) In the Your connection is not private screen, choose Advanced and in the subsequent
screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

c) In the SAP HANA XS Advanced screen, enter your username and password credentials
from the above table, and choose Log On.

4. All Participants: Register your SYSTEMDB database in SAP HANA Cockpit Manager, using the
following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple System database System database


containers
Description System database System database

Create Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

© Copyright. All rights reserved. 27


Unit 4: Installing the SAP HANA Cockpit

Screen Input Field Participant 1 Value Participant 2 Value


Contact Name Admin01 Admin02

Contact E-mail Admin01@exam- Admin02@exam-


ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

a) On the SAP HANA Cockpit Manager home screen, choose the Registered Databases
category to open the Registered Databases screen.

b) In the Registered Databases screen, choose the Register Database button to start the
registration wizard.

c) In the 1. Database step, use the data from the above table for the input fields Database
Name, Host, Instance Number, Container: Multiple containers, and Description.

d) To continue, choose the Step 2 button.

e) In the 2. Connection step, deselect the checkboxes for Encrypt the SAP control connection
and Encrypt the database connection.

f) To continue, choose the Step 3 button.

g) In the 3. Technical User step, choose the Create New Technical User button.

h) In the Create Technical User window, use the data from the above table for the input fields
Database Administrator User Name, Password, Technical User Name, Password, and
Confirm Password.
Leave the checkbox for Grant SAP EarlyWatch Alert permission unselected.

i) Choose the Create button.

j) In the Success window, choose OK to return to the 3. Technical User step.

k) To continue, choose the Step 4 button.

l) In the 4. Database Groups step, choose the Step 5 button.

m) In the 5. Contact step, enter your contact information as shown in the above table.

n) To continue, choose the Review button.

o) In the Register Database Review screen, check and confirm your input.

p) To continue, choose the Register button.

5. All Participants: Register your TENANT database as a database in SAP HANA Cockpit
Manager using the following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

© Copyright. All rights reserved. 28


Solution 6: Configure and Open SAP HANA Cockpit

Screen Input Field Participant 1 Value Participant 2 Value


Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple Tenant database Tenant database


containers
Tenant database H46 H47
name
Description Tenant database Tenant database
H46 H47

Create Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Database Groups Add Database to No database group to No database group to


Groups select select
Contact Name Admin01 Admin02

Contact E-mail Admin01@exam- Admin02@exam-


ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

a) In the Registered Databases screen, choose the Register Database button to start the
registration wizard.

b) In the 1. Database step, use the data from the above table for the input fields Database
Name, Host, Instance Number, Container: Multiple containers, and Description.

c) To continue, choose the Step 2 button.

d) In the 2. Connection step, deselect the checkbox for Encrypt the database connection.

e) To continue, choose the Step 3 button.

f) In the 3. Technical User step, choose the Create New Technical User button.

g) In the Create Technical User window, use the data from the above table for the input fields
Database Administrator User Name, Password, Technical User Name, Password, and
Confirm Password.
Leave the checkbox for Grant SAP EarlyWatch Alert permission unselected.

© Copyright. All rights reserved. 29


Unit 4: Installing the SAP HANA Cockpit

h) Choose the Create button.

i) In the Success window, choose OK to return to the 3. Technical User screen.

j) To continue, choose the Step 4 button.

k) In the 4. Database Groups step, choose the Step 5 button.

l) In the 5. Contact step, enter your contact information as shown in the above table.

m) To continue, choose the Review button.

n) In the Register Database Review screen, check and confirm your input.

o) To continue, choose the Register button.

p) To return to the SAP HANA Cockpit Manager home screen, choose the Back button.

6. All Participants: Add your registered databases to a database group using the following data:
Screen Field Participant 1 Value Participant 2 Value

General Information Group Name Group01 Group02

Description Group for H46 Group for H47


databases databases

Databases System database SYSTEMDB@H46 SYSTEMDB@H47

Tenant H46@H46 H47@H47

Cockpit Users Add Cockpit Users No users to select No users to select

a) In the SAP HANA Cockpit Manager home screen, choose Database Groups.

b) In the Database Groups screen, choose the Create Group button.

c) In the 1. General Information screen, enter the data from the above table in the Group
Name and Description fields.

d) To continue, choose the Step 2 button.

e) In the 2. Databases screen, choose the Add Databases button.

f) In the dialog box, select your system database and your tenant, and choose the OK button.
Leave the checkbox for Register databases after the group is created unselected.

g) To continue, choose the Step 3 button.

h) In the 3. Cockpit Users screen, choose the Create Group button.

i) To return to the SAP HANA Cockpit Manager home screen, choose the Back button.

7. All Participants: Create an SAP HANA cockpit user, and add your database group to this user
account.

© Copyright. All rights reserved. 30


Solution 6: Configure and Open SAP HANA Cockpit

Screen Field Participant 1 Value Participant 2 Value

User Information User Name ADMIN01 ADMIN02


screen
Password Init1234 Init1234

Confirm Password Init1234 Init1234

Email Admin01@exam- Admin02@exam-


ple.com ple.com

Cockpit Roles screen Cockpit Roles Keep the default se- Keep the default se-
lection lection
Add User To Existing Group Name Group01 Group02
Groups

a) In the SAP HANA Cockpit Manager home screen, choose Cockpit Users.

b) In the Cockpit Users screen, choose the Create User button.

c) In the 1. User Information step, enter the data from the above table in the User Name,
Password, Confirm Password, and Email fields.

d) To continue, choose the Step 2 button.

e) In the 2. Cockpit Roles screen, keep the default role selection and choose the Step 3
button.

f) In the 3. Database Groups screen, choose the Add Groups button.

g) In the Add Users To Existing Groups window, choose your group name, and choose OK.

h) Scroll down and select the Create User button to create the user account.

i) To return to the SAP HANA Cockpit Manager home screen, choose the Back button.

j) In the title bar of the SAP HANA Cockpit Manager home screen, choose COCKPIT_ADMIN
and select the Log Out option.

k) In the Confirmation dialog, choose the OK button to log off from the SAP HANA Cockpit
Manager application.

8. All Participants: Use Google Chrome to log on to the SAP HANA cockpit and change the initial
password for your admin user, which you have created in the previous step.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Init1234 Init1234

Current Password Init1234 Init1234

New Password Welcome1 Welcome1

© Copyright. All rights reserved. 31


Unit 4: Installing the SAP HANA Cockpit

a) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

b) If the screen Your connection is not private appears, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

c) In the SAP HANA XS Advanced window, enter your username and password credentials
from the above table, and choose the Log On button.

d) In the Change Password screen, enter the current password, the new password, and the
confirm new password credentials from the above table, and choose the Submit button.

e) On the SAP HANA XS Advanced window, enter your username and new password
credentials from the above table, and choose the Log On button.

9. All Participants: Use the Database Directory to check the overall status of your SAP HANA
system database and add the required credentials.
Field Participant 1 Value Participant 2 Value
your group tile Group01 Group02

<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

OS Username h46adm h47adm

OS User Password Welcome1 Welcome1

a) On the SAP HANA cockpit home screen, choose your group tile to enter the Database
Directory application.
In the Database Directory screen, you see the overall status of your SAP HANA databases.

b) On the Database Directory screen, in the column Credentials, choose the Enter Credentials
link of the SYSTEMDB@<SID> to enter the database connection credentials.

c) In the Enter Credentials dialog box, enter your database username and database user
password credentials from the above table, and choose OK.

d) On the Database Directory screen, in the column SAP Control Credentials, choose the
Enter Credentials link of the SYSTEMDB@<SID> to enter the SAP Control Credentials.

e) In the Host OS Credentials for SAP Control dialog box, enter your OS username and OS
user password credentials from the above table, and choose OK.

f) To open a detail overview screen of your SAP HANA system database, choose your
SYSTEMDB@<SID> in the Database Directory screen.
Result
The Database Overview screen of your SAP HANA system database opens.

© Copyright. All rights reserved. 32


Solution 6: Configure and Open SAP HANA Cockpit

g) On the Database Overview screen, change the view from Monitoring to All to make sure
that all the tiles are visible.

h) To get an overview of the running services of your system database, choose the Services
tile.
In the Manage Services screen, you see the status of the system database services.

i) To return to the Database Directory screen, choose the Back button twice.

10. All Participants: Use the Database Directory to check the overall status of your SAP HANA
tenant database and add the required credentials.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

a) On the Database Directory screen, in the column Credentials, choose the Enter Credentials
link of the <SID>@<SID> to enter the database connection credentials.

b) In the Enter Credentials dialog box, enter your database username and database user
password credentials from the above table, and choose OK.

c) To open a detail overview screen of your SAP HANA tenant database, choose your
<SID>@<SID> in the Database Directory screen.
Result
The System Overview screen of your SAP HANA system database opens.

d) To get an overview of the running services of your system database, choose the Services
tile.
In the Manage Services screen, you see the status of the tenant database services.

e) Return to the Home screen by choosing the Home button.

© Copyright. All rights reserved. 33


Unit 4
Exercise 7

Update SAP HANA Cockpit

Business Example
During the planned data center maintenance window, you also need to update your central SAP
HANA cockpit 2.0. The newer version will provide you with additional multi-tenant features that
you require in your SAP HANA 2.0 system landscape.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In the training
landscape, the SAP HANA cockpit is installed only once on a central server. To
accomplish this, Participant 1 and Participant 2 must work together on the central
SAP HANA cockpit server to install and configure SAP HANA cockpit 2.0 correctly.
The installation and upgrade tasks should be divided as follows:
● Participant 1 has installed SAP HANA cockpit 2.0.
● Participant 2 now upgrades SAP HANA cockpit 2.0.

1. Participant 2: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 2: From your HA200 SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to the SAP HANA cockpit host using the
RDPConnectHA2xx.bat script.

Caution:
For this task, Participant 1 and Participant 2 need to work together on the SAP
Cloud Training System desktop of Participant 2.

Field Value
SAP HANA Cockpit host wdflbmt7350

Root User haroot

Password W3lcome123

3. Participant 2: Use hdblcmgui to update SAP HANA cockpit on the host wdflbmt7350.

© Copyright. All rights reserved. 34


Exercise 7: Update SAP HANA Cockpit

Field Value
System Database User Name SYSTEM

System Database User Password Welcome1

XS Advanced Admin User COCKPIT_ADMIN

XS Advanced Admin (XSA_ADMIN) Password Welcome1

4. All Participants: Use Google Chrome to log on to the upgraded SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

Password Welcome1 Welcome1

5. All Participants: Check out the updated SAP HANA cockpit 2.0.
Use the information from the following table to provide the correct input in the following
exercise steps:

Field Participant 1 Value Participant 2 Value


<Your Group> Group01 Group02
<SID> H46 H47

© Copyright. All rights reserved. 35


Unit 4
Solution 7

Update SAP HANA Cockpit

Business Example
During the planned data center maintenance window, you also need to update your central SAP
HANA cockpit 2.0. The newer version will provide you with additional multi-tenant features that
you require in your SAP HANA 2.0 system landscape.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In the training
landscape, the SAP HANA cockpit is installed only once on a central server. To
accomplish this, Participant 1 and Participant 2 must work together on the central
SAP HANA cockpit server to install and configure SAP HANA cockpit 2.0 correctly.
The installation and upgrade tasks should be divided as follows:
● Participant 1 has installed SAP HANA cockpit 2.0.
● Participant 2 now upgrades SAP HANA cockpit 2.0.

1. Participant 2: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. Participant 2: From your HA200 SAP Learning Cloud training system desktop, open the
graphical Xrdp desktop session to the SAP HANA cockpit host using the
RDPConnectHA2xx.bat script.

Caution:
For this task, Participant 1 and Participant 2 need to work together on the SAP
Cloud Training System desktop of Participant 2.

Field Value
SAP HANA Cockpit host wdflbmt7350

Root User haroot

Password W3lcome123

a) From your SAP Learning Cloud training system desktop, in the File Explorer, open the
folder N:\HA200.

© Copyright. All rights reserved. 36


Solution 7: Update SAP HANA Cockpit

b) In the N:\HA200 folder, double-click the folder Putty_RDP_Scripts.

c) In the Putty_RDP_Scripts window, double-click the RDPConnectHA2xx.bat file to execute


it.

d) In the HA200 – Open Remote Desktop sessions window, select the number that
corresponds with the wdflbmt7350 host in your landscape.

e) On the Remote Desktop Connection – Unknown publisher window, choose Connect.

f) On the Remote Desktop Connection – Identity of remote computer cannot be verified


dialog box, choose Yes to continue the logon process.

g) On the Login to wdflbmt7350 window, enter the credentials from the above table, and
choose OK.
You are now connected as the haroot user to the SAP HANA cockpit host.

3. Participant 2: Use hdblcmgui to update SAP HANA cockpit on the host wdflbmt7350.
Field Value
System Database User Name SYSTEM

System Database User Password Welcome1

XS Advanced Admin User COCKPIT_ADMIN

XS Advanced Admin (XSA_ADMIN) Password Welcome1

a) In the graphical Xrdp desktop session, open a terminal window by opening the context
menu (right-click) and selecting the option Open in Terminal.

b) In the terminal window, navigate to the directory where the hdblcmgui tool is located using
the following command:
cd /data/training/setup/upgrade

c) In the upgrade directory, check the content using the command ls -lh and verify that
the SAPHANACOCKPIT##_$$.SAR file exists.

d) In the upgrade directory, unpack the SAPHANACOCKPIT##_$$.SAR archive using the


following command:
/usr/sap/hostctrl/exe/SAPCAR -manifest SIGNATURE.SMF -xvf
SAPHANACOCKPIT16_5-70002299.SAR

e) In the upgrade directory, check the content using the command ls -lh and verify that
the hdblcmgui exists.

f) In the terminal window, enter the command ./hdblcmgui.sh and select the Enter key to
start the SAP HANA lifecycle management tool.
This starts the graphical version of the SAP HANA lifecycle management tool.

g) In the Choose system to update, or choose installation window, choose Update existing
system – Select system: H4C, and choose Next to continue.

© Copyright. All rights reserved. 37


Unit 4: Installing the SAP HANA Cockpit

h) In the Choose components to be installed or updated for system 'H4C' window, accept the
default selection, and choose Next to continue.

i) In the Specify authorization data window, enter the credentials for the system user and
confirm its password using the data from the above table, and choose Next to continue.

j) In the Specify Update Properties window, leave the Apply System Size Dependent
Resource Limits (SAP Note 3014176) option selected, and choose Next to continue.

k) In the Specify XS Advanced Runtime Properties window, enter the credentials for the XS
Advanced Admin User and confirm its password using the data from the above table, and
choose Next to continue.

l) In the Summary window, check the update input parameters that you provided, and
choose the Update button to start the SAP HANA cockpit installation.

Note:
The installation takes approximately 45 minutes.

m) After the update has finished, close the SAP HANA lifecycle management tool by choosing
the Finish button.

4. All Participants: Use Google Chrome to log on to the upgraded SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

Password Welcome1 Welcome1

a) In Google Chrome window, open the following URL to connect to the SAP HANA cockpit:
https://wdflbmt7350.wdf.sap.corp:51026

b) If the screen Your connection is not private appears, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

c) In the SAP HANA XS Advanced window, enter your username and password credentials
from the above table, and choose the Log On button.

5. All Participants: Check out the updated SAP HANA cockpit 2.0.
Use the information from the following table to provide the correct input in the following
exercise steps:

Field Participant 1 Value Participant 2 Value


<Your Group> Group01 Group02
<SID> H46 H47

a) On the SAP HANA cockpit home screen, choose the <Your Group> tile.

© Copyright. All rights reserved. 38


Solution 7: Update SAP HANA Cockpit

b) On the Database Directory screen, select the SYSTEMDB@<SID> database link.

c) On the SYSTEMDB@<SID> Database Overview screen, change the view from Monitoring to
All to make sure that all the tiles are visible.

d) Choose the < (back) button to return to the Database Directory screen.

© Copyright. All rights reserved. 39


Unit 5
Exercise 8

Update SAP HANA

Business Example
The administration team members have to learn how to validate the downloaded revision update
files and how to perform a revision update on the SAP HANA database system. To facilitate these
tasks, there is already an installed SAP HANA 2.0 SPS07 revision 70 sandbox system. Based on
this installation, the file validation procedure and the revision update can be tested. In this way
the team members gain experience on how to update the software of an SAP HANA database
system.
The following prerequisites are already fulfilled:
● The latest (or at least more up-to-date than installed) revision of SAP HANA 2.0 SPS07 was
downloaded from the SAP Software Download Center
● On the SAP HANA Linux server there is a directory /data/training/setup/upgrade
including the downloaded files
● Access to the archive tool SAPCAR is given (download or via the SAP Host Agent)

The following main tasks have to be done in this exercise:


● Verification of the revision for the installed SAP HANA system
● Validation of the correctness for the downloaded revision update files
● Update the existing installation of SAP HANA 2.0 SPS07 to a newer revision using the SAP
HANA database lifecycle management tools (here: hdblcmgui)

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system Landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use the command-line tool HDB to check the current version of the SAP
HANA database system on the Linux server assigned to you using the input data from the
table below:
Field Participant 1 Value Participant 2 Value

<sid> h46 h47

4. All participants: Use the resident HDBLCM tool to extract the downloaded SAP HANA server
and client components.

© Copyright. All rights reserved. 40


Exercise 8: Update SAP HANA

Field Participant 1 Value Participant 2 Value

<SID> H46 H47

5. All participants: Use hdblcmgui from the newly extracted HDBLCM tool to validate the
component's authenticity and update your SAP HANA database system to revision 75 in one
run using the input data from the following table:
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<Installation password> Welcome1 Welcome1

6. All participants: Use the command-line tool HDB to check the new version of the SAP HANA
database for the following groups:
Field Participant 1 Value Participant 2 Value

<sid> h46 h47

© Copyright. All rights reserved. 41


Unit 5
Solution 8

Update SAP HANA

Business Example
The administration team members have to learn how to validate the downloaded revision update
files and how to perform a revision update on the SAP HANA database system. To facilitate these
tasks, there is already an installed SAP HANA 2.0 SPS07 revision 70 sandbox system. Based on
this installation, the file validation procedure and the revision update can be tested. In this way
the team members gain experience on how to update the software of an SAP HANA database
system.
The following prerequisites are already fulfilled:
● The latest (or at least more up-to-date than installed) revision of SAP HANA 2.0 SPS07 was
downloaded from the SAP Software Download Center
● On the SAP HANA Linux server there is a directory /data/training/setup/upgrade
including the downloaded files
● Access to the archive tool SAPCAR is given (download or via the SAP Host Agent)

The following main tasks have to be done in this exercise:


● Verification of the revision for the installed SAP HANA system
● Validation of the correctness for the downloaded revision update files
● Update the existing installation of SAP HANA 2.0 SPS07 to a newer revision using the SAP
HANA database lifecycle management tools (here: hdblcmgui)

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system Landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All participants: If you have closed the graphical Xrdp desktop session to your Linux server,
open it as described in step 4 of the Explore the HA200 Training Landscape exercise.

3. All participants: Use the command-line tool HDB to check the current version of the SAP
HANA database system on the Linux server assigned to you using the input data from the
table below:
Field Participant 1 Value Participant 2 Value

<sid> h46 h47

a) In the graphical Xrdp desktop session, open a terminal window by opening the context
menu (right-click) on the desktop and choosing Open in Terminal.

© Copyright. All rights reserved. 42


Solution 8: Update SAP HANA

b) In the Terminal, enter the command su – <sid>adm.

c) In the Terminal, enter the command HDB version.


The version 2.00.070.00.<no> shows that SAP HANA 2.0 SPS07 revision 70 is
implemented.

d) To finish the <sid>adm user session, enter exit.

e) To close the terminal session, enter exit.

4. All participants: Use the resident HDBLCM tool to extract the downloaded SAP HANA server
and client components.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

a) In the graphical Xrdp desktop session, open a terminal window by opening the context
menu (right-click) and selecting the option Open in Terminal.

b) In the terminal window, navigate to the directory where the downloaded revision update
files are located using the following command: cd /data/training/setup/upgrade

c) In the upgrade directory, check the content using the command: ls -lh
Result
There are two .SAR files with the file prefix IMDB_. Ignore any other files (for example
SAPCAR) and proceed with the next step.

d) In the terminal window, start hdblcm as part of the resident HDBLCM tool by executing the
following command: /hana/shared/<SID>/hdblcm/hdblcm

e) In the SAP HANA Lifecycle Management screen, under Choose an actionEnter selected
action index6 (extract_components) and press [Enter].

f) In Enter location of the SAP HANA Database Component Archives: provide the following
directory path /data/training/setup/upgrade and press [Enter] to continue.

g) Select [Enter] to accept the default location for the Enter Temporary Extract Directory. The
default location should point to /data/training/setup/upgrade/extracted

h) Select [Enter] to accept the default setting Overwrite Existing Files in the Extraction
Directory [n]. In this way existing files are not overwritten.

i) Select [Enter] to accept the default for Enter Location of 'SAPCAR' Executable. It is taken
from [/hana/shared/H46/global/hdb/saphostagent_setup/SAPCAR]

j) In the Summary before execution: screen, check your input and under Do you want to
continue? (y/n): provide y and press [Enter] to start the extraction of the components.
The SAP HANA server and client components will now be extracted to the folder /data/
training/setup/upgrade/extracted.
Do not close the Terminal window as we need it in the next exercise step.

© Copyright. All rights reserved. 43


Unit 5: Performing the Post-Installation Tasks

5. All participants: Use hdblcmgui from the newly extracted HDBLCM tool to validate the
component's authenticity and update your SAP HANA database system to revision 75 in one
run using the input data from the following table:
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<Installation password> Welcome1 Welcome1

a) In the terminal window that you opened in the previous exercise step, change to the newly
extracted revision 75 SAP_HANA_DATABASE directory using the following command:
cd /data/training/setup/upgrade/extracted/SAP_HANA_DATABASE

b) In the SAP_HANA_DATABASE directory, check the content using the command: ls -lh
Result
The HDBLCM tool files from the installation and update media are listed (among other
files): hdblcm, hdblcmgui, and hdblcmweb. Proceed with the next step.

c) In the SAP_HANA_DATABASE directory start the hdblcmgui as part of the (non-resident)


HDBLCM tool installation and update media with the verification option using the following
command:
./hdblcmgui --verify_signature

Result
The SAP HANA Lifecycle Management tool opens as a GUI with the option --
verify_signature enabled.

d) In the SAP HANA Lifecycle Management tool, on the Select Software Components Location
screen, check the components, versions, and locations. Choose Next > to continue.

e) On the screen Select Activity under Choose system to update, or choose installation keep
the option Update existing system - Select system: <SID>. Verify the source version in the
area System Description and choose Next > to continue.

f) In the screen Choose components to be installed or updated for system '<SID>'keep the
selected options, and choose Next > to continue.
There might be further components listed (for example the Local Secure Store), which are
not flagged. The tool adjusts the flags automatically according to the component list. Do
not set the flag for other components. Keep the default selection.
Result
Now you will see that the SAP HANA Database and SAP HANA Database Client component
packages are being verified by checking the authenticity.

g) On the screen Specify Authorization in the section Specify authorization data keep the
proposed System Database User Name:*SYSTEM, and in the System Database User
Password:* field enter the Installation password from the table above. Choose Next > to
continue.

© Copyright. All rights reserved. 44


Solution 8: Update SAP HANA

h) On the Specify Update Properties screen keep the Apply System Size Dependent Resource
Limits (SAP Note 3014176) option selected, and choose Next > to continue.

i) On the Review & Confirm screen check in the area Summary the update input parameters
(for example source and target revision of the components), and choose Update to start
the SAP HANA update procedure.

Hint:
The update takes approximately 5-10 minutes.

j) After the update has finished, check the logs by choosing View Log on the SAP HANA
Database components updated resulting screen. Check some messages and after finishing
use Close.

k) If there was no error, finalize the SAP HANA Lifecycle Management tool by choosing Finish.
In this way the tool itself can write the last messages to the log files.

6. All participants: Use the command-line tool HDB to check the new version of the SAP HANA
database for the following groups:
Field Participant 1 Value Participant 2 Value

<sid> h46 h47

a) If you closed the terminal window, then open a terminal window by opening the context
menu (right-click) on the desktop and choosing Open in Terminal.

b) In the Terminal, enter the command su – <sid>adm.

c) In the Terminal, enter the command HDB version.


The version 2.00.075.00.<no> shows that the update to SAP HANA 2.0 SPS07 revision 75
was successfully executed.

d) To end the <sid>adm user session, enter exit.

e) To close the terminal session enter exit.

© Copyright. All rights reserved. 45


Unit 5
Exercise 9

Create and Rename a Tenant Database

Business Example
After the installation and update procedures of your SAP HANA system were finished
successfully, a further tenant was requested from a business department in order to consolidate
specific business-related data. These tasks should be done in a new tenant database. Because
you are not yet familiar with the core administrative tasks for a tenant, you want to practice the
creation of a tenant, and also use the rename function later on as a preparatory task in your
sandbox system.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Create a new tenant with the name T## (## is your group number).
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02
<SID> H46 H47
SAP HANA cockpit user ADMIN01 ADMIN02

Database Name T01 T02

SYSTEM User Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Start Automatically Select Select

Service indexserver (default service) indexserver (default service)


Port 30040 30040

3. All Participants: Rename the new tenant database that you have created in the step before to
R## (## is your group number).
Field Participant 1 Value Participant 2 Value
Current tenant name T## T01 T02
(## is your group number)
New Name (## is your group R01 R02
number)
After running statements fin- Deselect Deselect
ish executing

© Copyright. All rights reserved. 46


Exercise 9: Create and Rename a Tenant Database

Field Participant 1 Value Participant 2 Value


Immediately after open trans- Select Select
actions are aborted and rolled
back
Restart tenant after renaming Select Select

4. All Participants: Start Google Chrome and log on to your SAP HANA Cockpit manager to
register your R## (## is your group number) tenant database.
Field Participant 1 Value Participant 2 Value

HANA Username COCKPIT_ADMIN COCKPIT_ADMIN

HANA Password Welcome1 Welcome1

5. All Participants: Register your R## (## is your group number) tenant as a database in SAP
HANA cockpit manager, using the following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple Tenant database Tenant database


containers
Tenant database R01 R02

Description Tenant database Tenant database


R01 R02

Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Database Groups Specify the database Group01 Group02


groups you want this
database to be a
member of
Contact Name Admin01 Admin02

© Copyright. All rights reserved. 47


Unit 5: Performing the Post-Installation Tasks

Screen Input Field Participant 1 Value Participant 2 Value


Contact E-mail Admin01@exam- Admin02@exam-
ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

6. All Participants: Use the Database Directory to check the overall status of your SAP HANA
tenant database R##, and add the required credentials.
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02
<Tenant Database Name> R01 R02

<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

Result
You have created and renamed a new SAP HANA tenant database. It was then registered in the
SAP HANA cockpit manager, and finally credentials were provided and checked in the SAP HANA
cockpit.

© Copyright. All rights reserved. 48


Unit 5
Solution 9

Create and Rename a Tenant Database

Business Example
After the installation and update procedures of your SAP HANA system were finished
successfully, a further tenant was requested from a business department in order to consolidate
specific business-related data. These tasks should be done in a new tenant database. Because
you are not yet familiar with the core administrative tasks for a tenant, you want to practice the
creation of a tenant, and also use the rename function later on as a preparatory task in your
sandbox system.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Create a new tenant with the name T## (## is your group number).
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02
<SID> H46 H47
SAP HANA cockpit user ADMIN01 ADMIN02

Database Name T01 T02

SYSTEM User Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

Start Automatically Select Select

Service indexserver (default service) indexserver (default service)


Port 30040 30040

a) From your HA200 - SAP Learning Cloud training system desktop, start Google Chrome
and open the URL https://wdflbmt7350.wdf.sap.corp:51026 to connect to the
SAP HANA cockpit manager application.

b) Authenticate with the user created in the SAP HANA Cockpit manager in a former exercise
(see table above).

c) On the SAP HANA Cockpit Home screen, choose <your group> tile to enter the Database
Directory application.

© Copyright. All rights reserved. 49


Unit 5: Performing the Post-Installation Tasks

d) On the Database Directory screen, choose the Database Management link of the
SYSTEMDB@<SID>, which is located on the right-hand side.

e) On the Database Management screen, choose Create Tenant, and from the dropdown list,
select the Create Empty Tenant option.

f) On the Create Tenant Database screen, enter the data from the table above.

g) Leave the Start Automatically check-box selected.

h) On the Create Tenant Database screen, open the Advanced Settings and enter the data
from the above table.

i) On the Create Tenant Database screen, choose Create Tenant Database in the lower right
corner to create the new tenant database.
Result
It takes approximately two minutes to create and start the tenant. After finishing, you will
see your tenant database on the Database Management screen with the status Running
(it might change to Running with issues after a while).

3. All Participants: Rename the new tenant database that you have created in the step before to
R## (## is your group number).
Field Participant 1 Value Participant 2 Value
Current tenant name T## T01 T02
(## is your group number)
New Name (## is your group R01 R02
number)
After running statements fin- Deselect Deselect
ish executing
Immediately after open trans- Select Select
actions are aborted and rolled
back
Restart tenant after renaming Select Select

a) On the Database Management screen, select (use the radio button in front of) your
previously created tenant T## (## is your group number) and choose the option Tenant
Actions.

b) From the dropdown list, choose Rename Tenant.

c) In the Rename Tenant dialog-box, enter the data from the table above, and choose the
Rename Tenant button to start the process.

d) On the Database Management screen, wait until your database shows the status Running,
or Running with issues.

© Copyright. All rights reserved. 50


Solution 9: Create and Rename a Tenant Database

Result
You have renamed the tenant database T## (## is your group number) to R##. It was
stopped automatically, renamed, and started by your choices. Not only the tenant in the
SAP HANA system is renamed, the directory entries on the file system are also renamed.

e) To return to the Home screen, choose Home (SAP logo).

4. All Participants: Start Google Chrome and log on to your SAP HANA Cockpit manager to
register your R## (## is your group number) tenant database.
Field Participant 1 Value Participant 2 Value

HANA Username COCKPIT_ADMIN COCKPIT_ADMIN

HANA Password Welcome1 Welcome1

a) From your HA200 – SAP Learning Cloud training system desktop, in your Google Chrome
Browser, start a new tab and open the URL https://wdflbmt7350.wdf.sap.corp:
51028 to connect to the SAP HANA cockpit manager application.

b) If the screen Your connection is not private appears, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

c) On the SAP HANA XS Advanced screen, enter your username and password credentials
from the table above, and choose Log On.

5. All Participants: Register your R## (## is your group number) tenant as a database in SAP
HANA cockpit manager, using the following data:
Screen Input Field Participant 1 Value Participant 2 Value
Database Database Name Use system-gen- Use system-gen-
erated name erated name

Host wdflbmt7346 wdflbmt7347

Instance Number 00 00

Container: Multiple Tenant database Tenant database


containers
Tenant database R01 R02

Description Tenant database Tenant database


R01 R02

Technical User Database Administra- SYSTEM SYSTEM


tor User Name
Password Welcome1 Welcome1

Technical User Name COCKPIT_MONITOR COCKPIT_MONITOR

Password Welcome1 Welcome1

Confirm Password Welcome1 Welcome1

© Copyright. All rights reserved. 51


Unit 5: Performing the Post-Installation Tasks

Screen Input Field Participant 1 Value Participant 2 Value


Database Groups Specify the database Group01 Group02
groups you want this
database to be a
member of
Contact Name Admin01 Admin02

Contact E-mail Admin01@exam- Admin02@exam-


ple.com ple.com

Contact Details Admin for data- Admin for data-


base system H46 base system H47

a) In the SAP HANA Cockpit - Cockpit Manager home screen, choose under Categories the
entryRegistered Databases to open the corresponding list.

b) On the Registered Databases screen, choose the Register Database button to start the
registration wizard.

c) In the 1. Database step, use the data from the table above for the input fields Database
Name, Host, Instance Number, Container: Multiple containers, Tenant database, and
Description.

d) To continue, choose the Step 2 button.

e) In the 2. Connection step, deselect the check-box for Encrypt the database connection.

f) To continue, choose the Step 3 button.

g) In the 3. Technical User step, choose the Create New Technical User button.

h) In the Create Technical User window, use the data from the above table for the input fields
Database Administrator User Name, Password, Technical User Name, Password, and
Confirm Password.
Leave the check-box for Grant SAP EarlyWatch Alert permission unselected.

i) Choose the Create button.

j) On the Success window, choose OK to return to the 3. Technical User screen.

k) To continue, choose the Step 4 button.

l) In the 4. Database Groups step, choose the Specify the database groups you want this
database to be a member of button.

m) In the dialog-box Add Database to Groups, select your group and choose the Select button.

n) To continue, choose the Step 5 button.

o) In the 5. Contact step, enter your contact information as shown in the above table.

p) To continue, choose the Review button.

© Copyright. All rights reserved. 52


Solution 9: Create and Rename a Tenant Database

q) On the Register Database Review screen, check and confirm your input with the Register
button .

r) To return to the SAP HANA Cockpit manager home screen, choose the Back button.

s) In the title bar of the SAP HANA cockpit manager home screen, choose COCKPIT_ADMIN
(in the upper right corner), select the Log Out option, and confirm with OK.

t) Now, you can close the tab where the SAP HANA Cockpit Manager application was
running.
Result
You have successfully registered the renamed tenant R## in the SAP HANA cockpit
manager application, assigned it to your group##, and finally logged-off from the tool.

6. All Participants: Use the Database Directory to check the overall status of your SAP HANA
tenant database R##, and add the required credentials.
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02
<Tenant Database Name> R01 R02

<SID> H46 H47

Database Username SYSTEM SYSTEM

Database User Password Welcome1 Welcome1

a) On the SAP HANA Cockpit Home screen, choose <your group> tile to enter the Database
Directory application.

b) On the Database Directory screen, in the row R##@<SID>, choose in the Credentials
column the Enter Credentials link of the <Tenant Database Name>@<SID> to enter the
database connection credentials.

c) In the Credentials dialog-box, enter your Database Username and Database User Password
from the table above, and choose OK.

d) On the Database Directory screen, choose the Database Management link at the end of the
SYSTEMDB@<SID> row.

e) Check the status of your newly created, renamed, and registered SAP HANA tenant
database R##.

f) The SAP HANA tenant database R## should show the status Running, or Running with
issues.

g) Return to the Home screen by choosing the Database Management navigation menu, and
from the dropdown list, select the Home option.

Result
You have created and renamed a new SAP HANA tenant database. It was then registered in the
SAP HANA cockpit manager, and finally credentials were provided and checked in the SAP HANA
cockpit.

© Copyright. All rights reserved. 53


Unit 5
Exercise 10

Work with SAP HANA HDBSQL and


HDBUSERSTORE

Business Example
You want to execute statements in your SAP HANA database, but no graphical user interface, like
the Database Explorer SQL Console as part of the SAP HANA cockpit, is available. Perform these
activities using SAP HANA HDBSQL.
Furthermore, there is a demand that users are can make use of client applications connecting to
SAP HANA without users having to enter log on information. To make this mechanism work, the
hdbuserstore should be configured.

Task 1: Log On to Your SAP HANA System DB using SAP HANA HDBSQL
Log on to your SAP HANA system database using SAP HANA HDBSQL, specifying the credentials
of the SYSTEM user directly.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the exercise Explore the
HA200 Training Landscape.

2. All Participants: If you have closed the PuTTY ssh session to your Linux Server, open it as
described in step 3 of the exercise Explore the HA200 Training Landscape.

3. All Participants: Log on to the SAP HANA system database, using the credentials of the
SYSTEM user.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<database> SYSTEMDB SYSTEMDB

<SAP HANA database serv- wdflbmt7346 wdflbmt7347


er>
<SAP HANA OS User> h46adm h47adm

Result
Now, you are connected to the SYSTEM DB of your SAP HANA installation.

4. All Participants: Test the connection by querying the system database.

Task 2: Log on to your SAP HANA tenant DB using SAP HANA HDBSQL
Login to your SAP HANA tenant database using SAP HANA HDBSQL, use the credentials of the
SYSTEM user and this time enter the password hidden.

© Copyright. All rights reserved. 54


Exercise 10: Work with SAP HANA HDBSQL and HDBUSERSTORE

1. All Participants: Log on to the SAP HANA tenant database, using the credentials of the
SYSTEM user.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<database> H46 H47

SAP HANA database server wdflbmt7346 wdflbmt7347

2. All Participants: Test whether the connection works by executing a SQL command.

Task 3: Check the content of the hdbuserstore and create a connection entry for the
SYSTEM User of the tenant DB

1. All Participants: Display the content of the hdbuserstore.


Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<keyname> MYTENANTDB MYTENANTDB

<SAP HANA database serv- wdflbmt7346 wdflbmt7347


er>
<SQL-Port> 30015 30015

<database> H46 H47

2. All Participants: Create a new user-key for the tenant databases SYSTEM user, and store the
password under this user-key.

Task 4: Connect to your SAP HANA tenant DB with the new key
Connect to your SAP HANA database using the new hdbuserstore key.

1. All Participants: Log on to the SAP HANA database using the secure user-store key.

2. All Participants: Test whether the connection works by executing a command.


Result
You have successfully created a key with hdbuserstore and used it to connect to your tenant
DB without being forced to provide interactively connection details. Finally, you jumped back
to user haroot in your PuTTY session.

© Copyright. All rights reserved. 55


Unit 5
Solution 10

Work with SAP HANA HDBSQL and


HDBUSERSTORE

Business Example
You want to execute statements in your SAP HANA database, but no graphical user interface, like
the Database Explorer SQL Console as part of the SAP HANA cockpit, is available. Perform these
activities using SAP HANA HDBSQL.
Furthermore, there is a demand that users are can make use of client applications connecting to
SAP HANA without users having to enter log on information. To make this mechanism work, the
hdbuserstore should be configured.

Task 1: Log On to Your SAP HANA System DB using SAP HANA HDBSQL
Log on to your SAP HANA system database using SAP HANA HDBSQL, specifying the credentials
of the SYSTEM user directly.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the exercise Explore the
HA200 Training Landscape.

2. All Participants: If you have closed the PuTTY ssh session to your Linux Server, open it as
described in step 3 of the exercise Explore the HA200 Training Landscape.

3. All Participants: Log on to the SAP HANA system database, using the credentials of the
SYSTEM user.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<database> SYSTEMDB SYSTEMDB

<SAP HANA database serv- wdflbmt7346 wdflbmt7347


er>
<SAP HANA OS User> h46adm h47adm

a) In the PuTTY window, switch to your SAP HANA OS user using the following command:
su – <sid>adm

b) Connect to your SAP HANA SYSTEMDB database with the following command:
hdbsql -n <SAP HANA database server> -i 00 -d <database> -u SYSTEM -p
Welcome1

c) Confirm your connection request by pressing <ENTER>.

© Copyright. All rights reserved. 56


Solution 10: Work with SAP HANA HDBSQL and HDBUSERSTORE

Result
Now, you are connected to the SYSTEM DB of your SAP HANA installation.

4. All Participants: Test the connection by querying the system database.


a) Execute the following command:
SELECT * FROM dummy

b) To leave the result screen, enter: q.

c) To display an overview of the HDBSQL commands, enter: \h.

d) To display general information about the database, enter: \s.

e) To close the HDBSQL connection and log-off from the tool, enter: \q.

Task 2: Log on to your SAP HANA tenant DB using SAP HANA HDBSQL
Login to your SAP HANA tenant database using SAP HANA HDBSQL, use the credentials of the
SYSTEM user and this time enter the password hidden.

1. All Participants: Log on to the SAP HANA tenant database, using the credentials of the
SYSTEM user.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<database> H46 H47

SAP HANA database server wdflbmt7346 wdflbmt7347

a) Connect to your SAP HANA tenant database with the following command:
hdbsql -n <SAP HANA database server> -i 00 -d <database> -u SYSTEM

b) The password will be asked in a second step. Enter the password Welcome1.
Doing this, the password is not shown on the screen, nor in the process list, or in the
history on operating system level.

2. All Participants: Test whether the connection works by executing a SQL command.
a) To test whether the connection works, execute the following command:
select * from "SYS"."P_USERS_"

b) To leave the result screen, enter q.

c) To close the HDBSQL connection, enter: \q.

d) Keep the PuTTY window open in the context of the user <sid>adm. You will need it for the
next steps.

Task 3: Check the content of the hdbuserstore and create a connection entry for the
SYSTEM User of the tenant DB

1. All Participants: Display the content of the hdbuserstore.

© Copyright. All rights reserved. 57


Unit 5: Performing the Post-Installation Tasks

Field Participant 1 Value Participant 2 Value

<SID> H46 H47

<keyname> MYTENANTDB MYTENANTDB

<SAP HANA database serv- wdflbmt7346 wdflbmt7347


er>
<SQL-Port> 30015 30015

<database> H46 H47

a) In the PuTTY window, enter the following command:


hdbuserstore LIST

The result shows that the data file is located in the directory /usr/sap/<SID>/
home/.hdb/<hostname>/SSFS_HDB.DAT. There is already an entry for the SAPDBCTRL
user, created during installation. This entry is used by the SAP Host Agent.

2. All Participants: Create a new user-key for the tenant databases SYSTEM user, and store the
password under this user-key.
a) Enter the following command:
hdbuserstore SET <keyname> <SAP HANA database server>:<SQL-
Port>@<database> SYSTEM Welcome1

b) To display the newly created entry of the hdbuserstore, repeat the following command
from a previous step, but add the name of the newly created key:
hdbuserstore LIST <keyname>

The output shows that the new hdbuserstore key was created as follows:
KEY <keyname>
ENV : <SAP HANA database server>:30015
USER: SYSTEM
DATABASE: <database>

Task 4: Connect to your SAP HANA tenant DB with the new key
Connect to your SAP HANA database using the new hdbuserstore key.

1. All Participants: Log on to the SAP HANA database using the secure user-store key.
a) Enter the following command:
hdbsql -U <keyname>

b) To check, which database you are connected to, enter \s.


The dbname field shows which database you are connected to. This should be your tenant
database.

2. All Participants: Test whether the connection works by executing a command.


a) Query the tenant database using the following command:
SELECT * FROM dummy

b) To leave the result screen, enter q.

© Copyright. All rights reserved. 58


Solution 10: Work with SAP HANA HDBSQL and HDBUSERSTORE

c) To close HDBSQL, enter \q.

d) To disconnect the user <sid>adm, enter exit and confirm with <ENTER>.

Result
You have successfully created a key with hdbuserstore and used it to connect to your tenant
DB without being forced to provide interactively connection details. Finally, you jumped back
to user haroot in your PuTTY session.

© Copyright. All rights reserved. 59


Unit 6
Exercise 11

Opening SAP HANA Database Explorer

Business Example
You need to check if all your tenant <SID> and the SYSTEMDB are correctly setup in SAP HANA
database explorer.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

3. All Participants: Open the SAP HANA database explorer from the <SID> tenant, verify the
tenant <SID> database connection, and rename the connection to Tenant Database
<SID>@<SID>.

Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

4. All Participants: Use the SAP HANA database explorer to manually add the SYSTEMDB, and
name the connection to System Database - SYSTEMDB@<SID>.
Result
You now have added your tenant database and SYSTEMDB to the database explorer.

© Copyright. All rights reserved. 60


Unit 6
Solution 11

Opening SAP HANA Database Explorer

Business Example
You need to check if all your tenant <SID> and the SYSTEMDB are correctly setup in SAP HANA
database explorer.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Open the SAP HANA database explorer from the <SID> tenant, verify the
tenant <SID> database connection, and rename the connection to Tenant Database
<SID>@<SID>.

Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

© Copyright. All rights reserved. 61


Unit 6: Working with Database Explorer

b) On the Database Directory screen, choose the SQL Console link of your tenant database
<SID@SID>.

c) On the SAP HANA Database Explorer screen, verify that the database connection
<SID>@>SID> is available.

d) Right-click on the <SID>@>SID> connection, and from the context menu select the menu
item Properties.

e) In the Properties window, in the Display Name field, change the name to Tenant
Database <SID>@<SID>.

f) In the Properties window, choose the OK button to save the changed properties.

4. All Participants: Use the SAP HANA database explorer to manually add the SYSTEMDB, and
name the connection to System Database - SYSTEMDB@<SID>.
a) On the SAP HANA Database Explorer screen, choose the + button to add a new database.

b) In the Add Instance window, select the database named SYSTEMDB@<SID>.

c) In the Add Instance window, in the field Display Name, change the name to System
Database - SYSTEMDB <SID>@<SID>.

d) In the Add Instance window, choose the OK button to save the changed properties.

Result
You now have added your tenant database and SYSTEMDB to the database explorer.

© Copyright. All rights reserved. 62


Unit 6
Exercise 12

Import Demo Data and Tables

Business Example
To work with your own database schema in later exercises, we need application tables with
content. For this, you will import a schema with demo data.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Open an SSH session to the Linux host, then unpack and prepare the
HA2XX_DEMO data archive.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

3. All participants: Import the HA2XX_DEMO data archive using the SAP HANA Database
Explorer.

Table 1: SAP HANA cockpit connection information


Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

Username SYSTEM SYSTEM

Password Welcome1 Welcome1

<SID> H46 H47

<your group> Group01 Group02

Table 2: Import Catalog Objects Settings


Field Participant 1 Value Participant 2 Value

Import Objects From SAP HANA Server SAP HANA Server

SAP HANA Directory /hana/data/H46/ /hana/data/H47/


HA2XX_DEMO HA2XX_DEMO

New schema name HA200_DEMO HA200_DEMO

© Copyright. All rights reserved. 63


Unit 6
Solution 12

Import Demo Data and Tables

Business Example
To work with your own database schema in later exercises, we need application tables with
content. For this, you will import a schema with demo data.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Open an SSH session to the Linux host, then unpack and prepare the
HA2XX_DEMO data archive.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

a) If you have closed the PuTTY ssh session to your Linux server, open it as described in step
3 of the Explore the HA200 Training Landscape exercise.

b) In the PuTTY session, navigate to the Training directory using the following command:
cd /data/training/setup

c) In the setup directory, check the content using the command:


ls -lh

d) Unpack the HA2XX_DEMO.tar.gz archive into the HA2XX_DEMO directory using the
following command:
tar -xf HA2XX_DEMO.tar.gz -C /hana/data/<SID>/

e) Set the correct file permissions to the /hana/data/<SID>/HA2XX_DEMO directory using


the following command:
chown -R <sid>adm:sapsys /hana/data/<SID>/HA2XX_DEMO

3. All participants: Import the HA2XX_DEMO data archive using the SAP HANA Database
Explorer.

Table 1: SAP HANA cockpit connection information


Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

Username SYSTEM SYSTEM

© Copyright. All rights reserved. 64


Solution 12: Import Demo Data and Tables

Field Participant 1 Value Participant 2 Value

Password Welcome1 Welcome1

<SID> H46 H47

<your group> Group01 Group02

Table 2: Import Catalog Objects Settings


Field Participant 1 Value Participant 2 Value

Import Objects From SAP HANA Server SAP HANA Server

SAP HANA Directory /hana/data/H46/ /hana/data/H47/


HA2XX_DEMO HA2XX_DEMO

New schema name HA200_DEMO HA200_DEMO

a) If you are still connected to your SAP HANA Cockpit Administrator application, go to sub-
step d.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) In the SAP HANA XS Advanced window, enter your HANA Username and HANA Password
credentials from the above table SAP HANA cockpit connection information, and choose
Log On.

d) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

e) On the Database Directory screen, choose your <SID>@<SID> tenant database link.

f) On the Database Overview screen, choose Open SQL Console in the top-right corner.
Result
This starts the SAP HANA Database Explorer application in new tab.

g) On the SAP HANA Database Explorer screen, navigate to <SID@SID> → Catalog →


Schemas. Right-click the Schemas category and choose Import Catalog Objects
from the context menu.

h) In the Import Catalog Objects dialog box, enter the data from the above table Import
Catalog Objects Settings, and choose the Load button.

i) In the Rename column, choose the pencil icon of the Catalog Object HA2XX_Demo.

j) In the Rename Schema dialog box, enter the new schema name HA200_DEMO, and choose
the Rename button.

k) In the Import Catalog Objects dialog box, choose the Import button.

© Copyright. All rights reserved. 65


Unit 6: Working with Database Explorer

Result
You have now successfully imported the demo schema with several tables that we will use
in later exercises.

© Copyright. All rights reserved. 66


Unit 6
Exercise 13

Display Table Data

Business Example
You have just imported a schema with several tables, and now you want to check that the content
of one table using database explorer.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

3. All Participants: Use the SAP HANA database explorer to find the number of records of table
sap.hana.democontent.epm.data::PO.Item.

Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

© Copyright. All rights reserved. 67


Unit 6
Solution 13

Display Table Data

Business Example
You have just imported a schema with several tables, and now you want to check that the content
of one table using database explorer.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Use the SAP HANA database explorer to find the number of records of table
sap.hana.democontent.epm.data::PO.Item.

Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

a) On the SAP HANA Database Explorer screen, navigate the following path Tenant Database
- <SID>@<SID> → Catalog → Schemas.

b) In the left pane, choose the schema selection field that shows the SYSTEM schema, and
replace it with HA200_DEMO schema.

© Copyright. All rights reserved. 68


Solution 13: Display Table Data

c) In the left pane, navigate the following path Tenant Database -


H47@H47 → Catalog → Tables and select the entry tables..

d) In the field Search Tables, search for the table


sap.hana.democontent.epm.data::PO.Item, and in the search results select the
found table to open the table details.

e) In the window sap.hana.democontent.epm.data::PO.Item select the the tab Runtime


Information to reveal the table runtime information.

f) Write down the Total Record Count: . . . . . . . . . . . . . . . . . . . . .


Result
You have now successfully found the number of records of table
sap.hana.democontent.epm.data::PO.Item

© Copyright. All rights reserved. 69


Unit 6
Exercise 14

Create a Table and Manually Load/Unload Table


Data

Business Example
You want to create and administer tables in the SAP HANA system using the SAP HANA
Database Explorer and the SQL Console.

Task 1: Create a Table and Insert Data

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

3. All Participants: Create a new table named EPM.PO.Item_Part in schema HA200_DEMO


with the same structure and data as the existing sap.hana.democontent.epm.data::PO.Item
table.
Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

Task 2: Manually Unload and Load Table Data


Check the loading status of the table and manually trigger unload and load.

1. All Participants: Unload the EPM.PO.Item_Part table from the memory of the SAP HANA
server.

2. All Participants: Confirm that the table has been unloaded successfully.

3. All Participants: Load the EPM.PO.Item_Part table back into the memory, recheck the status
and the Memory Consumption information.

© Copyright. All rights reserved. 70


Unit 6
Solution 14

Create a Table and Manually Load/Unload Table


Data

Business Example
You want to create and administer tables in the SAP HANA system using the SAP HANA
Database Explorer and the SQL Console.

Task 1: Create a Table and Insert Data

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username Admin01 Admin02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Create a new table named EPM.PO.Item_Part in schema HA200_DEMO


with the same structure and data as the existing sap.hana.democontent.epm.data::PO.Item
table.
Field Participant 1 Value Participant 2 Value

<Your group> Group01 Group02

<SID@SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

© Copyright. All rights reserved. 71


Unit 6: Working with Database Explorer

a) On the SAP HANA Database Explorer screen, select your Tenant Database -
<SID>@<SID>, and choose the Open SQL Console button in the left top corner.

b) In the SQL Console #.sql, enter the following command:


CREATE TABLE "HA200_DEMO"."EPM.PO.Item_Part" LIKE
"HA200_DEMO"."sap.hana.democontent.epm.data::PO.Item" with data;

c) Choose the Run button to execute the command.

Note:
The create table with data load command takes a few seconds.

d) On the SAP HANA Database Explorer screen, navigate to <SID@SID> → Catalog →


Tables.
In the table list, the table EPM.PO.Item_Part is now visible.

e) Right-click the EPM.PO.Item_Part table, and choose Open from the context menu, to
open the table definition.

f) Choose the Open Data button in the top-right corner to list the first thousand rows of the
table.

g) Close the EPM.PO.Item_Part data tab.


Result
You now have successfully created the column table EPM.PO.Item_Part and filled it with
data.

Task 2: Manually Unload and Load Table Data


Check the loading status of the table and manually trigger unload and load.

1. All Participants: Unload the EPM.PO.Item_Part table from the memory of the SAP HANA
server.
a) In the previously opened EPM.PO.Item_Part table definition window, select the Runtime
Information tab, and choose the Refresh button (on the right-hand side).

b) In the Partitions table, confirm that the LOADED column shows the value PARTIALLY (It
may be necessary to scroll horizontally all the way to the right).

c) Write down the Memory Consumption values for the


Main Storage (KB): ….….….….….….….….….…...
Delta Storage (KB): ….….….….….….….….….…...

d) In the table list, right-click the EPM.PO.Item_Part table and from the context menu, choose
Unload From Memory.

e) In the Confirm dialog box, choose the OK button to unload the table.

2. All Participants: Confirm that the table has been unloaded successfully.
a) In the Runtime Information tab, choose the Refresh button.

© Copyright. All rights reserved. 72


Solution 14: Create a Table and Manually Load/Unload Table Data

b) In the Partitions table, confirm that the LOADED column shows the value NO, and the
Memory Consumption area displays zero values for the Main and Delta Storage.

3. All Participants: Load the EPM.PO.Item_Part table back into the memory, recheck the status
and the Memory Consumption information.
a) In the table list, right-click the EPM.PO.Item_Part table and from the context menu, choose
Load Into Memory.

b) In the Confirm dialog box, choose the OK button to load the table into memory.

c) In the Runtime Information tab, choose the Refresh button and confirm that the LOADED
column shows the value FULL.

d) Compare the updated Memory Consumption values to those previously noted.


Main Storage (KB): ….….….….….….….….….…...
Delta Storage (KB): ….….….….….….….….….…...

e) In the SAP HANA Database Explorer window, close the EPM.PO.Item_Part tab.
Result
You now have successfully unloaded and loaded the data from table EPM.PO.Item_Part.

© Copyright. All rights reserved. 73


Unit 6
Exercise 15

Use the SAP HANA Statement Library

Business Example
As an SAP HANA system administrator, you need to analyze and collect special information,
which is partially not available in standard functionality like SAP HANA cockpit. This can be
achieved by executing a set of SQL Statements against the database. Instead of retyping them in
the SQL Console for every execution, you can store them in the SAP HANA Database Explorer
Statement Library for periodical reuse. Start the SAP HANA Database Explorer from within your
SAP HANA cockpit.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Open the SAP HANA Database Explorer.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

4. All Participants: Import the new Statement Library collection located at N:\HA200\SAP Note
(1969700) folder.

5. All Participants: Start the mini check for your SAP HANA database and review the results for
system issues.

© Copyright. All rights reserved. 74


Unit 6
Solution 15

Use the SAP HANA Statement Library

Business Example
As an SAP HANA system administrator, you need to analyze and collect special information,
which is partially not available in standard functionality like SAP HANA cockpit. This can be
achieved by executing a set of SQL Statements against the database. Instead of retyping them in
the SQL Console for every execution, you can store them in the SAP HANA Database Explorer
Statement Library for periodical reuse. Start the SAP HANA Database Explorer from within your
SAP HANA cockpit.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Open the SAP HANA Database Explorer.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

© Copyright. All rights reserved. 75


Unit 6: Working with Database Explorer

b) On the Database Directory screen, choose the SQL Console link for your tenant database
<SID>@<SID>.

4. All Participants: Import the new Statement Library collection located at N:\HA200\SAP Note
(1969700) folder.
a) On the SAP HANA Database Explorer screen, right-click your tenant database, and choose
Show Statement Library.

b) In the Statement Library dialog box, choose the Import (arrow-up) icon.

c) In the Open window, navigate to the N:\HA200\SAP Note 1969700 folder, and select
the SQLStatements.zip file.

d) To import the SQL Statements.zip file, choose the Open button.


The mini checks are now imported into the Statement Library.

5. All Participants: Start the mini check for your SAP HANA database and review the results for
system issues.
a) On the Statement Library dialog box, in the Search contents field, enter minichecks.
The search function displays immediately the matching scripts.

b) Find and select the script HANA_Configuration_MiniChecks_2.00.059.01+.

c) To start the mini checks script for your SAP HANA 2.0 database, choose the Execute icon
on the top of the table.
The statement, takes around 1 minute to execute.

d) Review the result.

e) Close the SAP HANA Database Explorer tab.

f) In your Database Directory - SAP HANA Cockpit window, return to the Home screen by
choosing the Database Directory navigation menu, and from the dropdown list, select the
Home option.

© Copyright. All rights reserved. 76


Unit 7
Exercise 16

Monitor Key Health Indicators

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you to
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Check the overall system status and the current alerts of your SAP HANA
database systems.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID> H46 H47

© Copyright. All rights reserved. 77


Unit 7
Solution 16

Monitor Key Health Indicators

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you to
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced, and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Check the overall system status and the current alerts of your SAP HANA
database systems.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

© Copyright. All rights reserved. 78


Solution 16: Monitor Key Health Indicators

Field Participant 1 Value Participant 2 Value

<SID> H46 H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, review the status of your SAP HANA database system.

c) How many alerts are shown?

d) To check for the alert details, choose the Alerts Counter link of your SYSTEMDB.
This is another way to access alert information that applies to the specific database.

e) Which alert is shown?

f) To return to the Database Directory screen, choose the < (Back) button.

© Copyright. All rights reserved. 79


Unit 7
Exercise 17

Determine Memory Usage of SAP HANA


Services

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Check the detailed status and memory usage per service for your SAP HANA
tenant database.
Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47

© Copyright. All rights reserved. 80


Unit 7
Solution 17

Determine Memory Usage of SAP HANA


Services

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced, and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Check the detailed status and memory usage per service for your SAP HANA
tenant database.

© Copyright. All rights reserved. 81


Unit 7: Monitoring using the SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47

a) On the Database Directory screen, choose your <SID>@<SID> tenant database.

b) On the Database Overview screen, choose the Services card.

c) In the Manage Services screen, view the Status, CPU, and Memory usage for each existing
service.

d) To return to the Database Overview screen, choose the < (Back) button.

© Copyright. All rights reserved. 82


Unit 7
Exercise 18

Determine the Tenant Database Memory Usage

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Determine the memory usage for the last three hours for your SAP HANA
tenant database.

4. All Participants: Find the top five tables in the SAP HANA tenant database in terms of memory
size.

5. All Participants: Monitor some key performance indicators (KPIs) from your SAP HANA
tenant database, such as CPU, Statements, and Data Write Size.

© Copyright. All rights reserved. 83


Unit 7
Solution 18

Determine the Tenant Database Memory Usage

Business Example
As a system administrator, one of your most important tasks is to monitor the SAP HANA
database and the whole landscape. The SAP HANA cockpit 2.0 provides many tools to help you
do this.

Caution:
SAP HANA cockpit 2.0 is a central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit 2.0 server system
to monitor the SAP HANA databases.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced, and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Determine the memory usage for the last three hours for your SAP HANA
tenant database.
a) In the Database Overview screen of your <SID>@<SID> tenant database, search for the
Memory Usage card and choose it.

© Copyright. All rights reserved. 84


Solution 18: Determine the Tenant Database Memory Usage

b) To get a memory usage overview of the last three hours, in the Performance Monitor
screen, choose the Presets link.

c) In the Presets dialog box, choose the Last 3 hours option.

Hint:
You can set an auto-refresh rate while you monitor performance by choosing
the Schedule Refresh button in the title-bar, and from the dropdown list,
choose the desired value between a minimum of 10 seconds and a maximum
of 10 minutes.

d) To return to the Database Overview screen, choose the < (Back) button.

4. All Participants: Find the top five tables in the SAP HANA tenant database in terms of memory
size.
a) In the Database Overview screen of your tenant database, search for the Monitor table
usage link, and choose it.

b) On the Table Usage screen, in the Filter Tables area, change the value 50 to the value 5 in
the Display field.

c) In the chart area, change the bubble-chart option to the table-chart display by choosing
the table-chart button.

d) To execute this query, choose the Go button.

e) Review the result.

f) To return to the Database Overview screen, choose the < (Back) button.

5. All Participants: Monitor some key performance indicators (KPIs) from your SAP HANA
tenant database, such as CPU, Statements, and Data Write Size.
a) On the Database Overview screen of your <SID>@<SID> tenant database, search for the
Monitor Performance link and choose it.

b) On the Performance Monitor screen, choose the Manage Configurations (gear) icon on the
top-right corner.

c) On the Add and Remove KPIs dialog, deselect all KPIs, and choose only the following
Service KPIs:

● Service KPIs: CPU

● Service KPIs: Statements

● Service KPIs: Data Write Size

● Service KPIs: Data Read Size

d) On the Add and Remove KPIs dialog, choose the OK button to rebuild the chart with your
selected KPIs.

© Copyright. All rights reserved. 85


Unit 7: Monitoring using the SAP HANA Cockpit

e) On the Performance Monitor screen, choose the Navigate Application (curved arrow) icon
on the top-right corner, and from the dropdown list select the Performance Comparison
option.

f) On the Performance Comparison screen, choose the Add Chart button.

g) In the Add Chart dialog box, choose the Last 2 days option to add a new chart and start the
comparison.

h) Review the result.

Is there a high CPU usage when the SAP HANA database system executes multiple
statements?

i) Are the executed statements mainly read or write statements?

j) Return to the Home screen by choosing the Performance Comparison navigation menu,
and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 86


Unit 7
Exercise 19

Check for SAP HANA Alerts

Business Example
You want to monitor your SAP HANA system with SAP HANA cockpit using the alerting
application. You also want to edit and distribute existing alerts to other databases within your
SAP HANA system.

Examine and Adjust the SYSTEMDB and Your Tenant Database Alerts

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Find out when, how often in the last week, and why the worst alert happened
in your SYSTEMDB database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID> H46 H47

4. All Participants: Check which alerts are reported for your initial tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@SID> H46@H46 H47@H47

5. All Participants: Adjust the Data Backup alert in your initial tenant database and apply it also
to the SYSTEMDB.
Field Participant 1 Value Participant 2 Value

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 87


Unit 7: Monitoring using the SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

<SID>@SID> H46@H46 H47@H47

6. All Participants: Review the changed Alert Interval value for your SYSTEMDB@<SID>
database.
Field Participant 1 Value Participant 2 Value

<SID>@SID> H46@H46 H47@H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 88


Unit 7
Solution 19

Check for SAP HANA Alerts

Business Example
You want to monitor your SAP HANA system with SAP HANA cockpit using the alerting
application. You also want to edit and distribute existing alerts to other databases within your
SAP HANA system.

Examine and Adjust the SYSTEMDB and Your Tenant Database Alerts

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Find out when, how often in the last week, and why the worst alert happened
in your SYSTEMDB database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID> H46 H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

© Copyright. All rights reserved. 89


Unit 7: Monitoring using the SAP HANA Cockpit

b) On the Database Directory screen, choose your SYSTEMDB@<SID> database.

c) On the Database Overview screen, search for the Alerts card and choose it.

d) Which alert is shown in the Alerts List?

e) When did the problem first occur?

Why this date and not earlier?

f) How often did this alert happen in the last week?

g) Why does this alert happen in the SAP HANA database system? What is a possible
solution?

h) Return to the Home screen by choosing the Alerts navigation menu, and from the
dropdown list, select the Home option.

4. All Participants: Check which alerts are reported for your initial tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@SID> H46@H46 H47@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your tenant database <SID>@<SID>.

c) On the Database Overview screen, search for the Alerts card and choose it.

d) On the Alerts screen, from the Type: dropdown list, change to Past to get an overview of
the alert history.

© Copyright. All rights reserved. 90


Solution 19: Check for SAP HANA Alerts

e) How many alerts are shown in the Past Alerts list?

f) Which alert priority levels are displayed?

g) On the Alerts screen, from the Type: dropdown list, choose Current to return back to the
latest record.

5. All Participants: Adjust the Data Backup alert in your initial tenant database and apply it also
to the SYSTEMDB.
Field Participant 1 Value Participant 2 Value

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

<SID>@SID> H46@H46 H47@H47

a) On the Alerts screen, choose the Data backup does not exist. alert.

b) At what Interval is the Data Backup Alert checked?

c) When is the next Scheduled Run for the Data Backup Alert planned?

d) On the Alerts screen of your <SID>@<SID> tenant database, choose the Edit Alert
Definition button.

e) In the Existence of data backup ( ID 35 ) column, reduce the Interval: to five hours, and
choose the Save button.

f) On the Alerts screen, choose the Refresh button, located in the upper-right corner.

g) On the Alerts screen, review and compare the Next Scheduled Run: and Interval: values
with your answers to questions 5.b) and 5.c).

h) In the Existence of data backup ( ID 35 ) column, choose the More (…) → Apply to other
databases button.
Depending on your display size and resolution, you may see the Apply to other databases
button directly.

i) In the Select Databases dialog box, choose your SYSTEMDB@<SID> database, and
choose the OK button.

6. All Participants: Review the changed Alert Interval value for your SYSTEMDB@<SID>
database.

© Copyright. All rights reserved. 91


Unit 7: Monitoring using the SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

<SID>@SID> H46@H46 H47@H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

a) On the Alerts screen of your <SID>@<SID> tenant database, choose the Open Other
Databases button (the cube icon) in the upper-right corner.

b) In the Open Other Databases dialog box, select your SYSTEMDB@<SID> database and
choose the OK button.

c) In the SYSTEMDB@<SID> Alerts screen, choose the Data backup does not exist alert to
open the Alert details.

d) At what Interval is the Data Backup Alert for your SYSTEMDB@<SID> database checked?

e) Return to the Home screen by choosing the Alerts navigation menu, and from the
dropdown list, select the Home option.

© Copyright. All rights reserved. 92


Unit 8
Exercise 20

Use Different Methods to Start and Stop the


SAP HANA Database

Business Example
You have several multitenant SAP HANA databases in your landscape and you need to be able to
stop and start tenants and also the whole SAP HANA database system.

Task 1: Use SAP HANA Cockpit to Stop and Start your Initial Tenant Database
In this exercise, you use SAP HANA cockpit to stop and start your SAP HANA tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<tenant database> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

4. All Participants: Use SAP HANA cockpit to start your tenant database.

Result
You now have learned how to stop and start an SAP HANA tenant database using SAP HANA
cockpit.

Task 2: Use SAP HANA Cockpit to Stop Your New Tenant Database
In this exercise, you use SAP HANA cockpit to stop your new SAP HANA tenant database R##,
which was created and renamed in a former exercise called Create and Rename a Tenant
Database. But in comparison to the former exercise, you will not start your SAP HANA tenant
database after the shutdown.

© Copyright. All rights reserved. 93


Unit 8: Administering using SAP HANA Cockpit

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<tenant database> R01 R02

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

Result
Overall, you now have learned how to stop and start an SAP HANA tenant database using the SAP
HANA cockpit.

Task 3: Use the SQL Console to Stop and Start your Initial Tenant Database
In this exercise, you use the SQL Console to stop and start your SAP HANA tenant database.

1. All Participants: Use the SQL Console from SAP HANA cockpit – Database Explorer to stop
your tenant database.
Field Participant 1 Value Participant 2 Value

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

<tenant database> H46 H47

Result
You now have learned how to stop and start an SAP HANA tenant using the SQL Console.

Task 4: Use SAP HANA Cockpit to Stop and Start Your SAP HANA Database System
In this exercise, you use SAP HANA cockpit to stop and start your SAP HANA database system.

1. All Participants: Use SAP HANA cockpit to stop your SAP HANA database system <SID>.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

2. All Participants: Use SAP HANA cockpit to start your SAP HANA database system.

© Copyright. All rights reserved. 94


Exercise 20: Use Different Methods to Start and Stop the SAP HANA Database

Field Participant 1 Value Participant 2 Value

<SID> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

Result
You now have learned how to stop and start an SAP HANA database system using SAP HANA
cockpit. In addition, you recognized that the initial state of an SAP HANA database system is
taken into account when a complete restart happened.

Task 5: Stop and Start SAP HANA Using SAPControl on the Command Line
In this exercise, you use the operating system command SAPControl to stop and start your SAP
HANA database system.

Note:
In this exercise step, you are going to use two PuTTY sessions, which get additionally
assigned the respective number (1 or 2) in brackets written in the step description.

1. All Participants: If you have closed the PuTTY ssh session to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

2. All Participants: In the PuTTY session, use SAPControl to stop the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

Linux Server wdflbmt7346 wdflbmt7347

3. All Participants: In the PuTTY session (2), use SAPControl to start the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

Result
You now have learned how to stop and start an SAP HANA database system using the
SAPControl command.

Task 6: Stop and Start SAP HANA Using HDB on the Command Line
In this exercise, you use the operating system command HDB to stop and start your SAP HANA
database system.

1. All Participants: If you have closed the PuTTY ssh session (1) to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

© Copyright. All rights reserved. 95


Unit 8: Administering using SAP HANA Cockpit

2. All Participants: In the PuTTY session (1), use the HDB command to stop the SAP HANA
database system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

3. All Participants: In the PuTTY session (1), use the HDB command to start the SAP HANA
database system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

Result
You now have learned how to stop and start an SAP HANA database system using the HDB
command.

© Copyright. All rights reserved. 96


Unit 8
Solution 20

Use Different Methods to Start and Stop the


SAP HANA Database

Business Example
You have several multitenant SAP HANA databases in your landscape and you need to be able to
stop and start tenants and also the whole SAP HANA database system.

Task 1: Use SAP HANA Cockpit to Stop and Start your Initial Tenant Database
In this exercise, you use SAP HANA cockpit to stop and start your SAP HANA tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<tenant database> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 97


Unit 8: Administering using SAP HANA Cockpit

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Database Management link at the end of the
SYSTEMDB@<SID> row.
The Database Management screen displays your SYSTEMDB and an overview of all the
tenant databases of your SAP HANA database system.

c) On the Database Management screen, choose the Stop dropdown at the end of your
<tenant database>, and from the dropdown list, select the Stop option.

d) In the Stop Tenant Database dialog box, select the Immediately after open transactions are
aborted and rolled back radio button, and choose the Stop Tenant button.
The tenant shutdown takes around 30 seconds. To get an updated status overview,
choose the SAP HANA cockpit Refresh button on the top-right corner of the screen.

e) Do not close Google Chrome. As soon as your SAP HANA tenant database is stopped,
continue with the next exercise step.

4. All Participants: Use SAP HANA cockpit to start your tenant database.
a) In the Database Management screen, choose the Start button to start your recently
stopped SAP HANA <tenant database>.
The startup takes around 1 minute. To get an updated status overview, choose the SAP
HANA cockpit Refresh button on the top-right corner of the screen.

Result
You now have learned how to stop and start an SAP HANA tenant database using SAP HANA
cockpit.

Task 2: Use SAP HANA Cockpit to Stop Your New Tenant Database
In this exercise, you use SAP HANA cockpit to stop your new SAP HANA tenant database R##,
which was created and renamed in a former exercise called Create and Rename a Tenant
Database. But in comparison to the former exercise, you will not start your SAP HANA tenant
database after the shutdown.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

© Copyright. All rights reserved. 98


Solution 20: Use Different Methods to Start and Stop the SAP HANA Database

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application: https://wdflbmt7350.wdf.sap.corp:51026.

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<tenant database> R01 R02

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Database Management link at the end of the
SYSTEMDB@<SID> row.
The Database Management screen displays your SYSTEMDB and an overview of all the
tenant databases of your SAP HANA database system.

c) On the Database Management screen, choose the Stop dropdown at the end of your
<tenant database>, and from the dropdown list select the Stop option.

d) In the Stop Tenant Database dialog box, select the Immediately after open transactions are
aborted and rolled back radio button, and choose the Stop Tenant button.
The tenant shutdown takes around 30 seconds. To get an updated status overview,
choose the SAP HANA cockpit Refresh button on the top-right corner of the screen.

e) Do not start your <tenant database>.

f) Do not close Google Chrome. As soon as your SAP HANA tenant database is stopped,
continue with the next exercise step.
Result
You stopped successful your newly created and renamed SAP HANA tenant database. It
will remain stopped in order to see what happens when the complete SAP HANA system
will be stopped and then restarted in the next exercise.

Result
Overall, you now have learned how to stop and start an SAP HANA tenant database using the SAP
HANA cockpit.

Task 3: Use the SQL Console to Stop and Start your Initial Tenant Database
In this exercise, you use the SQL Console to stop and start your SAP HANA tenant database.

1. All Participants: Use the SQL Console from SAP HANA cockpit – Database Explorer to stop
your tenant database.

© Copyright. All rights reserved. 99


Unit 8: Administering using SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

<tenant database> H46 H47

a) From your SYSTEMDB@<SID> Database Management screen, return to the Database


Overview screen by choosing the Database Management navigation menu, and from the
dropdown list, select the Database Overview option.

b) From your SYSTEMDB@<SID> Database Overview screen, choose the Open SQL Console
link to start the Database Explorer application.
The Database Explorer for the SAP HANA Database opens in a new browser tab.

c) In the Database Explorer screen, locate the SQL Console tab, and enter the following SQL
statement:
ALTER SYSTEM STOP DATABASE <tenant database> immediate;

d) Choose the Run button to execute the command.


After executing the stop database statement, you can optionally check in the
SYSTEMDB@<SID> Database Management screen of the SAP HANA cockpit to confirm
the tenant shutdown.

e) Return to the Database Explorer screen, and locate the previously used SQL Console tab
connected to your SYSTEMDB@<SID>.

f) To start your tenant database back again, enter the following SQL statement:
ALTER SYSTEM START DATABASE <tenant database>;

g) Choose the Run button.


After executing the start database statement, you can optionally check in the
SYSTEMDB@<SID> Database Management screen of the SAP HANA cockpit to confirm
the tenant startup.

h) Return to your <SYSTEMDB@SID> Database Overview screen by choosing the SAP HANA
cockpit < (Back) button.

Result
You now have learned how to stop and start an SAP HANA tenant using the SQL Console.

Task 4: Use SAP HANA Cockpit to Stop and Start Your SAP HANA Database System
In this exercise, you use SAP HANA cockpit to stop and start your SAP HANA database system.

1. All Participants: Use SAP HANA cockpit to stop your SAP HANA database system <SID>.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 100


Solution 20: Use Different Methods to Start and Stop the SAP HANA Database

a) On the <SYSTEMDB@<SID> Database Overview screen, choose the Stop Database


button.
The screen switches to the Manage Services app.

b) In the Stop Database dialog box, select the After all running statements finish executing
radio button, and leave the But no more than: time-out value at default five minutes.

c) In the Stop Database dialog box, choose the Stop Database button to stop the SAP HANA
system.
The complete SAP HANA database system, including all tenants, will be shut down. Wait
until the shutdown process is completed and you only see the Daemon service with status
Stopped before you continue to the next exercise step.

d) Leave the <SYSTEMDB@<SID> Manage Services screen open for the next step.

2. All Participants: Use SAP HANA cockpit to start your SAP HANA database system.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

SYSTEMDB@<SID> SYSTEMDB@H46 SYSTEMDB@H47

a) In the SYSTEMDB@<SID> Manage Services screen, choose the Start Database button.

b) In the Start Database dialog box, choose Yes to start the SAP HANA database system.
The system database and all previously running tenant databases in your SAP HANA
database system are started. Wait for the launch to complete before proceeding to the
next exercise step. Remember that your newly created and renamed SAP HANA tenant
database R## was in status Stopped before the complete SAP HANA database system
was shut down.

c) Return to the Home screen by choosing the Manage Services navigation menu, and from
the dropdown list, select the Home option.

Result
You now have learned how to stop and start an SAP HANA database system using SAP HANA
cockpit. In addition, you recognized that the initial state of an SAP HANA database system is
taken into account when a complete restart happened.

Task 5: Stop and Start SAP HANA Using SAPControl on the Command Line
In this exercise, you use the operating system command SAPControl to stop and start your SAP
HANA database system.

Note:
In this exercise step, you are going to use two PuTTY sessions, which get additionally
assigned the respective number (1 or 2) in brackets written in the step description.

1. All Participants: If you have closed the PuTTY ssh session to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

© Copyright. All rights reserved. 101


Unit 8: Administering using SAP HANA Cockpit

2. All Participants: In the PuTTY session, use SAPControl to stop the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

Linux Server wdflbmt7346 wdflbmt7347

a) In your PuTTY session (1), to change to your SAP HANA OS user, enter the command su
- <sid>adm.

b) As the <sid>adm user, check the SAP HANA database status using the following
command:
watch -n 1 sapcontrol -nr 00 -function GetProcessList

The command shows you every second a refreshed status of all running SAP HANA
services, such as:

Every 1.0s: sapcontrol -nr 00 -function GetProcessList wdflbmt7346: Fri


Jul 29 15:43:27 2022

29.07.2022 15:43:27
GetProcessList
OK
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
hdbdaemon, HDB Daemon, GREEN, Running, 2022 07 29 14:44:31, 0:58:56, 12213
hdbcompileserver, HDB Compileserver, GREEN, Running, 2022 07 29 14:44:39,
0:58:48, 12408
hdbindexserver, HDB Indexserver-H46, GREEN, Running, 2022 07 29 14:44:39,
0:58:48, 12445
hdbnameserver, HDB Nameserver, GREEN, Running, 2022 07 29 14:44:32,
0:58:55, 12235
hdbpreprocessor, HDB Preprocessor, GREEN, Running, 2022 07 29 14:44:39,
0:58:48, 12411
hdbwebdispatcher, HDB Web Dispatcher, GREEN, Running, 2022 07 29
14:44:53, 0:58:34, 12828
hdbxsengine, HDB XSEngine-H46, GREEN, Running, 2022 07 29 14:44:39,
0:58:48, 12448

c) Open a second PuTTY ssh session (2) to your Linux server as described in step 3 of the
Explore the HA200 Training Landscape exercise, and change to your SAP HANA OS user.
Enter the command: su - <sid>adm.

d) In the second PuTTY ssh session (2), as the <sid>adm user, stop the SAP HANA database
using the following command:
sapcontrol -nr 00 -function StopSystem

e) In the first PuTTY ssh session (1), observe the shutdown process.
Once all services are stopped, you should only see the HDB Daemon service with the
status Stopped, like:

Every 1.0s: sapcontrol -nr 00 -function GetProcessList wdflbmt7346: Fri

© Copyright. All rights reserved. 102


Solution 20: Use Different Methods to Start and Stop the SAP HANA Database

Jul 29 15:53:37 2022

29.07.2022 15:53:37
GetProcessList
OK
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
hdbdaemon, HDB Daemon, GRAY, Stopped, , , 12213

3. All Participants: In the PuTTY session (2), use SAPControl to start the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

a) In the previously opened second PuTTY ssh session (2), as user <sid>adm, start the SAP
HANA database system using the command:
sapcontrol -nr 00 -function StartSystem

b) In the previously opened first PuTTY ssh session (1), observe the start-up process.
Once all the services are started, you should see them with a status Green and Running,
such as:

Every 1.0s: sapcontrol -nr 00 -function GetProcessList wdflbmt7346: Fri


Jul 29 16:13:33 2022

29.07.2022 16:13:33
GetProcessList
OK
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
hdbdaemon, HDB Daemon, GREEN, Running, 2022 07 29 16:11:41, 0:01:52, 26190
hdbcompileserver, HDB Compileserver, GREEN, Running, 2022 07 29 16:11:49,
0:01:44, 26423
hdbindexserver, HDB Indexserver-H46, GREEN, Running, 2022 07 29 16:11:49,
0:01:44, 26460
hdbnameserver, HDB Nameserver, GREEN, Running, 2022 07 29 16:11:42,
0:01:51, 26215
hdbpreprocessor, HDB Preprocessor, GREEN, Running, 2022 07 29 16:11:49,
0:01:44, 26426
hdbwebdispatcher, HDB Web Dispatcher, GREEN, Running, 2022 07 29
16:12:04, 0:01:29, 26897
hdbxsengine, HDB XSEngine-H46, GREEN, Running, 2022 07 29 16:11:49,
0:01:44, 26463

c) In your first PuTTY session (1), use the [Ctrl]+c command to terminate the currently
running sapcontrol program.

d) In your second PuTTY session (2), enter exit to leave the <sid>adm session.

e) In your second PuTTY session (2), enter exit, to disconnect and close the ssh connection
to your SAP HANA Linux host.

Result
You now have learned how to stop and start an SAP HANA database system using the
SAPControl command.

© Copyright. All rights reserved. 103


Unit 8: Administering using SAP HANA Cockpit

Task 6: Stop and Start SAP HANA Using HDB on the Command Line
In this exercise, you use the operating system command HDB to stop and start your SAP HANA
database system.

1. All Participants: If you have closed the PuTTY ssh session (1) to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

2. All Participants: In the PuTTY session (1), use the HDB command to stop the SAP HANA
database system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

a) In your PuTTY session (1), if you are not the SAP HANA OS user anymore, execute the
command su - <sid>adm.

b) As user <sid>adm, check the SAP HANA database status using the following command:
HDB info

The command shows you the status of all running SAP HANA services.

c) As user <sid>adm, stop the SAP HANA database using the command:
HDB stop

As soon as all the services have stopped, the cursor returns, and you can continue to the
next exercise step.

d) As user <sid>adm, check the SAP HANA database status using the command:
HDB info

The command shows you that all services have stopped except the sapstartsrv and
hdbrsutil (SAP HANA Row Store) services.

3. All Participants: In the PuTTY session (1), use the HDB command to start the SAP HANA
database system.
Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

a) As user <sid>adm, stop the SAP HANA database using the following command:
HDB start

As soon as all the services have started, the cursor returns, and you can continue to the
next exercise step.

b) As user <sid>adm, check the SAP HANA database status using the following command:
HDB info

The command shows you that all services have started and the SAP HANA database
system is up and running.

© Copyright. All rights reserved. 104


Solution 20: Use Different Methods to Start and Stop the SAP HANA Database

Result
You now have learned how to stop and start an SAP HANA database system using the HDB
command.

© Copyright. All rights reserved. 105


Unit 8
Exercise 21

Change SAP HANA Configuration Parameters


with SAP HANA Cockpit

Business Example
SAP HANA parameters are configuration options that can be used to influence the behavior of
SAP HANA in various ways. Typical reasons for setting parameters are individual security
settings, work-around for bugs, influencing CPU and memory resource consumption, or definition
of file and directory locations.

Caution:
The SAP HANA cockpit is the central monitoring and administration tool. In our
training landscape, SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit server system to
perform configuration changes for their individual SAP HANA system installations.

Change the Value of Parameter savepoint_interval_s for Your Tenant Database


As a member of the SYSTEM DB administration, you decided to adjust an important configuration
parameter after the installation of the SAP HANA system. The parameter savepoint_interval_s
defines the frequency of savepoints. You decided to reduce the (recommended) value 300s for
the initial tenant by one minute to 240s. Use the SAP HANA cockpit to perform the corresponding
configuration change.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. As the system administrator of your SYSTEM DB, change the savepoint_interval_s


parameter at the Database Layer for your initial tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 106


Exercise 21: Change SAP HANA Configuration Parameters with SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

Parameter Name savepoint_interval_s savepoint_interval_s

System Layer: Unselected Unselected

Database Layer: Selected Selected

Select Database: H46 H47

H4# Value 240s 240s

Comment Changed by SYSTEM DB - Changed by SYSTEM DB -


group 01 group 02

4. Check the value set in the previous step from the perspective of a tenant database
administrator. Do not change any value, but verify the settings.

© Copyright. All rights reserved. 107


Unit 8
Solution 21

Change SAP HANA Configuration Parameters


with SAP HANA Cockpit

Business Example
SAP HANA parameters are configuration options that can be used to influence the behavior of
SAP HANA in various ways. Typical reasons for setting parameters are individual security
settings, work-around for bugs, influencing CPU and memory resource consumption, or definition
of file and directory locations.

Caution:
The SAP HANA cockpit is the central monitoring and administration tool. In our
training landscape, SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit server system to
perform configuration changes for their individual SAP HANA system installations.

Change the Value of Parameter savepoint_interval_s for Your Tenant Database


As a member of the SYSTEM DB administration, you decided to adjust an important configuration
parameter after the installation of the SAP HANA system. The parameter savepoint_interval_s
defines the frequency of savepoints. You decided to reduce the (recommended) value 300s for
the initial tenant by one minute to 240s. Use the SAP HANA cockpit to perform the corresponding
configuration change.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

© Copyright. All rights reserved. 108


Solution 21: Change SAP HANA Configuration Parameters with SAP HANA Cockpit

c) If the Your connection is not private screen is shown, choose Advanced and in the
subsequent screen select Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter the credentials of your SAP HANA cockpit
user and password from the above table, and choose the Log On button.

3. As the system administrator of your SYSTEM DB, change the savepoint_interval_s


parameter at the Database Layer for your initial tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

Parameter Name savepoint_interval_s savepoint_interval_s

System Layer: Unselected Unselected

Database Layer: Selected Selected

Select Database: H46 H47

H4# Value 240s 240s

Comment Changed by SYSTEM DB - Changed by SYSTEM DB -


group 01 group 02

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your System Database.

c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.

d) On the Database Configuration screen, enter savepoint_interval_s into the Search


field, and choose the Go button.

e) To change the savepoint_interval_s parameter, choose the Override Value button at the
end of the row.

f) In the Override Values dialog box, enter the data from the above table.

g) To save the new value, choose the OK button.

h) Notice the new entry under the parameter: it is defined for the layer DATABASE
(<tenant_name>) with the new value.
Result
You, as member of the SYSTEM DB administrative group, have successfully changed the
SAP HANA configuration parameter savepoint_interval_s for your tenant database.

4. Check the value set in the previous step from the perspective of a tenant database
administrator. Do not change any value, but verify the settings.

© Copyright. All rights reserved. 109


Unit 8: Administering using SAP HANA Cockpit

a) You are still in the Database Configuration app and logged on in the context of the
SYSTEMDB@<SID>.

b) Switch to your tenant by using the cube icon in the header area on the right-hand side,
which is function Open Other Databases.

c) Select the checkbox in front of your tenant DB <tenant_name@<SID> and confirm with
OK.

d) On the resulting screen, you should see the parameter savepoint_interval_s with three
rows, defined on different layers.
If the parameter is not directly visible, this is most likely caused by a missing (or incorrect)
term in the search field of the app. Provide, for example, savepoint and press ENTER.
Result
You should see the parameter savepoint_interval_s with the following layers and values
defined:

● Layer DEFAULT with value 300s

● Layer SYSTEM with value 240s

● Layer DATABASE with value 240s

From the perspective of a tenant administrator, the SYSTEM value is the same as for the
tenant, even if the SYSTEMDB administrator did not define this layer explicitly in the
configuration.

e) Return to the SAP HANA cockpit Home screen by choosing the Database Configuration
navigation menu, and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 110


Unit 8
Exercise 22

Set Up Restricted Features and Blocked


Parameters

Business Example
Some features are not required or desirable in specific environments. These functions can be
deactivated if defined by SAP as features. But even if not, there is a second option, which allows
you to block functions based on an explicit parameter level. In this exercise, we deal with both
topics Restricted Features and Blocklisted Parameters.

Task 1: Restrict Feature


An existing feature of SAP HANA should be deactivated for a specific tenant database. As a
member of the SYSTEM DB admin group, you have checked the SAP documentation and
identified a specific feature that should be deactivated for a tenant database. In our scenario, the
feature of specifying the backup path should be restricted for the group of tenant database
administrators, so that the management of backup operations is purely given to the SYSTEM DB
admin group.

1. Check the list of Restricted Features and deactivate the feature IGNORE_PATH_RESTRICT.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

Initial Tenant Database H46@H46 H47@H47

2. Verify that the restricted feature was deactivated by checking the Change History in the
Database Configuration app of your Initial Tenant Database.
Result
There is a parameter called BACKUP.IGNORE_PATH_RESTRICT in the section
customizable_functionalities of the global.ini file and the parameter value false is set for layer
DATABASE, which is your initial tenant database <tenant_name>@<SID>.

The value false deactivates the feature to change the standard path (parameter
basepath_databackup) when executing backup operations. For further details, see the Unit
Performing Backup and Recovery.

Task 2: Block Parameter Changes


As an SAP HANA system administrator, you want to prevent changes to configuration
parameters from being made from a perspective of the tenant database administration. In other
words, for the group of tenant database administrators, we deactivate some parameters by
disallowing changes and using inheritance. For these actions, we use the SAP HANA cockpit.

© Copyright. All rights reserved. 111


Unit 8: Administering using SAP HANA Cockpit

1. Blocklist the savepoint_interval_s parameter for your initial tenant database.


Field Participant 1 Value Participant 2 Value

<SID@<SID> H46@H46 H47@H47

Configuration File: global.ini global.ini

Section: persistence persistence

Parameters: savepoint_interval_s savepoint_interval_s

2. Test the blocklisted parameter in your initial tenant database.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID@<SID> H46@H46 H47@H47

Parameter Name savepoint_interval_s savepoint_interval_s

Value: 300s 300s

Comment: Blocklisted parameter Blocklisted parameter


testing testing

© Copyright. All rights reserved. 112


Unit 8
Solution 22

Set Up Restricted Features and Blocked


Parameters

Business Example
Some features are not required or desirable in specific environments. These functions can be
deactivated if defined by SAP as features. But even if not, there is a second option, which allows
you to block functions based on an explicit parameter level. In this exercise, we deal with both
topics Restricted Features and Blocklisted Parameters.

Task 1: Restrict Feature


An existing feature of SAP HANA should be deactivated for a specific tenant database. As a
member of the SYSTEM DB admin group, you have checked the SAP documentation and
identified a specific feature that should be deactivated for a tenant database. In our scenario, the
feature of specifying the backup path should be restricted for the group of tenant database
administrators, so that the management of backup operations is purely given to the SYSTEM DB
admin group.

1. Check the list of Restricted Features and deactivate the feature IGNORE_PATH_RESTRICT.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

Initial Tenant Database H46@H46 H47@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, select the Database Management link at the end of the
System Database row.

c) On the Database Management screen, choose the Restricted Features button on the top-
right corner to enter the Blocklisted & Restricted app.

d) On the Restricted Features screen, from the Tenants list at the left of the window, choose
your Initial Tenant Database.

e) Having marked your Initial Tenant Database, select only the IGNORE_PATH_RESTRICT
checkbox (it is part of the superordinate entry BACKUP).

f) Choose the Save button.

© Copyright. All rights reserved. 113


Unit 8: Administering using SAP HANA Cockpit

Result
You have now successfully restricted the IGNORE_PATH_RESTRICT operation for your
initial tenant database. The tenant database administration will not be able to ignore the
path restrictions for backup operations. You will see and work with the result in the Unit
Performing Backup and Recovery.

g) Choose the Back button to return to the Database Management screen of your System
Database.

2. Verify that the restricted feature was deactivated by checking the Change History in the
Database Configuration app of your Initial Tenant Database.
a) From the still open Database Management screen of your System Database, choose the
link for your Initial Tenant Database.

b) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.

c) On the Database Configuration screen, choose the link View Change History at the right-
hand side.

d) Enter backup into the Search field.

e) Return to the SAP HANA cockpit Home screen by choosing the Database Configuration
navigation menu, and from the dropdown list, select the Home option.

Result
There is a parameter called BACKUP.IGNORE_PATH_RESTRICT in the section
customizable_functionalities of the global.ini file and the parameter value false is set for layer
DATABASE, which is your initial tenant database <tenant_name>@<SID>.

The value false deactivates the feature to change the standard path (parameter
basepath_databackup) when executing backup operations. For further details, see the Unit
Performing Backup and Recovery.

Task 2: Block Parameter Changes


As an SAP HANA system administrator, you want to prevent changes to configuration
parameters from being made from a perspective of the tenant database administration. In other
words, for the group of tenant database administrators, we deactivate some parameters by
disallowing changes and using inheritance. For these actions, we use the SAP HANA cockpit.

1. Blocklist the savepoint_interval_s parameter for your initial tenant database.


Field Participant 1 Value Participant 2 Value

<SID@<SID> H46@H46 H47@H47

Configuration File: global.ini global.ini

Section: persistence persistence

Parameters: savepoint_interval_s savepoint_interval_s

© Copyright. All rights reserved. 114


Solution 22: Set Up Restricted Features and Blocked Parameters

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, select the Database Management link at the end of the
System Database row.

c) On the Database Management screen, choose the Blocklisted Parameters button on the
top-right corner.

d) On the Blocklisted Parameters screen, from the Tenants list, choose your <SID@SID>
tenant database.

e) Having marked your <SID@SID> tenant database, choose the Add Parameter button.

f) On the Add Parameter to Blocklist dialog box, enter the data from the above table.
You can use the dropdown lists for the fields to find and select the proper value entries.

g) Choose the Add button.


Result
You have now successfully blocklisted the savepoint_interval_s parameter for your initial
tenant database.

h) Return to the SAP HANA cockpit Home screen by choosing the Blocklisted & Restricted
navigation menu, and from the dropdown list, select the Home option.

2. Test the blocklisted parameter in your initial tenant database.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID@<SID> H46@H46 H47@H47

Parameter Name savepoint_interval_s savepoint_interval_s

Value: 300s 300s

Comment: Blocklisted parameter Blocklisted parameter


testing testing

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID@SID> tenant database.

c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.

d) On the Database Configuration screen, enter savepoint_interval_s into the Search


field, and choose the Go button.

e) To change the savepoint_interval_s parameter, choose the Override Value button for the
DEFAULT layer at the end of the row.

f) In the Override Values dialog box, choose the Restore Default button.

© Copyright. All rights reserved. 115


Unit 8: Administering using SAP HANA Cockpit

The Value field resets to 300s.

g) To save the new value, choose the OK button.


Result
An error message informs the tenant database administrator that it is not allowed to make
changes to parameters.
You can also try to change or even delete the values for the SYSTEM and DATABASE layer.
The restrictions also do not allow the tenant database administrator to perform these
actions.

h) Choose the OK button, to close the message.

i) Return to the SAP HANA cockpit Home screen by choosing the Database Configuration
navigation menu, and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 116


Unit 8
Exercise 23

Manually Trigger a Delta Merge Operation

Manually trigger a delta merge operation and compare the changes in memory consumption
values for main storage and delta storage. In this exercise, you work with both tools: the SAP
HANA cockpit and the Database Explorer.

1. All Participants: Prepare the EPM.PO.Item_Part table for a manual delta merge operation.
Field Participant 1 Value Participant 2 Value

<SID@SID> H46@H46 H47@H47

2. All Participants: Manually trigger a delta merge operation of the EPM.PO.Item_Part table.

3. All Participants: After the delta merge operation has been performed, check the memory
consumption values of the main storage and delta storage for the EPM.PO.Item_Part table.

4. All Participants: Re-enable the AUTOMERGE option for the EPM.PO.Item_Part table.

© Copyright. All rights reserved. 117


Unit 8
Solution 23

Manually Trigger a Delta Merge Operation

Manually trigger a delta merge operation and compare the changes in memory consumption
values for main storage and delta storage. In this exercise, you work with both tools: the SAP
HANA cockpit and the Database Explorer.

1. All Participants: Prepare the EPM.PO.Item_Part table for a manual delta merge operation.
Field Participant 1 Value Participant 2 Value

<SID@SID> H46@H46 H47@H47

a) On the previously opened Database Directory screen, choose your tenant database
<SID@SID> to enter the Database Overview application.

b) Ensure that the view Administration or All is selected.

c) On the Database Overview screen, enter Table Distribution in the top-left corner
search field, and choose the View Current Table Distribution link in the Table Distribution
card.

d) On the Current Table Distribution screen, choose (left-click) the EPM.PO.Item_Part table.

e) In the Column-Store Table dialog box, choose the Show Runtime Data option.
The Memory Consumption values are also shown here, as well as some other data related
to the EPM.PO.Item_Part table.
Since you have fully loaded the EPM.PO.Item_Part table into memory, the main storage
holds all of the data while the delta storage just keeps some meta data.

f) In the EPM.PO.Item_Part dialog box, choose Close.

g) From the navigation menu Current Table Distribution, choose the Database Directory entry
to get back to the database overview list.

h) On the Database Directory screen, choose your <SID>@<SID> tenant database link.

i) On the Database Overview screen, choose Open SQL Console in the top-right corner.

j) In the SQL Console, to disable the auto-merge feature for the EPM.PO.Item_Part table,
enter the following command:
ALTER TABLE "HA200_DEMO"."EPM.PO.Item_Part" DISABLE AUTOMERGE;

k) Choose the Run button to execute the statement.

© Copyright. All rights reserved. 118


Solution 23: Manually Trigger a Delta Merge Operation

l) In the SQL Console, enter the following update statement:

UPDATE "HA200_DEMO"."EPM.PO.Item_Part" SET "QUANTITY" = 10 WHERE


"QUANTITY" = 1;

m) Choose the Run button.

Note:
The UPDATE command takes approximately 20 seconds to be executed.

2. All Participants: Manually trigger a delta merge operation of the EPM.PO.Item_Part table.
a) Back on the SAP HANA cockpit Current Table Distribution screen you have previously
opened, choose (left-click) the EPM.PO.Item_Part table.

b) In the Column-Store Table dialog box, choose the Show Runtime Data option.
Note that the memory consumption of the delta storage for the EPM.PO.Item_Part table
has increased significantly.

c) In the EPM.PO.Item_Part dialog box, choose Close.

d) On the Current Table Distribution screen, choose (left-click) the EPM.PO.Item_Part table.

e) In the Column-Store Table dialog box, choose the Delta Merge option.

f) In the Confirm dialog box, choose the Yes button to execute the manual delta merge
operation.

Note:
Information popups display for a short duration to notify you about the start
and completion of the delta merge operation.

3. All Participants: After the delta merge operation has been performed, check the memory
consumption values of the main storage and delta storage for the EPM.PO.Item_Part table.
a) On the Current Table Distribution screen, choose (left-click) the EPM.PO.Item_Part table.

b) In the Column-Store Table dialog box, choose the Show Runtime Data option.
Note that the memory consumption of the main and the delta storage has been
redistributed to reflect a normal merged state.

c) In the EPM.PO.Item_Part dialog box, choose Close.

d) Return to the Home screen by choosing the Current Table Distribution navigation menu,
and from the dropdown list, select the Home option.

4. All Participants: Re-enable the AUTOMERGE option for the EPM.PO.Item_Part table.
a) In the SAP HANA Database Explorer window, open a new SQL Console tab by choosing the
Open SQL Console button in the top-left corner for your tenant database.

© Copyright. All rights reserved. 119


Unit 8: Administering using SAP HANA Cockpit

b) In the SQL Console, enter the following SQL statement:


ALTER TABLE "HA200_DEMO"."EPM.PO.Item_Part" ENABLE AUTOMERGE;

c) Choose the Run button to execute the command.

d) At your own discretion, close any SQL Console tabs that you no longer need.

© Copyright. All rights reserved. 120


Unit 8
Exercise 24

Configure SAP HANA Traces

Business Example
As an SAP HANA system administrator, you need to activate the traces to investigate system
issues.

Caution:
SAP HANA cockpit is the central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit server system to
monitor their SAP HANA databases.

Task 1: Use SAP HANA Cockpit to Activate the SQL Trace


The SQL trace collects information about all SQL statements executed on the index server
(tenant database) or name sever (system database) and saves it to a trace file for further
analysis. Start tracing some SELECT statements executed in your tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: In SAP HANA cockpit, enable the SQL trace.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

4. All Participants: Use the SQL Console to execute an SQL statement.

5. All Participants: Deactivate the SQL trace.

6. All Participants: Check the generated SQL trace file.

© Copyright. All rights reserved. 121


Unit 8: Administering using SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47

<hostname> wdflbmt7346 wdflbmt7347

<your username> ADMIN01 ADMIN02

Task 2: Generate Full System Information Dumps


To provide information for an SAP HANA Support Ticket, create a zip-file containing all related
system data.

1. All Participants: Open the Full System Information Dumps application in SAP HANA cockpit for
your tenant database using the following information:
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

<hostname> wdflbmt7346 wdflbmt7347

2. All Participants: Generate a full system information dump.


Result

© Copyright. All rights reserved. 122


Unit 8
Solution 24

Configure SAP HANA Traces

Business Example
As an SAP HANA system administrator, you need to activate the traces to investigate system
issues.

Caution:
SAP HANA cockpit is the central monitoring and administration tool. In our training
landscape, the SAP HANA cockpit is installed once on a central server. Both
Participant 1 and Participant 2 use this central SAP HANA cockpit server system to
monitor their SAP HANA databases.

Task 1: Use SAP HANA Cockpit to Activate the SQL Trace


The SQL trace collects information about all SQL statements executed on the index server
(tenant database) or name sever (system database) and saves it to a trace file for further
analysis. Start tracing some SELECT statements executed in your tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: In SAP HANA cockpit, enable the SQL trace.

© Copyright. All rights reserved. 123


Unit 8: Administering using SAP HANA Cockpit

Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

<your username> ADMIN01 ADMIN02

a) From the SAP HANA Cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your tenant database <SID>@<SID> from the
list.

c) On the Database Overview screen of your <SID>@<SID> database, enter Configure


Tracing into the search field, and choose the appropriate link from the Alerting and
Diagnostics card.
The SAP HANA Database Explorer starts and opens the Trace Configuration tab. If you
have an already running Database Explorer, it is also possible to open the Trace
Configuration tab directly by right-click your <SID>@<SID> database and from the context
menu, choose the Trace Configuration option.

d) In the Trace Configuration tab, find the SQL Trace section, and choose the Edit button.

e) In the SQL Trace Configuration dialog box, select the Enable SQL Tracing check-box.

f) In the Save Trace As field, enter the file name sqltrace_<your username>.py. Leave
all the other fields with their default settings.

g) In the SQL Trace Configuration dialog box, keep the Statement Type Filter: DML check-box
selected and deselect all other types.

h) Choose the OK button to start the SQL trace.

4. All Participants: Use the SQL Console to execute an SQL statement.


a) In the Database Explorer screen, ensure that your <SID>@<SID> tenant database entry is
highlighted, and choose the Open SQL Console button in the top-left corner.

b) In the SQL Console editor, enter the following SQL statement:


select * from "HA200_DEMO"."sap.hana.democontent.epm.data::PO.Item"

c) To execute the SQL statement, choose the Run (F8) button. Repeat this step three times.
Note the time when you execute the SQL statement.

5. All Participants: Deactivate the SQL trace.


a) In the previously opened Trace Configuration tab, navigate to the SQL Trace section and
choose the Edit button.

b) In the SQL Trace Configuration dialog box, deselect the Enable SQL Tracing check-box, and
choose the OK button to stop the SQL trace.

6. All Participants: Check the generated SQL trace file.

© Copyright. All rights reserved. 124


Solution 24: Configure SAP HANA Traces

Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47

<hostname> wdflbmt7346 wdflbmt7347

<your username> ADMIN01 ADMIN02

a) In the Database Explorer screen, navigate to your <SID>@<SID> tenant database →


Database Diagnostic Files → <hostname> → sqltrace folder, and select it.

b) From the list of files in the sqltrace folder, select the sqltrace_<your username>.py file.
The sqltrace_<your username>.py trace opens in a new tab.

c) In the sqltrace_<your username>.py trace tab, select [Ctrl]+F and search for the
previously executed SQL statement:
select * from "HA200_DEMO"."sap.hana.democontent.epm.data::PO.Item"

Hint:
If you cannot find your SQL statement, increase the number of shown lines on
the top-left corner of the toolbar Lines shown: to a higher value.

d) How often do you find the SQL statement?

e) At your own discretion, close any SQL Console tabs that you no longer need.

f) In your SAP HANA cockpit, return to the Home screen by choosing the Database Overview
navigation menu, and from the drop-down list, select the Home option.

Task 2: Generate Full System Information Dumps


To provide information for an SAP HANA Support Ticket, create a zip-file containing all related
system data.

1. All Participants: Open the Full System Information Dumps application in SAP HANA cockpit for
your tenant database using the following information:
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

<hostname> wdflbmt7346 wdflbmt7347

a) From the SAP HANA Cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

© Copyright. All rights reserved. 125


Unit 8: Administering using SAP HANA Cockpit

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

c) On the Database Overview screen of your <SID>@<SID> database, enter Manage full
system information dumps into the search field and choose the appropriate link from
the Alerting and Diagnostics card to enter the Full System Information Dumps application.

2. All Participants: Generate a full system information dump.


a) On the Full System Information Dumps screen, choose the Collect Diagnostics button.

b) From the drop-down menu, select the Collect from Existing Files option.

c) In the Collect Diagnosis Information from Existing Files dialog box, select a Date Range that
shows the last four days and select the Start Collecting button.

d) Confirm that the column for Collection Status shows Completed.

e) On the Full System Information Dumps screen, choose the Download button related to the
generated zip-file.
The
fullsysteminfodump_<SID>_<SID>_<hostname>.wdf.sap.corp_<timestamp>.z
ip file is downloaded to the Downloads directory defined for your browser.

f) In your browser window, in the top-right corner, choose the Download (Arrow down) icon
and from the menu choose the
fullsysteminfodump_<SID>_<SID>_<hostname>.wdf.sap.corp_<timestamp>.zip to open
the zip file.
WinRAR will open and show the content.

g) Review the content.

h) Close the WinRAR window.

i) Return to the Home screen by choosing the Full System Information Dumps navigation
menu, and from the drop-down list select the Home option.

Result

© Copyright. All rights reserved. 126


Unit 9
Exercise 25

Performing Data Backups

Task 1: Perform a Complete SYSTEMDB and Tenant Database Backup

Business Example
You want to manually perform complete backups of the SYSTEMDB and the tenant database to
test if the backup settings are correct.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Use SAP HANA cockpit to perform a complete data backup of the
SYSTEMDB.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02


System Database SYSTEMDB@H46 SYSTEMDB@H47
Backup Type: Complete Complete
Destination Type: File File
Retained NO NO
Include Configuration Files NO NO
Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

4. All Participants: Use SAP HANA cockpit to perform a complete data backup of the <SID>
tenant database.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

© Copyright. All rights reserved. 127


Unit 9: Performing Backup and Recovery

Field Participant 1 Value Participant 2 Value

Backup Type: Complete Complete


Destination Type: File File
Retained NO NO
Include Configuration Files NO NO
Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

Task 2: Perform a Differential Backup of the <SID> Tenant

Business Example
You want to manually perform a differential backup of the <SID> tenant database to test if the
backup settings are correct.

1. Use SAP HANA cockpit to perform a differential data backup of the <SID> tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02


<SID> H46 H47
Backup Type: Differential Differential
Destination Type: File File
Retained NO NO
Include Configuration Files NO NO
Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

© Copyright. All rights reserved. 128


Unit 9
Solution 25

Performing Data Backups

Task 1: Perform a Complete SYSTEMDB and Tenant Database Backup

Business Example
You want to manually perform complete backups of the SYSTEMDB and the tenant database to
test if the backup settings are correct.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Use SAP HANA cockpit to perform a complete data backup of the
SYSTEMDB.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02


System Database SYSTEMDB@H46 SYSTEMDB@H47
Backup Type: Complete Complete
Destination Type: File File
Retained NO NO
Include Configuration Files NO NO

© Copyright. All rights reserved. 129


Unit 9: Performing Backup and Recovery

Field Participant 1 Value Participant 2 Value

Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Database Management link.

c) On the Database Management screen, choose the No backups link of your SYSTEMDB.

d) On the Backup Catalog screen, choose the Create Backup button.

e) Specify the backup settings using the data from the above table.
Notice that SAP HANA Cockpit shows you an estimate of the size of the backup in the top-
left corner of the screen.

f) Choose the Back Up button.


The backup starts. The backup progress is shown for the name server.
Review the backup details shown.

g) Choose the Back button to return to the Backup Catalog screen.


A successful Complete Data Backup is listed in the Backup Catalog for your SYSTEMDB.

h) Choose the Back button to return to the Database Management screen.

4. All Participants: Use SAP HANA cockpit to perform a complete data backup of the <SID>
tenant database.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47


Backup Type: Complete Complete
Destination Type: File File
Retained NO NO
Include Configuration Files NO NO
Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

a) On the Database Management screen, choose the No backups link of your <SID> tenant
database.

b) On the Backup Catalog screen, choose the Create Backup button.

© Copyright. All rights reserved. 130


Solution 25: Performing Data Backups

c) Specify the backup settings using the data from the above table.
Notice that SAP HANA shows you an estimate of the size of the backup in the top-left
corner of the screen.

d) Choose the Back Up button.


The backup starts. The backup progress is shown for all the indexserver and xsengine.
Review the backup details shown.

e) Choose the Back button to return to the Backup Catalog screen.


A successful Complete Data Backup is listed in the Backup Catalog for your <SID> tenant
database.

f) Return to the Home screen by choosing the Backup Catalog navigation menu, and from
the dropdown list, select the Home option.

Task 2: Perform a Differential Backup of the <SID> Tenant

Business Example
You want to manually perform a differential backup of the <SID> tenant database to test if the
backup settings are correct.

1. Use SAP HANA cockpit to perform a differential data backup of the <SID> tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02


<SID> H46 H47
Backup Type: Differential Differential
Destination Type: File File
Retained NO NO
Include Configuration Files NO NO
Compress Backup: NO NO
Backup Prefix: Keep the default settings Keep the default settings
Backup Destination: Keep the default settings Keep the default settings

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Database Management link.

c) On the Database Management screen, choose the Successful link of the <SID> tenant
database.

d) On the Backup Catalog screen, choose the Create Backup button.

e) Specify the backup settings using the data from the above table.

© Copyright. All rights reserved. 131


Unit 9: Performing Backup and Recovery

f) Choose the Back Up button.


The differential backup finishes very quickly because there are almost no changes since
the last complete backup.
Review the backup details shown.

g) Choose the Back button to return to the Backup Catalog screen.


A successful Differential Data Backup is listed in the Backup Catalog for the <SID> tenant
database.

h) Return to the Home screen by choosing the Backup Catalog navigation menu, and from
the dropdown list, select the Home option.

© Copyright. All rights reserved. 132


Unit 9
Exercise 26

Schedule Data Backups

Business Example
Use the central backup scheduler to plan a daily complete data backup for the SYSTEMDB, and
for your tenant <SID>, schedule a weekly complete data backup on Sunday and an incremental
data backup for the rest of the weekdays.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. Use the central backup scheduler to plan a daily complete backup for the SYSTEMDB.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

4. Use the central backup scheduler to plan a weekly complete data backup on Sunday for your
<SID> tenant.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

5. Use the central backup scheduler to plan a daily an incremental data backup for every day of
the week. Make sure to exclude Sunday for your <SID> tenant.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

© Copyright. All rights reserved. 133


Unit 9
Solution 26

Schedule Data Backups

Business Example
Use the central backup scheduler to plan a daily complete data backup for the SYSTEMDB, and
for your tenant <SID>, schedule a weekly complete data backup on Sunday and an incremental
data backup for the rest of the weekdays.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. Use the central backup scheduler to plan a daily complete backup for the SYSTEMDB.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Database Management link.

c) On the Database Management screen, select the °°° (more) button, and choose the
Backup Schedules item.

© Copyright. All rights reserved. 134


Solution 26: Schedule Data Backups

d) On the Backup Schedules screen, select the + (Create Schedule) button to start the Create
Backup Schedule wizard.

e) On the (1) Scheduler Type screen, choose Schedule a Series of Backups, and choose the
Step 2 button to continue.

f) On the (2) Database screen, choose SYSTEMDB, and choose the Step 3 button to
continue.

g) On the (3) Schedule Name screen, in the Schedule Name input field, enter
SYSTEMDB_Complete_Daily, and choose the Step 4 button to continue.

h) On the (4) Backup Settings screen, keep the default settings, and choose the Step 5
button to continue.

i) On the (5) Recurrence Pattern screen, keep the default settings, and choose the Step 6
button to continue.

j) On the (6) Recurrence Details - Weekly screen, set the Time Zone to your local time zone.

k) On the (6) Recurrence Details - Weekly screen, set the Create Backups On to the time
10:00:00 PM.

l) On the (6) Recurrence Details - Weekly screen, mark every day of the week for the Create
Backups At checkboxes.

m) Choose the Review button to continue.

n) Review your input and choose Save Schedule to save and activate the backup schedule.

4. Use the central backup scheduler to plan a weekly complete data backup on Sunday for your
<SID> tenant.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

a) On the Backup Schedules screen, select the + (Create Schedule) button to start the Create
Backup Schedule wizard.

b) On the (1) Scheduler Type screen, choose Schedule a Series of Backups, and choose the
Step 2 button to continue.

c) On the (2) Database screen, choose <SID>, and choose the Step 3 button to continue.

d) On the (3) Schedule Name screen, in the Schedule Name input field, enter
<SID>_Complete_Weekly, and choose the Step 4 button to continue.

e) On the (4) Backup Settings screen, keep the default settings, and choose the Step 5
button to continue.

f) On the (5) Recurrence Pattern screen, keep the default settings, and choose the Step 6
button to continue.

g) On the (6) Recurrence Details - Weekly screen, set the Time Zone to your local time zone.

© Copyright. All rights reserved. 135


Unit 9: Performing Backup and Recovery

h) On the (6) Recurrence Details - Weekly screen, set the Create Backups On to the time
11:00:00 PM.

i) On the (6) Recurrence Details - Weekly screen, only mark the Sunday checkbox for the
Create Backups At checkboxes.

j) Choose the Review button to continue.

k) Review your input and choose Save Schedule to save and activate the backup schedule.

5. Use the central backup scheduler to plan a daily an incremental data backup for every day of
the week. Make sure to exclude Sunday for your <SID> tenant.
Field Participant 1 Value Participant 2 Value

<SID> H46 H47

a) On the Backup Schedules screen, select the + (Create Schedule) button to start the Create
Backup Schedule wizard.

b) On the (1) Scheduler Type screen, choose Schedule a Series of Backups, and choose the
Step 2 button to continue.

c) On the (2) Database screen, choose <SID>, and choose the Step 3 button to continue.

d) On the (3) Schedule Name screen, in the Schedule Name input field, enter
<SID>_Inc_Daily, and choose the Step 4 button to continue.

e) On the (4) Backup Settings screen, choose Incremental, for all other settings, keep the
default settings, and choose the Step 5 button to continue.

f) On the (5) Recurrence Pattern screen, keep the default settings and choose the Step 6
button to continue.

g) On the (6) Recurrence Details - Weekly screen, set the Time Zone to your local time zone.

h) On the (6) Recurrence Details - Weekly screen, set the Create Backups On to the time
11:00:00 PM.

i) On the (6) Recurrence Details - Weekly screen, mark all days of the week except the
Sunday checkbox for the Create Backups At checkboxes.

j) Choose the Review button to continue.

k) Review your input and choose Save Schedule to save and activate the backup schedule.
Result
You have now created a backup schedule for the SYSTEMDB and the tenant <SID>.

© Copyright. All rights reserved. 136


Unit 9
Exercise 27

Check the Parameter Settings for the Log


Backup

Check the parameter settings that control the log backup behavior (log_mode and
enable_auto_log_backup).

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Check the SAP HANA log backup parameters.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

<SID> H46 H47

4. All Participants: Check the log backups in the file system.


Field Participant 1 Value Participant 2 Value
<SID> H46 H47

© Copyright. All rights reserved. 137


Unit 9
Solution 27

Check the Parameter Settings for the Log


Backup

Check the parameter settings that control the log backup behavior (log_mode and
enable_auto_log_backup).

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced, and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Check the SAP HANA log backup parameters.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

<SID> H46 H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your System Database.

© Copyright. All rights reserved. 138


Solution 27: Check the Parameter Settings for the Log Backup

c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.

d) Search for the parameter log_mode


The log_mode parameter is located in the persistence section of theglobal.ini
configuration file. The correct parameter setting for the execution of log backups is as
follows:
log_mode = normal

e) Search for the parameter: enable_auto_log_backup


The enable_auto_log_backup parameter is also located in the persistence section of
the global.ini configuration file. The correct parameter setting for the execution of log
backups is as follows:
enable_auto_log_backup = yes

f) Return to the Home screen by choosing the Database Configuration navigation menu, and
from the dropdown list, select the Home option.

4. All Participants: Check the log backups in the file system.


Field Participant 1 Value Participant 2 Value
<SID> H46 H47

a) If you have closed the PuTTY ssh session to your Linux server, open it as described in step
3 of the Explore the HA200 Training Landscape exercise.

b) Navigate to the following log backup directory:


cd /usr/sap/<SID>/HDB00/backup/log

c) Check the log backups for the system database in the file system using the following
command:
ll SYSTEMDB

d) Check the log backups for the tenant database in the file system using the following
command:
ll DB_<SID>

© Copyright. All rights reserved. 139


Unit 9
Exercise 28

Recover a Tenant Database

Business Example
After a disk failure, you have to recover your tenant database.

Caution:
In the unusual event, during this exercise, it may happen that the Database Explorer
or the SAP HANA cockpit Database Management app for your SYSTEMDB is not
displayed correctly in Task 2 Step 3 or Task 3 Step 1.
To prevent the unexpected, we recommend that you prepare either an SQL Console
or an HDBSQL connection to your system database BEFORE STARTING this
"Recover a Tenant Database" exercise.
If required, at the above described steps, reconnect the SQL Console or the HDBSQL
to your SYSTEMDB and execute the following statement:
ALTER SYSTEM STOP DATABASE <tenant database> immediate;

Replace the placeholder <tenant database> with your H46 respectively H47 initial
database name.
This manually stops the tenant database and frees up the potentially "hanging"
services for further progress.
Please note: Manual stopping also means that when you start the Recover Tenant
application, the system does not issue a message to stop the database. Instead, it
can start the recovery wizard directly.

Task 1: Simulate a File System Crash of Your SAP HANA Tenant Database
Simulate an SAP HANA system crash with a lost datavolume of your tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: If you have closed the PuTTY ssh session to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

3. All Participants: Simulate a file system crash by deleting one of the data volumes from the
hdb00003 subdirectories.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47

© Copyright. All rights reserved. 140


Exercise 28: Recover a Tenant Database

4. All Participants: Simulate a crash of your SAP HANA database system.


Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

Task 2: Analyze the Status of the SAP HANA Database System

1. All Participants: Restart your SAP HANA database system.


Field Participant 1 Value Participant 2 Value
<SID> H46 H47

2. All Participants: Use your ssh session to check the log files of the indexserver.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47
<hostsname> wdflbmt7346 wdflbmt7347

Task 3: Recover the Tenant Database


Recover the tenant database to its most recent state. As a prerequisite for recovery, stop the
database.

1. All Participants: Recover the tenant database to its most recent state. When the recovery is
complete, the tenant database goes online.
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02

<SID> H46 H47

Tenant Database H46 H47

System Database SYSTEMDB@H46 SYSTEMDB@H47

<hostname> wdflbmt7346 wdflbmt7347

© Copyright. All rights reserved. 141


Unit 9
Solution 28

Recover a Tenant Database

Business Example
After a disk failure, you have to recover your tenant database.

Caution:
In the unusual event, during this exercise, it may happen that the Database Explorer
or the SAP HANA cockpit Database Management app for your SYSTEMDB is not
displayed correctly in Task 2 Step 3 or Task 3 Step 1.
To prevent the unexpected, we recommend that you prepare either an SQL Console
or an HDBSQL connection to your system database BEFORE STARTING this
"Recover a Tenant Database" exercise.
If required, at the above described steps, reconnect the SQL Console or the HDBSQL
to your SYSTEMDB and execute the following statement:
ALTER SYSTEM STOP DATABASE <tenant database> immediate;

Replace the placeholder <tenant database> with your H46 respectively H47 initial
database name.
This manually stops the tenant database and frees up the potentially "hanging"
services for further progress.
Please note: Manual stopping also means that when you start the Recover Tenant
application, the system does not issue a message to stop the database. Instead, it
can start the recovery wizard directly.

Task 1: Simulate a File System Crash of Your SAP HANA Tenant Database
Simulate an SAP HANA system crash with a lost datavolume of your tenant database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: If you have closed the PuTTY ssh session to your Linux server, open it as
described in step 3 of the Explore the HA200 Training Landscape exercise.

3. All Participants: Simulate a file system crash by deleting one of the data volumes from the
hdb00003 subdirectories.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47

© Copyright. All rights reserved. 142


Solution 28: Recover a Tenant Database

a) In your PuTTY SSH session, to navigate to the directory that contains the data volumes in
the file system, execute the following command:
cd /hana/data/<SID>/mnt00001

b) To display the content of the directory, enter the following command:


ls –lh

The data volumes of your tenant database are located in the hdb0000#.00003
subdirectories.

c) To delete the subdirectory hdb00003.00003, enter the following command:


rm –rf hdb00003.00003

4. All Participants: Simulate a crash of your SAP HANA database system.


Field Participant 1 Value Participant 2 Value

<sid>adm h46adm h47adm

a) To switch to your SAP HANA operating system user in your PuTTY session, execute the
following command:
su - <sid>adm

b) As user <sid>adm, kill the process of your SAP HANA Instance using the following
command:
HDB kill

Task 2: Analyze the Status of the SAP HANA Database System

1. All Participants: Restart your SAP HANA database system.


Field Participant 1 Value Participant 2 Value
<SID> H46 H47

a) In your PuTTY session, still as user <sid>adm, start your SAP HANA Instance using the
command:
HDB start

b) Observe the output in the PuTTY session.


Depending on the services data volume that you manually deleted, one of the following
messages displays:

● Index server: FAIL: process hdbindexserver HDB Indexserver-<SID> not


running.

● XS Engine: FAIL: process hdbxsengine HDB Xsengine-<SID> not running.

2. All Participants: Use your ssh session to check the log files of the indexserver.
Field Participant 1 Value Participant 2 Value
<SID> H46 H47

© Copyright. All rights reserved. 143


Unit 9: Performing Backup and Recovery

Field Participant 1 Value Participant 2 Value


<hostsname> wdflbmt7346 wdflbmt7347

a) In your PuTTY SSH session, to navigate to the trace directory of the tenant H46 by
executing the following commands:
cdtrace
cd DB_<SID>

b) Depending on the error message you received in Task 3 Step 1 review the indesserver or
xsegine alert file.
When you received the error message: FAIL: process hdbindexserver HDB
Indexserver-<SID> not running execute the command:
less indexserver_alert_<hostname>.trc

When you received the error message: FAIL: process hdbxsengine HDB Xsengine-
<SID> not running execute the command:
less xsengine_alert_<hostname>.trc

c) In the indexserver or xsegine alert file, search for try to open existing
persistence data volume. Use the / key to open the search, next enter open
existing persistence.
Result
You should find several messages like the example below. This message notifies you that
there is a file and/or subdirectory missing
try to open existing persistence data volume, but filesystem path does
not exists: /hana/data/<SID>/mnt00001/hdb00003.0000x/; $sysrc$=2; $sysmsg
$=No such file or directory

d) Press the q key to return to the command line.

Task 3: Recover the Tenant Database


Recover the tenant database to its most recent state. As a prerequisite for recovery, stop the
database.

1. All Participants: Recover the tenant database to its most recent state. When the recovery is
complete, the tenant database goes online.
Field Participant 1 Value Participant 2 Value
<your group> Group01 Group02

<SID> H46 H47

Tenant Database H46 H47

System Database SYSTEMDB@H46 SYSTEMDB@H47

<hostname> wdflbmt7346 wdflbmt7347

© Copyright. All rights reserved. 144


Solution 28: Recover a Tenant Database

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your System Database.

c) On the Database Overview screen, choose the Database Management button.

d) On the Database Management screen, mark your Tenant Database using the radio button
to the left.

e) Choose the Tenant Actions → Recover Tenant dropdown option.

f) A warning dialog box indicates that the tenant database must be stopped for recovery.
Choose Stop Tenant.
After the tenant database is stopped, the Recover Database application starts.

g) In the Database Recovery Type window, choose Data and log backups. Proceed to Step 2.

h) In the Recovery Target window, choose Recover to the most recent state. Proceed to Step
3.

i) In the Location of Latest Backup Catalog window, choose Default file system location.
Proceed with Step 4.
The backup catalog is located in the directory /usr/sap/<SID>/HDB00/backup/log/
DB_<SID>.

j) In the Backup to be Used window, select the most recent Complete Data Backup entry.
Proceed to Step 5.

k) In the Delta Backups window, leave Yes as the recommended default option. Proceed to
Step 6.

l) In the Backup Locations window, do not specify a location to use the location stored in the
backup catalog. Proceed to step 7.

m) In the Check Availability of Backups window, leave Yes as the recommended default
option. Proceed to Step 8.

n) In the Initialize Log Area window, leave No as the recommended default option.

o) Choose the Review button.

p) In the Summary window, check the recovery input parameters that you provided, and
choose the Start Recovery button.
The recovery starts and the recovery progress for each SAP HANA service is displayed.
When the recovery is complete, the SAP HANA tenant database starts automatically.

q) Choose the Back button to return to the Database Management screen.

r) Ensure that your tenant database is online and shows the status Running.

s) Return to the Home screen by choosing the Database Management navigation menu, and
from the dropdown list, select the Home option.

© Copyright. All rights reserved. 145


Unit 9
Exercise 29

Create a Fallback Snapshot

Business Example
On your SAP S/4HANA system, you are applying an add-on/patch via transaction SAINT. In case
of problems, you want to reset your system back to a previous state. Therefore, you can create a
fallback snapshot for a tenant database before applying the add-on/patch.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Create a fallback snapshot for your tenant database.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

Tenant Database H46@H46 H47@H47

4. All Participants: Simulate an SQL problem in your application by dropping the HA200_DEMO
schema.

5. All Participants: Revert your tenant database to the state of your fallback snapshot.
Field Participant 1 Value Participant 2 Value

System Database SYSTEMDB@H46 SYSTEMDB@H47

Tenant Database H46@H46 H47@H47

6. All Participants: Check if the reset to the fallback snapshot solved your problem.

7. All Participants: Delete the fallback snapshot of your tenant database.


Field Participant 1 Value Participant 2 Value

System Database SYSTEMDB@H46 SYSTEMDB@H47

© Copyright. All rights reserved. 146


Exercise 29: Create a Fallback Snapshot

Field Participant 1 Value Participant 2 Value

Tenant Database H46@H46 H47@H47

© Copyright. All rights reserved. 147


Unit 9
Solution 29

Create a Fallback Snapshot

Business Example
On your SAP S/4HANA system, you are applying an add-on/patch via transaction SAINT. In case
of problems, you want to reset your system back to a previous state. Therefore, you can create a
fallback snapshot for a tenant database before applying the add-on/patch.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Create a fallback snapshot for your tenant database.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

System Database SYSTEMDB@H46 SYSTEMDB@H47

Tenant Database H46@H46 H47@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your Database Management.

© Copyright. All rights reserved. 148


Solution 29: Create a Fallback Snapshot

c) On the Database Management screen, mark your Tenant Database using the radio button
to the left.

d) Choose the Fallback Snapshot → Create Fallback Snapshot dropdown option.


The time stamp of the fallback snapshot is shown in the Fallback Snapshot column.

e) Return to the Database Directory screen by choosing the Database Management


navigation menu, and from the dropdown list, select the Database Directory option.

4. All Participants: Simulate an SQL problem in your application by dropping the HA200_DEMO
schema.
a) On the Database Directory screen, choose the SQL Console link for your Tenant Database
at the end of the row.

b) On the SQL Console tab, enter the following command to delete the schema HA200_DEMO:
drop schema HA200_DEMO cascade;

c) Choose the Run (F8) button.

d) To check if you are able to select from the table "HA200_DEMO"."EPM.PO.Item_Part",


enter the following statement:
select * from "HA200_DEMO"."EPM.PO.Item_Part";

e) Choose the Run (F8) button.


An error message indicates that the select statement could not be executed due to an
invalid schema name: HA200_DEMO.

f) Choose the OK button to confirm and close the message.

g) Leave the Database Explorer and SQL Console open for a later step in this exercise.

h) Go back to your SAP HANA cockpit Database Directory window and proceed to the next
exercise step.

5. All Participants: Revert your tenant database to the state of your fallback snapshot.
Field Participant 1 Value Participant 2 Value

System Database SYSTEMDB@H46 SYSTEMDB@H47

Tenant Database H46@H46 H47@H47

a) On the Database Directory screen, choose your Database Management.

b) On the Database Management screen, mark your Tenant Database using the radio button
to the left.

c) Choose the Fallback Snapshot → Reset Tenant to Fallback Snapshot dropdown option.

d) In the Reset Tenant to Fallback Snapshot dialog-box, choose the Stop & Reset button.
The system stops your tenant database, resets the tenant to the fallback snapshot, and
starts the tenant database.

© Copyright. All rights reserved. 149


Unit 9: Performing Backup and Recovery

e) Leave the SAP HANA cockpit Database Management window open for a later step in this
exercise.

6. All Participants: Check if the reset to the fallback snapshot solved your problem.
a) Return to the SAP HANA Database Explorer and SQL Console window that you left open in
a previous step.

b) In the SQL Console screen (connected to your tenant database), to check if you are able to
query the table "HA200_DEMO"."EPM.PO.Item_Part", enter the following statement:
select * from "HA200_DEMO"."EPM.PO.Item_Part";

c) Choose the Run (F8) button.


Now, you can read data from the table.

d) Close the Database Explorer tab and return to the SAP HANA cockpit Database
Management window.

7. All Participants: Delete the fallback snapshot of your tenant database.


Field Participant 1 Value Participant 2 Value

System Database SYSTEMDB@H46 SYSTEMDB@H47

Tenant Database H46@H46 H47@H47

a) On the Database Management screen, mark your Tenant Database using the radio button
to the left.

b) Choose the Fallback Snapshot → Delete Fallback Snapshot dropdown option.

c) In the Delete Fallback Snapshot dialog box, choose the Yes button.

d) Return to the Home screen by choosing the Database Management navigation menu, and
from the dropdown list, select the Home option.

© Copyright. All rights reserved. 150


Unit 10
Exercise 30

Back Up the Encryption Root Keys

Business Example
You need to back up the encryption root keys of an SAP HANA tenant database.

Back Up the Encryption Root Keys

Business Example
You need to back up data volume and log volume encryption root keys of an SAP HANA database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

3. Back up the encryption root keys of the SAP HANA tenant database.

© Copyright. All rights reserved. 151


Unit 10
Solution 30

Back Up the Encryption Root Keys

Business Example
You need to back up the encryption root keys of an SAP HANA tenant database.

Back Up the Encryption Root Keys

Business Example
You need to back up data volume and log volume encryption root keys of an SAP HANA database.

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. Back up the encryption root keys of the SAP HANA tenant database.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

© Copyright. All rights reserved. 152


Solution 30: Back Up the Encryption Root Keys

c) On the Database Overview screen, enter Data Encryption into the Search field, and
select the corresponding tile.

d) On the Data Encryption screen, in the Data at Rest Encryption section, choose the Manage
Keys link.

e) On the Manage Keys screen, choose the Set Root Key Backup Password button.

f) In the Set Root Key Backup Password dialog box, enter Welcome1 into the Password and
the Password Confirmation fields.

g) Choose the OK button.

h) On the Manage Keys screen, in the Data at Rest Encryption section, choose the Back Up
Root Keys button.
The root key backup file is downloaded to your local computer.

i) Return to the SAP HANA cockpit Home screen by choosing the Manage Keys navigation
menu, and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 153


Unit 10
Exercise 31

Enable Audit Policy

Business Example
Enable audit logging and create an audit policy that records read access on the schema
"HA200_DEMO".
Perform a SELECT on the table "HA200_DEMO"."EPM.PO.Item_Part" and check the resulting
entry in the audit trail.

Task 1: Define Audit Policies and Enable Auditing

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Perform the Basic Setup for auditing.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Overall Audit Trail Target: Database table Database table


Delete audit entries older 180 180
than:

4. All Participants: Create and enable an audit policy that records read access to the table
"HA200_DEMO"."EPM.PO.Item_Part".

Screen Input Field Participant 1 Value Participant 2 Value


Name Audit Policy: TABLE ACCESS TABLE ACCESS

Audited Actions and Audited Action Status All All


Action Status
Audited Actions Data Query and Ma- Data Query and Ma-
nipulation → SELECT nipulation → SELECT

© Copyright. All rights reserved. 154


Exercise 31: Enable Audit Policy

Screen Input Field Participant 1 Value Participant 2 Value


Audited Objects Object Name HA200_DEMO → HA200_DEMO →
EPM.PO.Item_Part EPM.PO.Item_Part
Audited Users Select the users to be All users All users
audited
Audit Trail Audit Level Warning Warning

Audit Trail Target Policy-specific tar- Policy-specific tar-


gets → Database ta- gets → Database ta-
ble ble
Retention Period Delete audit entries ON ON
automatically
Delete audit entries 90 days 90 days
older than
Policy Status Policy Status Enable Enable

Task 2: Analyze the Audit Log


Test your audit policy TABLE ACCESS and check the results in the audit trail.

1. All Participants: Execute a SELECT statement on the table


"HA200_DEMO"."EPM.PO.Item_Part".

Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

2. All Participants: Check the resulting entry in the audit trail.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

© Copyright. All rights reserved. 155


Unit 10
Solution 31

Enable Audit Policy

Business Example
Enable audit logging and create an audit policy that records read access on the schema
"HA200_DEMO".
Perform a SELECT on the table "HA200_DEMO"."EPM.PO.Item_Part" and check the resulting
entry in the audit trail.

Task 1: Define Audit Policies and Enable Auditing

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Perform the Basic Setup for auditing.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Overall Audit Trail Target: Database table Database table

© Copyright. All rights reserved. 156


Solution 31: Enable Audit Policy

Field Participant 1 Value Participant 2 Value

Delete audit entries older 180 180


than:

a) From the SAP HANA Cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

c) On the Database Overview screen, enter Auditing into the Search field, and validate that
the Status in the Auditing card is set to Off.

d) Choose the Auditing card to configure auditing .

e) On the Auditing screen, choose the Auditing Basic Setup link.

f) In the Auditing Basic Setup dialog box, choose the Complete Setup button.

g) In the Auditing Status window, switch the OFF button to ON to enable auditing. Proceed to
Step 2.

h) In the Auditing Trail Targets window, keep the default settings (see the above table), and
proceed to Step 3.

i) In the Auditing Policies window, keep the set of preselected and recommended audit
policies, and choose the Review button.

j) In the Summary of Auditing Policy Settings window, choose the Save button.
The Auditing window displays 13 preconfigured and enabled policies for your tenant
database.

k) Leave the Auditing window open as you will need it in the next exercise step.

4. All Participants: Create and enable an audit policy that records read access to the table
"HA200_DEMO"."EPM.PO.Item_Part".

Screen Input Field Participant 1 Value Participant 2 Value


Name Audit Policy: TABLE ACCESS TABLE ACCESS

Audited Actions and Audited Action Status All All


Action Status
Audited Actions Data Query and Ma- Data Query and Ma-
nipulation → SELECT nipulation → SELECT
Audited Objects Object Name HA200_DEMO → HA200_DEMO →
EPM.PO.Item_Part EPM.PO.Item_Part
Audited Users Select the users to be All users All users
audited
Audit Trail Audit Level Warning Warning

© Copyright. All rights reserved. 157


Unit 10: Describing SAP HANA Security Features

Screen Input Field Participant 1 Value Participant 2 Value


Audit Trail Target Policy-specific tar- Policy-specific tar-
gets → Database ta- gets → Database ta-
ble ble

Retention Period Delete audit entries ON ON


automatically
Delete audit entries 90 days 90 days
older than
Policy Status Policy Status Enable Enable

a) On the Auditing screen, having the Audit Policies tab selected, choose the Create Audit
Policy button.

b) In the 1. Name step, use the data from the above table for the input field Audit Policy.

c) To continue, choose the Step 2 button.

d) In the 2. Audited Actions and Action Status step, use the data from the above table for the
input fields Audited Action Status and Audited Actions.
To find the action you are looking for more easily, you can also enter SELECT in the Search
field.

e) To continue, choose the Step 3 button.

f) In the 3. Audited Objects step, use the data from the above table for the check-box Object
Name.
To find the object you are looking for more easily, you can also enter HA200_DEMO in the
Search field.

g) To continue, choose the Step 4 button.

h) In the 4. Audited Users step, keep the default setting All Users selected for the users to
be audited by the policy.

i) To continue, choose the Step 5 button.

j) In the 5. Audit Trail step, use the data from the above table for the input fields Audit Level
and Audit Trail Target.

k) To continue, choose the Step 6 button.

l) In the 6. Retention Period step, switch the OFF button to ON to enable automatic deletion of
audit entries, and set the input field Delete audit entries older than to 90 days.

m) To continue, choose the Step 7 button.

n) In the 7. Policy Status step, keep the default setting Enable selected.

o) To continue, choose the Review button.

© Copyright. All rights reserved. 158


Solution 31: Enable Audit Policy

p) On the Create Audit Policy screen, verify your entries.

q) Choose the Save button to enable your audit policy.

r) On the Auditing screen, check and confirm that your audit policy is listed.

s) Return to the Database Overview screen by choosing the Auditing navigation menu, and
from the dropdown list, select the Database Overview option.

t) On the Database Overview screen, search for the Auditing card.


The auditing status is On and 14 audit policies are enabled.

u) Return to the SAP HANA cockpit Home screen by choosing the Database Overview
navigation menu, and from the dropdown list, select the Home option.

Task 2: Analyze the Audit Log


Test your audit policy TABLE ACCESS and check the results in the audit trail.

1. All Participants: Execute a SELECT statement on the table


"HA200_DEMO"."EPM.PO.Item_Part".

Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

c) On the Database Overview screen, choose the Open SQL Console button.

d) In the Database Explorer SQL Console tab, which is connected to your <SID>@<SID>
tenant database, enter the following command:
select * from "HA200_DEMO"."EPM.PO.Item_Part"

e) Choose the Run (F8) button.

f) Close the Database Explorer tab and return to the SAP HANA cockpit Database Overview
window of your <SID>@<SID> tenant database.

g) Choose the Home button to return to the Home screen.

2. All Participants: Check the resulting entry in the audit trail.


Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

© Copyright. All rights reserved. 159


Unit 10: Describing SAP HANA Security Features

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

c) On the Database Overview screen, enter Auditing into the Search field, and choose the
Auditing card to analyze the audit trail.

d) On the Auditing screen, choose the Audit Trail tab.

e) In the SAP HANA Logs list, look for the entry with the policy name TABLE ACCESS.

f) Return to the SAP HANA cockpit Home screen by choosing the Auditing navigation menu,
and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 160


Unit 11
Exercise 32

Create Admin Roles

Business Example
Before you can create user accounts for your database administrator colleagues, you need to
create several admin roles so that the different tasks can be performed by the authorized
colleagues.
Create a role that authorizes generic system administration tasks, then assign this role to an
administration user.
All steps of this exercise are performed using SAP HANA cockpit. Also the necessary roles are
created as catalog roles.
You need a role with authorizations for generic database system administration. This database
administrator performs the following tasks:
● All actions that any database administrator expects to do
● All backup-related tasks, such as creating a database backup, managing the backup catalog,
or deleting backups from disk

Create the role DB_SYSTEM_ADMIN_GENERIC, which consists of two additional roles:


● DB_BASIC_ADMIN
● DB_BACKUP_ADMIN

Figure 1: Administrative Roles

© Copyright. All rights reserved. 161


Unit 11: Performing User and Authorization Maintenance

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the "Explore the HA200
Training Landscape" exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

3. All Participants: Create a new role SELECT_SYS_STATISTICS, which will be embedded in the
role DB_BASIC_ADMIN.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Role SELECT_SYS_STATISTICS SELECT_SYS_STATISTICS

Comment Read only access to Read only access to


schema _SYS_STATISTICS schema _SYS_STATISTICS

To enable read-only access to the schema _SYS_STATISTICS, grant the following object
privilege to the SELECT_SYS_STATISTICS role:

Table 3: Object Privileges for SELECT_SYS_STATISTICS


Object Privilege What does it do?

SELECT on schema Read-only access to schema _SYS_STATISTICS.


_SYS_STATISTICS

4. All Participants: Create a new role DB_BASIC_ADMIN.


This role includes all administrative tasks that a database administrator is allowed to perform
that are not specific to data schemas or repository packages. Therefore, grant the following
sub-role and system privileges:

Table 4: Sub-roles for DB_BASIC_ADMIN


Role What does it do?

SELECT_SYS_STATISTICS Grants read-only access to schema _SYS_STATISTICS.

© Copyright. All rights reserved. 162


Exercise 32: Create Admin Roles

Table 5: System Privileges for DB_BASIC_ADMIN


System Privilege What does it do?

CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.

INIFILE ADMIN Authorizes making changes to system settings.

LICENSE ADMIN Authorizes the use of the SET SYSTEM LICENSE statement to install
a new license.

SERVICE ADMIN Authorizes the ALTER SYSTEM [START|CANCEL|RECONFIGURE]


statements for administering system services of the database.

SESSION ADMIN Authorizes the ALTER SYSTEM commands concerning sessions to


stop or disconnect a user session or to change session variables.

TRACE ADMIN Authorizes the use of the ALTER SYSTEM...TRACES statements for
operations on database trace files and authorizes changing trace sys-
tem settings.

VERSION ADMIN Authorizes the use of the ALTER SYSTEM RECLAIM VERSION SPACE
statement of the multi-version concurrency control (MVCC) feature.

Field Participant 1 Value Participant 2 Value


Role DB_BASIC_ADMIN DB_BASIC_ADMIN

Comment Actions that any data- Actions that any data-


base administrator is base administrator is
allowed to do allowed to do

5. All Participants - Optional: Create a new role DB_BACKUP_ADMIN.

Note:
Perform this step only if you want to approach a long form of this exercise.
Otherwise, continue with step 6. Create a new role
DB_SYSTEM_ADMIN_GENERIC.

This role allows all backup-related tasks, such as creating a database backup, or managing
the backup catalog, or deleting backups from disk. Therefore, grant the following system
privileges:

© Copyright. All rights reserved. 163


Unit 11: Performing User and Authorization Maintenance

Table 6: System Privileges for DB_BACKUP_ADMIN


System Privilege What does it do?

BACKUP ADMIN Authorizes BACKUP and RECOVERY statements for defining and ini-
tiating backup and recovery procedures. It also authorizes changing
system configuration options with respect to backup and recovery.

CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.

Field Participant 1 Value Participant 2 Value


Role DB_BACKUP_ADMIN DB_BACKUP_ADMIN

Comment Backup-related tasks Backup-related tasks

6. All Participants: Create a new role DB_SYSTEM_ADMIN_GENERIC.


This role authorizes for generic database system administration. Therefore, grant the
following roles:

Table 7: Sub-roles for DB_SYSTEM_ADMIN_GENERIC


Role What does it do?

DB_BASIC_ADMIN Actions that any database administrator is allowed to do.

DB_BACKUP_ADMIN Backup-related tasks.

Field Participant 1 Value Participant 2 Value


Role DB_SYSTEM_ADMIN_GENER- DB_SYSTEM_ADMIN_GENER-
IC IC

Comment Generic database sys- Generic database sys-


tem administration tem administration

© Copyright. All rights reserved. 164


Unit 11
Solution 32

Create Admin Roles

Business Example
Before you can create user accounts for your database administrator colleagues, you need to
create several admin roles so that the different tasks can be performed by the authorized
colleagues.
Create a role that authorizes generic system administration tasks, then assign this role to an
administration user.
All steps of this exercise are performed using SAP HANA cockpit. Also the necessary roles are
created as catalog roles.
You need a role with authorizations for generic database system administration. This database
administrator performs the following tasks:
● All actions that any database administrator expects to do
● All backup-related tasks, such as creating a database backup, managing the backup catalog,
or deleting backups from disk

Create the role DB_SYSTEM_ADMIN_GENERIC, which consists of two additional roles:


● DB_BASIC_ADMIN
● DB_BACKUP_ADMIN

Figure 1: Administrative Roles

© Copyright. All rights reserved. 165


Unit 11: Performing User and Authorization Maintenance

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the "Explore the HA200
Training Landscape" exercise.

2. All Participants: Use Google Chrome to log on to the SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value

HANA Username ADMIN01 ADMIN02

HANA Password Welcome1 Welcome1

a) If you are still connected to your SAP HANA Cockpit Administrator application, continue
with Step 3.

b) Start Google Chrome and open the following URL to connect to the SAP HANA Cockpit
Administrator application:
https://wdflbmt7350.wdf.sap.corp:51026

c) If the Your connection is not private screen occurs, choose Advanced and in the
subsequent screen, choose Proceed to wdflbmt7350.wdf.sap.corp (unsafe) to continue.

d) In the SAP HANA XS Advanced window, enter your HANA username and HANA password
credentials from the above table, and choose the Log On button.

3. All Participants: Create a new role SELECT_SYS_STATISTICS, which will be embedded in the
role DB_BASIC_ADMIN.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Role SELECT_SYS_STATISTICS SELECT_SYS_STATISTICS

Comment Read only access to Read only access to


schema _SYS_STATISTICS schema _SYS_STATISTICS

To enable read-only access to the schema _SYS_STATISTICS, grant the following object
privilege to the SELECT_SYS_STATISTICS role:

Table 3: Object Privileges for SELECT_SYS_STATISTICS


Object Privilege What does it do?

SELECT on schema Read-only access to schema _SYS_STATISTICS.


_SYS_STATISTICS

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose your <SID>@<SID> tenant database.

© Copyright. All rights reserved. 166


Solution 32: Create Admin Roles

c) On the Database Overview screen, enter Role Management into the Search field, and
choose the appropriate link in the User & Role Management card.

d) On the Role Management screen, choose the + (Create Role) button.

e) In the Create Role General Information area, use the data from the above table for the
input fields Role and Comment.
Do not change the remaining input fields.

f) Choose the Create button.

g) After the SELECT_SYS_STATISTICS role is created, change to the Object Privileges tab,
and choose the Edit button to the right of the Search field.

h) Choose the Add Object button.

i) In the Select Objects dialog box, enter _SYS_STATISTICS into the Object: Search field.
The search function automatically provides the matching objects.

j) In the object list, mark the _SYS_STATISTICS checkbox.

k) Choose the Select button.

l) In the Add Object with Privileges dialog box, mark the SELECT checkbox and choose the
OK button.

m) On the SELECT_SYS_STATISTICS screen, choose the Save button.


Leave the Role Management window open and proceed to the next step.

4. All Participants: Create a new role DB_BASIC_ADMIN.


This role includes all administrative tasks that a database administrator is allowed to perform
that are not specific to data schemas or repository packages. Therefore, grant the following
sub-role and system privileges:

Table 4: Sub-roles for DB_BASIC_ADMIN


Role What does it do?

SELECT_SYS_STATISTICS Grants read-only access to schema _SYS_STATISTICS.

Table 5: System Privileges for DB_BASIC_ADMIN


System Privilege What does it do?

CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.

INIFILE ADMIN Authorizes making changes to system settings.

LICENSE ADMIN Authorizes the use of the SET SYSTEM LICENSE statement to install
a new license.

© Copyright. All rights reserved. 167


Unit 11: Performing User and Authorization Maintenance

System Privilege What does it do?

SERVICE ADMIN Authorizes the ALTER SYSTEM [START|CANCEL|RECONFIGURE]


statements for administering system services of the database.

SESSION ADMIN Authorizes the ALTER SYSTEM commands concerning sessions to


stop or disconnect a user session or to change session variables.

TRACE ADMIN Authorizes the use of the ALTER SYSTEM...TRACES statements for
operations on database trace files and authorizes changing trace sys-
tem settings.

VERSION ADMIN Authorizes the use of the ALTER SYSTEM RECLAIM VERSION SPACE
statement of the multi-version concurrency control (MVCC) feature.

Field Participant 1 Value Participant 2 Value


Role DB_BASIC_ADMIN DB_BASIC_ADMIN

Comment Actions that any data- Actions that any data-


base administrator is base administrator is
allowed to do allowed to do

a) On the Role Management screen, choose the + (Create Role) button.

b) In the Create Role General Information area, use the data from the above table for the
input fields Role and Comment.
Do not change the remaining input fields.

c) Choose the Create button.

d) After the DB_BASIC_ADMIN role is created, change to the Roles tab, and choose the Edit
button to the right of the Search field.

e) Choose the Add button to add a role.

f) In the Select Roles dialog box, enter SELECT_SYS_STATISTICS into the Role: Search field.
The search function automatically provides the matching roles.

g) In the roles list, mark the SELECT_SYS_STATISTICS checkbox.

h) Choose the Select button.

i) Choose the Save button.


The role SELECT_SYS_STATISTICS is now added as a sub-role to the role
DB_BASIC_ADMIN.

j) On the DB_BASIC_ADMIN screen, select the System Privileges tab, and choose the Edit
button to the right of the search field.

k) Choose the Add button to add some system privileges.

© Copyright. All rights reserved. 168


Solution 32: Create Admin Roles

l) In the Select System Privileges window, use the data from the System Privileges for
DB_BASIC_ADMIN table above to fill the DB_BASIC_ADMIN role with all required system
privileges.
(CATALOG READ, INIFILE ADMIN, LICENSE ADMIN, SERVICE ADMIN, SESSION ADMIN,
TRACE ADMIN, and VERSION ADMIN.)

m) Choose the Select button.

n) On the System Privileges tab, choose the Save button.


The role DB_BASIC_ADMIN has now been given 7 system privileges.
Leave the Role Management window open and proceed to the next step.

5. All Participants - Optional: Create a new role DB_BACKUP_ADMIN.

Note:
Perform this step only if you want to approach a long form of this exercise.
Otherwise, continue with step 6. Create a new role
DB_SYSTEM_ADMIN_GENERIC.

This role allows all backup-related tasks, such as creating a database backup, or managing
the backup catalog, or deleting backups from disk. Therefore, grant the following system
privileges:

Table 6: System Privileges for DB_BACKUP_ADMIN


System Privilege What does it do?

BACKUP ADMIN Authorizes BACKUP and RECOVERY statements for defining and ini-
tiating backup and recovery procedures. It also authorizes changing
system configuration options with respect to backup and recovery.

CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.

Field Participant 1 Value Participant 2 Value


Role DB_BACKUP_ADMIN DB_BACKUP_ADMIN

Comment Backup-related tasks Backup-related tasks

a) On the Role Management screen, choose the + (Create Role) button.

b) In the Create Role General Information area, use the data from the above table for the
input fields Role and Comment.
Do not change the remaining input fields.

c) Choose the Create button.

© Copyright. All rights reserved. 169


Unit 11: Performing User and Authorization Maintenance

d) After the DB_BACKUP_ADMIN role is created, change to the System Privileges tab, and
choose the Edit button to the right of the Search field.

e) Choose the Add button to add some system privileges.

f) In the Select System Privileges window, use the data from the System Privileges for
DB_BACKUP_ADMIN table above to fill the DB_BACKUP_ADMIN role with all required
system privileges.
(BACKUP ADMIN and CATALOG READ.)

g) Choose the Select button.

h) On the System Privileges tab, choose the Save button.


The role DB_BACKUP_ADMIN has now been given 2 system privileges.
Leave the Role Management window open and proceed to the next step.

6. All Participants: Create a new role DB_SYSTEM_ADMIN_GENERIC.


This role authorizes for generic database system administration. Therefore, grant the
following roles:

Table 7: Sub-roles for DB_SYSTEM_ADMIN_GENERIC


Role What does it do?

DB_BASIC_ADMIN Actions that any database administrator is allowed to do.

DB_BACKUP_ADMIN Backup-related tasks.

Field Participant 1 Value Participant 2 Value


Role DB_SYSTEM_ADMIN_GENER- DB_SYSTEM_ADMIN_GENER-
IC IC

Comment Generic database sys- Generic database sys-


tem administration tem administration

a) On the Role Management screen, choose the + (Create Role) button.

b) In the Create Role General Information area, use the data from the above table for the
input fields Role and Comment.
Do not change the remaining input fields.

c) Choose the Create button.

d) After the DB_SYSTEM_ADMIN_GENERIC role is created, change to the Roles tab, and
choose the Edit button to the right of the Search field.

e) Choose the Add button to add a role.

f) In the Select Roles dialog-box, mark the checkbox for the role DB_BASIC_ADMIN from the
roles list.

© Copyright. All rights reserved. 170


Solution 32: Create Admin Roles

g) Optional: If you have run the long approach form of this exercise, repeat the sub-step 6.f)
for the role DB_BACKUP_ADMIN.

h) Choose the Select button.

i) On the Roles tab, choose the Save button.

j) Return to the SAP HANA cockpit Database Overview screen by choosing the Role
Management navigation menu, and from the dropdown list, select the Database Overview
option.

© Copyright. All rights reserved. 171


Unit 11
Exercise 33

Create an Admin User and Assign the Generic


Database Administration Role

Business Example
You need a user with authorizations to perform generic database administration tasks.

1. All Participants: Create a user named ADMIN_USER.


Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47


User Name ADMIN_USER ADMIN_USER

Authentication Mechanism Password Password

Password Init1234 Init1234

Password Confirmation Init1234 Init1234

Role DB_SYSTEM_ADMIN_GENER- DB_SYSTEM_ADMIN_GENER-


IC IC

2. All Participants: Assign the DB_SYSTEM_ADMIN_GENERIC role to the user ADMIN_USER.

Optional: Check the Authorizations of ADMIN_USER


After you have successfully completed all user maintenance work, log on to your tenant database
with ADMIN_USER, and test its privileges.

1. All Participants: Enter the credentials of ADMIN_USER in the Database Directory app of SAP
HANA cockpit for your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Username ADMIN_USER ADMIN_USER

(Old) Password Init1234 Init1234

New Password Welcome1 Welcome1

Confirm New Password Welcome1 Welcome1

2. All Participants: Check if ADMIN_USER is authorized to access and manage the SAP HANA
services.

© Copyright. All rights reserved. 172


Exercise 33: Create an Admin User and Assign the Generic Database Administration Role

3. All Participants: Check if ADMIN_USER is authorized to perform a backup.

© Copyright. All rights reserved. 173


Unit 11
Solution 33

Create an Admin User and Assign the Generic


Database Administration Role

Business Example
You need a user with authorizations to perform generic database administration tasks.

1. All Participants: Create a user named ADMIN_USER.


Field Participant 1 Value Participant 2 Value

<SID>@<SID> H46@H46 H47@H47


User Name ADMIN_USER ADMIN_USER

Authentication Mechanism Password Password

Password Init1234 Init1234

Password Confirmation Init1234 Init1234

Role DB_SYSTEM_ADMIN_GENER- DB_SYSTEM_ADMIN_GENER-


IC IC

a) On the Database Overview screen of your <SID>@<SID> tenant database, enter User
Management into the Search field, and choose the appropriate link in the User & Role
Management card.

b) On the User Management screen, choose the + (Add) button, and from the popup
selection, choose the Create User option.

c) In the Create User General Information and Authentication areas, use the data from the
above table for the input fields User Name, Authentication Mechanism, Password, and
Password Confirmation.
Do not change the remaining input fields.

d) Choose the Save.


Leave the User Management window open and proceed to the next step.

2. All Participants: Assign the DB_SYSTEM_ADMIN_GENERIC role to the user ADMIN_USER.


a) On the ADMIN_USER General Information area, choose the Assign Roles button.
The Role Assignment for User ADMIN_USER is displayed on the right.

b) Choose the Edit button.

c) Choose the Add button.

© Copyright. All rights reserved. 174


Solution 33: Create an Admin User and Assign the Generic Database Administration Role

d) In the Select Roles dialog box, mark the checkbox for the role
DB_SYSTEM_ADMIN_GENERIC from the roles list.

e) Choose the Select button.

f) On the Role Assignment for User ADMIN_USER area, choose the Save button.

g) Return to the SAP HANA cockpit Home screen by choosing the User Management
navigation menu, and from the dropdown list, select the Home option.

Optional: Check the Authorizations of ADMIN_USER


After you have successfully completed all user maintenance work, log on to your tenant database
with ADMIN_USER, and test its privileges.

1. All Participants: Enter the credentials of ADMIN_USER in the Database Directory app of SAP
HANA cockpit for your tenant database.
Field Participant 1 Value Participant 2 Value

<your group> Group01 Group02

<SID>@<SID> H46@H46 H47@H47

Username ADMIN_USER ADMIN_USER

(Old) Password Init1234 Init1234

New Password Welcome1 Welcome1

Confirm New Password Welcome1 Welcome1

a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.

b) On the Database Directory screen, choose the Choose Authentication link in the
Credentials column for your <SID>@<SID> tenant database.

c) In the Credentials dialog box, choose the Log on with a different database user radio
button, and use the data from the above table for the input fields Username and Password.

d) Choose the OK button.

e) When prompted for a new password in the Change Password dialog box, use the data from
the above table for the input fields Enter Old Password, Enter New Password, and Confirm
New Password.

f) Choose the Change button.

2. All Participants: Check if ADMIN_USER is authorized to access and manage the SAP HANA
services.
a) On the Database Directory screen, choose your <SID>@<SID> tenant database.

b) On the Database Overview screen, choose the Services card to check the status of the
services.

c) Choose the Back button to return to the Database Overview screen.

© Copyright. All rights reserved. 175


Unit 11: Performing User and Authorization Maintenance

3. All Participants: Check if ADMIN_USER is authorized to perform a backup.


a) On the Database Overview screen, choose the Database Backups card.

Note:
You are only authorized to perform a backup if you have created and
assigned the role DB_BACKUP_ADMIN to ADMIN_USER. If you have
performed the short form of this exercise, you will not see the Database
Backups card.

b) On the Backup Catalog screen, choose the Create Backup button.

c) On the Create Backup screen, leave the default backup settings and choose the Backup Up
button.
After the backup is completed, the details for the backup are shown.

d) On the Backup Catalog screen, choose the Back button.


A successful Complete Data Backup is listed in the Backup Catalog screen.

e) Return to the SAP HANA cockpit Home screen by choosing the Backup Catalog navigation
menu, and from the dropdown list, select the Home option.

© Copyright. All rights reserved. 176


Unit 12
Exercise 34

Optional: Monitor SAP HANA with DBA Cockpit

Business Example
You already use the ABAP transaction DBACOCKPIT to monitor database management systems
other than SAP HANA. Now, you want to monitor SAP HANA using this tool.

Caution:
The additional H4H SAP HANA system and the according T4H SAP ABAP system are
installed on the SAP HANA Cockpit 2.0 central server.

Task 1: Monitor SAP HANA Using the DBA Cockpit

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Log on to the ABAP system T4H using the following credentials:
Field Participant 1 Value Paticipant 2 Value

User ADMIN01 ADMIN02

Password Welcome1 Welcome1

3. All Participants: Using DBA Cockpit, check the SAP HANA Services.

4. All Participants: Using DBA Cockpit, determine the configuration for the savepoint interval.

5. All Participants: Using the DBA Cockpit, determine the execution of the savepoints.
Review the content of the HOST_SAVEPOINTS table in the _SYS_STATISTICS schema.

6. All Participants: Using the DBA Cockpit, review the definition of the T000 table in the SAPT4H
schema using the following data:
Field Value

Schema SAPT4H

Table/View T*

Task 2: Check the Content of the hdbuserstore

1. All Participants: From your HA200 SAP Learning Cloud training system desktop, open an ssh
shell session to the wdflbmt7350 Linux host using the SSHConnectHA2xx.bat script.

© Copyright. All rights reserved. 177


Unit 12: Describing SAP ABAP Systems on SAP HANA

If you are already connected, proceed to the next step.

Participant Linux Server Root User Password


Participant 1 wdflbmt7350 haroot W3lcome123

Result
You are now automatically connected to the wdflbmt7350 Linux server using an SSH shell.

2. All Participants: List the entries of the hdbuserstore and examine the DEFAULT key.

Task 3: Configure the DBA Cockpit Connection for Your Standalone SAP HANA

1. All Participants: Create a new SYSTEM connection to the tenant database of your standalone
SAP HANA system for the following hostnames and SAP HANA systems:
Field Participant 1 Value

<Hostname> wdflbmt7346.wdf.sap.corp

<SID> H46

<database> H46

Connection Name <database>@<SID>_DBC

Database System SAP HANA database

Connection Maximum 100

Connection Optimum 100

Permanent Connection Deselect

User Name SYSTEM

Password Welcome1

Confirm Welcome1

Database Host wdflbmt7346

SQL Port 30015

Description My tenant database

Note that 30015 means 3+<instnr>+index server.

2. All Participants: Test the new DBA Cockpit connection to SAP HANA.

3. All Participants – Optional: Using DBA Cockpit, determine the configuration for the savepoint
interval.

4. All Participants – Optional: Using DBA Cockpit, review the definition of the
sap.hana.democontent.epm.data::MD.Products table in the HA200_DEMO schema using the
following data:

© Copyright. All rights reserved. 178


Exercise 34: Optional: Monitor SAP HANA with DBA Cockpit

Field Value

Schema HA200_DEMO

Table/View *

© Copyright. All rights reserved. 179


Unit 12
Solution 34

Optional: Monitor SAP HANA with DBA Cockpit

Business Example
You already use the ABAP transaction DBACOCKPIT to monitor database management systems
other than SAP HANA. Now, you want to monitor SAP HANA using this tool.

Caution:
The additional H4H SAP HANA system and the according T4H SAP ABAP system are
installed on the SAP HANA Cockpit 2.0 central server.

Task 1: Monitor SAP HANA Using the DBA Cockpit

1. All Participants: If you have closed the HA200 SAP Learning Cloud training system landscape
connection to the training landscape, open it as described in step 1 of the Explore the HA200
Training Landscape exercise.

2. All Participants: Log on to the ABAP system T4H using the following credentials:
Field Participant 1 Value Paticipant 2 Value

User ADMIN01 ADMIN02

Password Welcome1 Welcome1

a) On the Windows task bar click the Search icon, and search for SAP Logon and select the
SAP Logon from the search results.

b) In the SAP Logon 760 window, select the system entry T4H , and choose Log On.

c) Enter the credentials from the above table, and select the Enter key.

3. All Participants: Using DBA Cockpit, check the SAP HANA Services.
a) To open DBA Cockpit, call the transaction DBACOCKPIT.

b) On the Current Status → Overview screen, choose All services are started.

c) Check the status of each of the SAP HANA services.

4. All Participants: Using DBA Cockpit, determine the configuration for the savepoint interval.
a) In the navigation area of DBA Cockpit, choose Configuration → INI Files.

b) Navigate to INIFILE PARAMETER LIST → global.ini → persistence → savepoint_interval_s.


The parameter savepoint_interval_s is set to 300 seconds.

© Copyright. All rights reserved. 180


Solution 34: Optional: Monitor SAP HANA with DBA Cockpit

5. All Participants: Using the DBA Cockpit, determine the execution of the savepoints.
Review the content of the HOST_SAVEPOINTS table in the _SYS_STATISTICS schema.
a) In the navigation area of DBA Cockpit, choose System Information → Data Browser for
System Tables.

b) To navigate to the _SYS_STATISTICS schema, double-click Schema_SYS_STATISTICS.


The content of the _SYS_STATISTICS schema is displayed.

c) To display the content, double-click the HOST_SAVEPOINTS entry.


The table HOST_SAVEPOINTS shows the start and the duration of the savepoints that
were performed.

6. All Participants: Using the DBA Cockpit, review the definition of the T000 table in the SAPT4H
schema using the following data:
Field Value

Schema SAPT4H

Table/View T*

a) In the navigation area of DBA Cockpit, choose Diagnostics → Tables/Views.

b) Enter the data from the above table.

c) Leave the Tables radio button selected.

d) Choose the Execute button.

e) In the list, double-click the T000 table.

f) Choose the Columns tab.

g) Review the column names and definitions.

h) Choose the Send to SQL Editor button on the top of the screen.

i) On the Input Query tab, review the following SQL statement:


SELECT * FROM SAPT4H.T000

j) To execute the query, choose the Execute button.

k) Review the output in the Result tab.

l) In the DBACOCKPIT transaction, choose the Exit button to return to the SAP Easy Access
screen.

Task 2: Check the Content of the hdbuserstore

1. All Participants: From your HA200 SAP Learning Cloud training system desktop, open an ssh
shell session to the wdflbmt7350 Linux host using the SSHConnectHA2xx.bat script.
If you are already connected, proceed to the next step.

© Copyright. All rights reserved. 181


Unit 12: Describing SAP ABAP Systems on SAP HANA

Participant Linux Server Root User Password


Participant 1 wdflbmt7350 haroot W3lcome123

a) From your HA200 SAP Learning Cloud training system desktop, in the File Explorer, open
the folder N:\HA200.

b) In the N:\HA200 folder, double-click the folder Putty_RDP_Scripts.

c) In the Putty_RDP_Scripts window, double-click the SSHConnectHA2xx.bat file to execute


it.

d) In the HA200 – Open SSH sessions command prompt window, select the number 5 to
connect with the corresponding Linux server from the above table.

Result
You are now automatically connected to the wdflbmt7350 Linux server using an SSH shell.

2. All Participants: List the entries of the hdbuserstore and examine the DEFAULT key.
a) To switch to the SAP ABAP system OS user (<sid>adm), enter the following command: su
— t4hadm.

b) To display the content of the secure store, execute the following command:
hdbuserstore LIST.
The result shows the values defined for the key DEFAULT, as follows:
KEY DEFAULT
ENV : wdflbmt7350:31013
USER: SAPT4H
DATABASE: H4H

c) Enter exit to leave the t4hadm session.

d) Enter exit again to close the PuTTY session to wdflbmt7350.

Task 3: Configure the DBA Cockpit Connection for Your Standalone SAP HANA

1. All Participants: Create a new SYSTEM connection to the tenant database of your standalone
SAP HANA system for the following hostnames and SAP HANA systems:
Field Participant 1 Value

<Hostname> wdflbmt7346.wdf.sap.corp

<SID> H46

<database> H46

Connection Name <database>@<SID>_DBC

Database System SAP HANA database

Connection Maximum 100

Connection Optimum 100

© Copyright. All rights reserved. 182


Solution 34: Optional: Monitor SAP HANA with DBA Cockpit

Field Participant 1 Value

Permanent Connection Deselect

User Name SYSTEM

Password Welcome1

Confirm Welcome1

Database Host wdflbmt7346

SQL Port 30015

Description My tenant database

Note that 30015 means 3+<instnr>+index server.


a) To open the DBA Cockpit, call the transaction DBACOCKPIT.

b) On the DBACockpit: System Configuration Maintenance screen, choose the Add (Add
System entry) button.

c) In the System field, enter your tenant database: <database>@<SID> .

d) Mark the check-box Database Connection, and choose the Create button.

e) In Database Connection Details, enter the data from the above table.

f) In the DB Connections: Add Connection Entry screen, choose Save.


Result
You automatically navigate back to the Configuration: System Administration – Add
System Entry screen.

g) On the Administration Data tab, enter the following description: My tenant database.

h) Choose Save.
To confirm your new connection, at the bottom of the screen, the message System
entry <database>@<your SID> has been saved and activated displays.

Note:
The new connection information is written to the DBCON table. If there are
problems, check the entries in the DBCON table using transaction DBCO.

2. All Participants: Test the new DBA Cockpit connection to SAP HANA.
a) In the navigation area of DBA Cockpit, from the dropdown list at the end of the System
T4H (Currently Selected System) button, choose your <SID>@<SID> entry.

b) Under the Current Status folder, double-click Overview.

c) Under General System Information, check the operational state of your SAP HANA
connection.

© Copyright. All rights reserved. 183


Unit 12: Describing SAP ABAP Systems on SAP HANA

A green light indicates that all services are started.

d) On the Current Status → Overview screen, choose All services are started.

e) Review the status of each of the SAP HANA services.

3. All Participants – Optional: Using DBA Cockpit, determine the configuration for the savepoint
interval.
a) In the navigation area of DBA Cockpit, choose Configuration → INI Files.

b) Navigate to INIFILE PARAMETER LIST → global.ini → persistence → savepoint_interval_s.

4. All Participants – Optional: Using DBA Cockpit, review the definition of the
sap.hana.democontent.epm.data::MD.Products table in the HA200_DEMO schema using the
following data:
Field Value

Schema HA200_DEMO

Table/View *

a) In the navigation area of DBA Cockpit, choose Diagnostics → Tables/Views.

b) Enter the data from the above table.

c) Choose Execute.

d) In the Hits list, find and double-click the sap.hana.democontent.epm.data::MD.Products


table.

e) Choose the Columns tab.

f) Review the column names and definitions.

g) Choose the Send to SQL Editor button on the top of the screen.

h) On the Input Query tab, delete the generated SQL statement and enter the following SQL
statement:
select "PRODUCTID", "CATEGORY" from
"HA200_DEMO"."sap.hana.democontent.epm.data::MD.Products"

i) To run the query, choose the Execute button.

Note:
You can generate this SQL statement in the SQL Console of the SAP HANA
cockpit, and copy and paste it to this SQL editor in the DBA Cockpit. To do this,
in the SQL Console, navigate to the HA200_DEMO schema in your tenant
database. In the <SID>@<SID> → Catalog → Tables folder, find the
sap.hana.democontent.epm.data::MD.Products table. From the context menu
(right-click), choose Generate SELECT Statement.

© Copyright. All rights reserved. 184


Solution 34: Optional: Monitor SAP HANA with DBA Cockpit

j) Review the output in the Result tab.

k) Exit transaction DBACOCKPIT and return to the SAP Easy Access screen.

l) Choose Log off to disconnect, and close SAP GUI.

m) Close the SAP Logon 760 window.

© Copyright. All rights reserved. 185

You might also like