TADM55 EN Col19 EX LTR
TADM55 EN Col19 EX LTR
.
.
EXERCISES AND SOLUTIONS
.
Course Version: 19
Exercise Duration: 11 Hours 20 Minutes
Material Number: 50165759
SAP Copyrights, Trademarks and
Disclaimers
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.
Demonstration
Procedure
Warning or Caution
Hint
Facilitated Discussion
No exercises
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
177 Exercise 34: Optional: Monitor SAP HANA with DBA Cockpit
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:
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
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.
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
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.
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:
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
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.
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.
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.
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
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? . . . . . . . . . . . . .
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
Instance Number 00 00
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
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
Instance Number 00 00
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.
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.
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.
This command shows an overview of all locally running SAP HANA database system
services.
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).
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
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).
6. All participants: Close the text editor by selecting the [X] (close button).
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
Password: W3lcome123
3. Participant 1: Use hdblcmgui to install SAP HANA cockpit on the host wdflbmt7350.
Field Value
Local Host Name: wdflbmt7350
Instance Number: 96
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
Password: W3lcome123
a) From your SAP Learning Cloud training system desktop, in the File Explorer, open the
folder N:\HA200.
d) In the HA200 - Open Remote Desktop sessions window, select the number that
corresponds with the wdflbmt7350 host in your landscape.
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
Instance Number: 96
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.
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.
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.
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.
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.
a) From your SAP Cloud Training System desktop, in the File Explorer, open the folder N:
\HA200.
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
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
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
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
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
Instance Number 00 00
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
Instance Number 00 00
6. All Participants: Add your registered databases to a database group using the following data:
Screen Field Participant 1 Value Participant 2 Value
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
Cockpit Roles screen Cockpit Roles Keep the default se- Keep the default se-
lection lection
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
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
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
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
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.
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.
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
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
Instance Number 00 00
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.
e) In the 2. Connection step, deselect the checkboxes for Encrypt the SAP control connection
and Encrypt the database connection.
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.
m) In the 5. Contact step, enter your contact information as shown in the above table.
o) In the Register Database Review screen, check and confirm your input.
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
Instance Number 00 00
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.
d) In the 2. Connection step, deselect the checkbox for Encrypt the database connection.
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.
l) In the 5. Contact step, enter your contact information as shown in the above table.
n) In the Register Database Review screen, check and confirm your input.
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
a) In the SAP HANA Cockpit Manager home screen, choose Database Groups.
c) In the 1. General Information screen, enter the data from the above table in the Group
Name and Description fields.
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.
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.
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.
c) In the 1. User Information step, enter the data from the above table in the User Name,
Password, Confirm Password, and Email fields.
e) In the 2. Cockpit Roles screen, keep the default role selection and choose the Step 3
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
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
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.
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
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.
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
Password W3lcome123
3. Participant 2: Use hdblcmgui to update SAP HANA cockpit on the host wdflbmt7350.
Field Value
System Database User Name SYSTEM
4. All Participants: Use Google Chrome to log on to the upgraded SAP HANA cockpit.
Field Participant 1 Value Participant 2 Value
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:
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
Password W3lcome123
a) From your SAP Learning Cloud training system desktop, in the File Explorer, open the
folder N:\HA200.
d) In the HA200 – Open Remote Desktop sessions window, select the number that
corresponds with the wdflbmt7350 host in your landscape.
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
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.
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.
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
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:
a) On the SAP HANA cockpit home screen, choose the <Your Group> tile.
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.
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)
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
4. All participants: Use the resident HDBLCM tool to extract the downloaded SAP HANA server
and client components.
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
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
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)
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
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.
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
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.
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
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.
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.
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
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.
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
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
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
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
Instance Number 00 00
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
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.
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
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.
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.
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.
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.
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.
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
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
Instance Number 00 00
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.
e) In the 2. Connection step, deselect the check-box for Encrypt the database connection.
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.
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.
o) In the 5. Contact step, enter your contact information as shown in the above table.
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
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.
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
Result
Now, you are connected to the SYSTEM DB of your SAP HANA installation.
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
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
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.
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
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
Result
Now, you are connected to the SYSTEM DB of your SAP HANA installation.
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
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_"
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
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>
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.
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
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>.
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.
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
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>.
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 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.
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.
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
3. All participants: Import the HA2XX_DEMO data archive using the SAP HANA Database
Explorer.
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
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
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>/
3. All participants: Import the HA2XX_DEMO data archive using the SAP HANA Database
Explorer.
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.
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.
Result
You have now successfully imported the demo schema with several tables that we will use
in later exercises.
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
3. All Participants: Use the SAP HANA database explorer to find the number of records of table
sap.hana.democontent.epm.data::PO.Item.
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
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.
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.
Business Example
You want to create and administer tables in the SAP HANA system using the SAP HANA
Database Explorer and the SQL Console.
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
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.
Business Example
You want to create and administer tables in the SAP HANA system using the SAP HANA
Database Explorer and the SQL Console.
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
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.
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.
Note:
The create table with data load command takes a few seconds.
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.
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).
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.
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.
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.
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
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.
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
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.
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 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.
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.
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.
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.
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
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
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
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
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.
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.
f) To return to the Database Directory screen, choose the < (Back) button.
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
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
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
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.
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.
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
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.
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
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.
b) To get a memory usage overview of the last three hours, in the Performance Monitor
screen, choose the Presets link.
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.
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:
d) On the Add and Remove KPIs dialog, choose the OK button to rebuild the chart with your
selected KPIs.
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.
g) In the Add Chart dialog box, choose the Last 2 days option to add a new chart and start the
comparison.
Is there a high CPU usage when the SAP HANA database system executes multiple
statements?
j) Return to the Home screen by choosing the Performance Comparison navigation menu,
and from the dropdown list, select the Home option.
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
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
4. All Participants: Check which alerts are reported for your initial tenant database.
Field Participant 1 Value Participant 2 Value
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
6. All Participants: Review the changed Alert Interval value for your SYSTEMDB@<SID>
database.
Field Participant 1 Value Participant 2 Value
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
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
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, search for the Alerts card and choose it.
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
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
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.
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
a) On the Alerts screen, choose the Data backup does not exist. alert.
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.
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.
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
3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value
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.
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
3. All Participants: Use SAP HANA cockpit to stop your tenant database.
Field Participant 1 Value Participant 2 Value
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
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
2. All Participants: Use SAP HANA cockpit to start your SAP HANA database system.
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
3. All Participants: In the PuTTY session (2), use SAPControl to start the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value
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.
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
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
Result
You now have learned how to stop and start an SAP HANA database system using the HDB
command.
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
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
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
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
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.
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.
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;
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>;
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
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
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.
2. All Participants: In the PuTTY session, use SAPControl to stop the SAP HANA database
system.
Field Participant 1 Value Participant 2 Value
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:
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:
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
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:
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.
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
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
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.
Result
You now have learned how to stop and start an SAP HANA database system using the HDB
command.
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.
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
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.
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.
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
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 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.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.
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.
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.
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:
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.
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.
1. Check the list of Restricted Features and deactivate the feature IGNORE_PATH_RESTRICT.
Field Participant 1 Value Participant 2 Value
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.
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.
1. Check the list of Restricted Features and deactivate the feature IGNORE_PATH_RESTRICT.
Field Participant 1 Value Participant 2 Value
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).
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.
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.
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.
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.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.
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.
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.
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
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.
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
a) On the previously opened Database Directory screen, choose your tenant database
<SID@SID> to enter the Database Overview application.
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.
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;
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.
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.
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.
d) At your own discretion, close any SQL Console tabs that you no longer need.
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.
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
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
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.
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
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.
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.
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.
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.
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.
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.
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.
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
a) From the SAP HANA Cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
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.
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.
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.
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
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
3. All Participants: Use SAP HANA cockpit to perform a complete data backup of the
SYSTEMDB.
Field Participant 1 Value Participant 2 Value
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
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
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
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
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.
c) On the Database Management screen, choose the No backups link of your SYSTEMDB.
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.
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
a) On the Database Management screen, choose the No backups link of your <SID> tenant
database.
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.
f) Return to the Home screen by choosing the Backup Catalog navigation menu, and from
the dropdown list, select the Home option.
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
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Management screen, choose the Successful link of the <SID> tenant
database.
e) Specify the backup settings using the data from the above table.
h) Return to the Home screen by choosing the Backup Catalog navigation menu, and from
the dropdown list, select the Home option.
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
3. Use the central backup scheduler to plan a daily complete backup for the SYSTEMDB.
Field Participant 1 Value Participant 2 Value
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
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
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
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
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Management screen, select the °°° (more) button, and choose the
Backup Schedules item.
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.
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
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.
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.
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
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.
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>.
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
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
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.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, enter Manage database configuration into the
Search field, and choose the appropriate link in the Database Administration card.
f) Return to the Home screen by choosing the Database Configuration navigation menu, and
from the dropdown list, select the Home option.
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.
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>
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
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
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
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
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
The data volumes of your tenant database are located in the hdb0000#.00003
subdirectories.
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
a) In your PuTTY session, still as user <sid>adm, start your SAP HANA Instance using the
command:
HDB start
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
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
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
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
d) On the Database Management screen, mark your Tenant Database using the radio button
to the left.
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.
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.
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.
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
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
6. All Participants: Check if the reset to the fallback snapshot solved your problem.
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
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.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Management screen, mark your Tenant Database using the radio button
to the left.
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;
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
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.
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";
d) Close the Database Explorer tab and return to the SAP HANA cockpit Database
Management window.
a) On the Database Management screen, mark your Tenant Database using the radio button
to the left.
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.
Business Example
You need to back up the encryption root keys of an SAP HANA tenant database.
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
3. Back up the encryption root keys of the SAP HANA tenant database.
Business Example
You need to back up the encryption root keys of an SAP HANA tenant database.
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
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.
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.
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.
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.
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
4. All Participants: Create and enable an audit policy that records read access to the table
"HA200_DEMO"."EPM.PO.Item_Part".
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.
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
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.
a) From the SAP HANA Cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
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.
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".
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.
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.
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.
h) In the 4. Audited Users step, keep the default setting All Users selected for the users to
be audited by the policy.
j) In the 5. Audit Trail step, use the data from the above table for the input fields Audit Level
and Audit Trail Target.
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.
n) In the 7. Policy Status step, keep the default setting Enable selected.
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.
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.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
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"
f) Close the Database Explorer tab and return to the SAP HANA cockpit Database Overview
window of your <SID>@<SID> tenant database.
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, enter Auditing into the Search field, and choose the
Auditing card to analyze the audit trail.
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.
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
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
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
To enable read-only access to the schema _SYS_STATISTICS, grant the following object
privilege to the SELECT_SYS_STATISTICS role:
CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.
LICENSE ADMIN Authorizes the use of the SET SYSTEM LICENSE statement to install
a new license.
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.
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:
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.
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
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
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
To enable read-only access to the schema _SYS_STATISTICS, grant the following object
privilege to the SELECT_SYS_STATISTICS role:
a) From the SAP HANA cockpit Home screen, choose the <your group> tile to enter the
Database Directory application.
c) On the Database Overview screen, enter Role Management into the Search field, and
choose the appropriate link in the User & Role Management card.
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.
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.
i) In the Select Objects dialog box, enter _SYS_STATISTICS into the Object: Search field.
The search function automatically provides the matching objects.
l) In the Add Object with Privileges dialog box, mark the SELECT checkbox and choose the
OK button.
CATALOG READ Authorizes unfiltered access to the data in the system views that a
user has already been granted the SELECT privilege on.
LICENSE ADMIN Authorizes the use of the SET SYSTEM LICENSE statement to install
a new license.
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.
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.
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.
f) In the Select Roles dialog box, enter SELECT_SYS_STATISTICS into the Role: Search field.
The search function automatically provides the matching roles.
j) On the DB_BASIC_ADMIN screen, select the System Privileges tab, and choose the Edit
button to the right of the search field.
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.)
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:
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.
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.
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.
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.)
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.
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.
f) In the Select Roles dialog-box, mark the checkbox for the role DB_BASIC_ADMIN from the
roles list.
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.
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.
Business Example
You need a user with authorizations to perform generic database administration tasks.
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
2. All Participants: Check if ADMIN_USER is authorized to access and manage the SAP HANA
services.
Business Example
You need a user with authorizations to perform generic database administration tasks.
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) In the Select Roles dialog box, mark the checkbox for the role
DB_SYSTEM_ADMIN_GENERIC from the roles list.
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.
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
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.
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.
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.
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.
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.
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.
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.
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
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*
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.
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
Password Welcome1
Confirm Welcome1
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:
Field Value
Schema HA200_DEMO
Table/View *
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.
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
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.
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.
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.
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*
h) Choose the Send to SQL Editor button on the top of the screen.
l) In the DBACOCKPIT transaction, choose the Exit button to return to the SAP Easy Access
screen.
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.
a) From your HA200 SAP Learning Cloud training system desktop, in the File Explorer, open
the folder N:\HA200.
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
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
Password Welcome1
Confirm Welcome1
b) On the DBACockpit: System Configuration Maintenance screen, choose the Add (Add
System entry) button.
d) Mark the check-box Database Connection, and choose the Create button.
e) In Database Connection Details, enter the data from the above table.
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.
c) Under General System Information, check the operational state of your SAP HANA
connection.
d) On the Current Status → Overview screen, choose All services are started.
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.
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 *
c) Choose Execute.
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"
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.
k) Exit transaction DBACOCKPIT and return to the SAP Easy Access screen.