Anda di halaman 1dari 24

Installation Quick Guide

Demo21

July 2016
Version 1.6
Demo21 - Installation Quick Guide

1 Introduction ............................................................................................................................................. 3

2 Install SAP Host Agent: .......................................................................................................................... 4

3 Install the SAP HANA Platform .............................................................................................................. 5

4 Install SAP NetWeaver (Application Server) ........................................................................................ 13

2
Demo21 - Installation Quick Guide

1 Introduction
Please make sure you have copied all files from the download to a local drive on your Linux box, i.e. /tmp.

You should have the following content available:

The default Demo21 delivery will install the SAP HANA Platform with SID <HDB> and the SAP
NetWeaver Stack with SID <S4H>.

After installation you will have the following setup:

HDB SAP HANA Database Instance 02 Port 30215

S4H SAP NetWeaver Appl. Instance 00

3
Demo21 - Installation Quick Guide

2 Install SAP Host Agent:


2.1 Procedure
 Log on as a user with root authorization.
 Change to the directory to which you extracted the SAPHOSTAGENT<SP-version>.SAR archive.
 Start the installation by entering the following command:

./saphostexec -install

The progress of the installation is displayed on the command line.

Create the following directory:

mkdir /usr/sap/tmp

The administrator user sapadm of the SAP Host Agent is created automatically during the installation, but
it does not get assigned a password. You can assign a password after the installation has finished (see
next step).

If required, assign a password to the sapadm user by entering the following command:

passwd sapadm

After the installation has finished successfully, you can check whether SAP Host Agent is up and running
by executing the following command from the directory of the SAP Host Agent executables:

/usr/sap/hostctrl/exe/saphostexec -status

4
Demo21 - Installation Quick Guide

3 Install the SAP HANA Platform


3.1 SWPM
We need to create the user hdbadm.

 Start the SWPM

5
Demo21 - Installation Quick Guide

6
Demo21 - Installation Quick Guide

7
Demo21 - Installation Quick Guide

8
Demo21 - Installation Quick Guide

3.2 Unpack
 Change to your temp directory where you have all the files, i.e. /tmp/Demo21
 Unpack the files in the following sequence:

cat dblog.tgz-* | tar -zpxvf - -C / (expected runtime 5 Min.)

cat dbdata.tgz-* | tar -zpxvf - -C / (expected runtime 30 - 60 Min.)

cat dbexe.tgz-* | tar -zpxvf - -C / (expected runtime 5 Min.)

 You now have populated /hana/data, /hana/log and /hana/shared

3.3 Get UserId and GroupID


 Start YaST  User and Group Management
 Get the UID of user hdbadm

 Go to Details
 Change the home directory as indicated:

9
Demo21 - Installation Quick Guide

 Get the Group ID of group sapsys

3.3.1 Edit the cfg file for hdbreg


 Open file /hana/shared/HDB/global/hdb/install/support/cfg,

vi /hana/shared/HDB/global/hdb/install/support/cfg

Change the content to reflect your values:

'sapsys_groupid': 1001,

'sidadm_comment': 'SAP System Administrator',

10
Demo21 - Installation Quick Guide

'sidadm_home': '/usr/sap/HDB/home',

'sidadm_id': 1005,

'sidadm_shell': '/bin/csh'}

 Replace 'sapsys_groupid' value with the Group ID for sapsys (112 in our case).
 Change 'sidadm_home' value according to your system (i.e. /home/hdbadm)
 Replace 'sidadm_id' value with the UID of the user you created (1002 in our case).

3.4 hdbreg
You need:

 UID of the hdbadm


 Desired password for hdbadm
 Old hostname

Steps:

 Log on as a user with root authorizations.


 Go to /hana/shared/HDB/HDB02
 Identify the hostname from the source

 Execute the following commands (change yellow sections accordingly):

/hana/shared/HDB/global/hdb/install/bin/hdbreg --batch --password Welcome1 --


userid=1002 --hostmap=izrhhanab=hw00001

Use hdbreg –help to learn about additional options of the program.

Wait until the execution of the commands has completed. This will take some time.

 The SAP HANA instance will be started automatically !

11
Demo21 - Installation Quick Guide

If you plan to rename your SAP HANA database, you can use hdbrename. Consult hdbrename –help to
learn about the options. The syntax of hdbrename is similar to that of hdbreg.

Note:  No support for the hdbrename during Demo21!

Install SAP HANA License

You will need to install a new SAP HANA license.

Result:

The SAP Hana database is functionally working. You can connect to the database using SAP HANA
Studio.

12
Demo21 - Installation Quick Guide

4 Install SAP NetWeaver (Application Server)


4.1 Create user for App Instance
 Start SWPM

13
Demo21 - Installation Quick Guide

14
Demo21 - Installation Quick Guide

15
Demo21 - Installation Quick Guide

4.2 Unpack

For application server-related archives, execute the following commands:

cat usrsap.tgz-* | tar -zpxvf - -C / (expected runtime 5 Min.)

cat sapmnt.tgz-* | tar -zpxvf - -C / (expected runtime 3 Min.)

4.3 SWPM for App Instance (System Rename)


 Change directory to /usr/sap/S4H/SYS/profile
 Delete all profiles except the four files listed below:

Start the SWPM:

16
Demo21 - Installation Quick Guide

17
Demo21 - Installation Quick Guide

18
Demo21 - Installation Quick Guide

19
Demo21 - Installation Quick Guide

20
Demo21 - Installation Quick Guide

21
Demo21 - Installation Quick Guide

22
Demo21 - Installation Quick Guide

4.4 Troubleshooting
4.4.1 SAP Host Agent installation fails

Error: groupadd exit with status 127 …..

Solution:

Use the SWPM to create the SAP Host Agent User. Then continue with the steps in in this guide.

 System Rename  Preparation  Operating System Users and Groups

23
Demo21 - Installation Quick Guide

24