Users Created During Installation

During Installation the following users will be created automatically.


Specifying Passwords:
Passwords are a mandatory parameter for installing an SAP HANA system. There are three methods for configuring passwords.
  • Interactive Mode
  • Command Line
  • Configuration File

Interactive Mode:
Interactive installation is available for both graphical interface (hdblcmgui) and command line (hdblcm) tools. Passwords are entered manually one-by-one as they are requested by the installer.
This method is preferred for quick, individual system installations.

Command Line:
Configuring passwords in the command line is a two-step process. First, a simple text file with passwords in XML syntax should be created and saved in the home directory of the root user. Then the file can be called using standard input and the read_password_from_stdin parameter in the command line with batch mode. Parameters specified in the command line override parameters specified in the configuration file. Since this method is the most powerful and flexible method, it is often the preferred method for installing multiple SAP HANA systems at one time.

The following is an example of the password file in XML syntax:
Passwords.xml

<?xml version="1.0" encoding="UTF-8"?>
 <Passwords>
 <password>Adm1234</password>
<sapadm_password>Agent1234</sapadm_password> <system_user_password>Sys1234</system_user_password> <root_password>Root1234</root_password>
 </Passwords>

Now, the password file (stored in the root user's home directory) is called from the command line using standard input, the read_password_from_stdin=xml parameter, and batch mode:

cat ~/Passwords.xml | ./hdblcm  --sid=DB1 --number=42  --read_password_from_stdin=xml –b

Configuration File:
It is possible to specify passwords in the configuration file. A configuration file template is created with all the parameters set to their default values. The configuration file is edited to the preferred parameter values, then it is saved, and the values are read by the installer during installation. This method is preferred for a one-step installation that can be re-created several times. If passwords are specified in the configuration file, the configuration file should be stored in the home directory of the root user, for security reasons.

The following is an example of the configuration file, with configured password parameters:
configfile1.cfg

# Root User Password 
root_password=Root1234
 ... 
# SAP Host Agent (sapadm) Password 
sapadm_password=Agent1234
 ... 
# System Administrator Password 
password=Adm1234
 .... 
# Database User (SYSTEM) Password 
system_user_password=Sys1234

Now the configuration file (stored in the root user's home directory) is called from the command line using the configfile parameter:

./hdblcm --sid=DB1 --configfile=~/configfile1.cfg

No comments:

Post a Comment