This blog covers installation of (1) SAP S/4HANA server and (2) SAP NW JAVA / ADS server as shown in the graphic below. The installation is based on file restore and is different from the standard installs using SWPM.
In this blog the procedure is simplified for hostname change and SID change. Also if you want to change instance number the command, screens show where you can change the instance number. This would make sense if your network cannot accommodate the unique hostname and SID. Also if it is a more permanent installation you may like to change SID and hostname.
This blog is based on a fresh installation of SUSE Linux for SAP OS without having any previous SAP instances created and deleted. I did not have to pre install hostagent, etc. There are mount points/links to be setup as shown in the right place in the directory structure. The steps in the guides provided with SAP Note 2041140 could be used as a reference in case there are issues specific to your environment. Just follow the steps below to install both systems shown in red square below:
Please find below the main note for ordering the appliance:
2041140 - Order an SAP pre-assembled Best Practices software appliance (as partner or customer)
STEP 1: PREPARE SYSTEM Prepare Linux Server as below for the appliance. The values in Used column below show the minimum size needed. For /sapmnt provide min 30GB, /hana/data space - min 360GB, /hana/log - 35GB. I have used /sapmedia - 161GB temporary separate mount that can be removed later. Also as you see below although you may want to change the database SID, you need to initially mount the filesystem as HDB and then it is shown where to change the mount to any other SID like HDD as an example in this blog.
TIP: The /sapmedia filesystem could be external mount. To save this space, the files could be downloaded to /hana/data/HDB and deleted as they are being extracted. In this case it would be good to extract dbdata files first.
The /etc/hostname and /etc/host file is below. If you are changing hostname for db and sap add the standard and new nostname for DB but for SAP only provide new hostname. Also for J2E include the new hostname only as thi sis on separate instance. The standard hostname can be removed later.
STEP 2: EXTRACT FILES Extract files 51054391_* in /sapmedia
sid-hdd-s4d:/sapmedia# unzip 51054391_1.ZIP
sid-hdd-s4d:/sapmedia# unzip 51054391_2.ZIP
sid-hdd-s4d:/sapmedia# unzip 51054391_3.ZIP
sid-hdd-s4d:/sapmedia# unzip 51054391_4.ZIP
cd /sapmedia/51054391_1/SAPS4HANA1909FPS01SAPHANADB20basedonSAPNetweaverASABAP754_1
mv /sapmedia/51054391_?/SAPS4HANA1909FPS01SAPHANADB20basedonSAPNetweaverASABAP754_?/*.tgz-* .
In the next step we will extract the above *.tgz files but please note the directories size is as follows so you can provide ample space:
Please use command below to extract the database related archives:
sid-hdd-s4d:/sapmedia/# cd 51054391_1/SAPS4HANA1909FPS01SAPHANADB20basedonSAPNetweaverASABAP754_1
cat dblog.tgz-* | tar -zpxvf - -C /
cat dbexe.tgz-* | tar -zpxvf - -C /
cat dbdata.tgz-* | tar -zpxvf - -C /
Then extract the files:
sid-hdd-s4d:/usr/sap #cd 51054391_1/SAPS4HANA1909FPS01SAPHANADB20basedonSAPNetweaverASABAP754_1
cat usrsap.tgz-* | tar -zpxvf - -C /
cat sapmnt.tgz-* | tar -zpxvf - -C /
STEP 3: GET PASSWORDS Download the file below and open the file in Internet Explorer to note passwords:
/sapmedia/51054391_1/SAPS4HANA1909FPS01SAPHANADB20basedonSAPNetweaverASABAP754_1/SAP_Software_Appliance.xml
STEP 4: REGISTER DATABASE Please note that although we want to rename database SID from HDB to HDD we need to execute the below command to have the system and id's registered as HDB first.
sid-hdd-s4d: #/hana/shared/HDB/hdblcm/hdblcm --action=register_rename_system
This should bring up the database processes as below
sid-hdd-s4d: #/usr/sap/hostctrl/exe/sapcontrol -nr 02 -function GetProcessList
STEP 5: RENAME DATABASE HOST Specify the new database hostname as per below:
sid-hdd-s4d: #/hana/shared/HDB/hdblcm/hdblcm --action=rename_system --hostmap=vhcalhdbdb=vhcalhdddb
STEP 6: RENAME MOUNT POINTS First shutdown hana database and host agent.
sid-hdd-s4d:/install # /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StopSystem
sid-hdd-s4d:/install # /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StopService
sid-hdd-s4d: # cd /hana/shared/HDD/hdblcm
sid-hdd-s4d: /hana/shared/HDD/hdblcm # ./hdblcm --action=register_rename_system
sid-hdd-s4d: #/hana/shared/HDD/hdblcm/hdblcm --action=rename_system --number=<new instance number>
TIP: At this point it is necessary to install the HANA database license as the database will be started in restricted mode.
STEP 5: EXTRACT SWPM Extract SWPM in folder /install. Use the SAPCAR already available to extract.
sid-hdd-s4d:/install #/sapmnt/S4D/exe/uc/linuxx86_64/SAPCAR -xvf /sapmedia/SWPM20SP05_8-80003424.SAR
sid-hdd-s4d:/install # ./sapinst SAPINST_USE_HOSTNAME=vhcals4dci SAPINST_ACCEPT_INTERNAL_SIGNATURE=true SAPINST_SLP_MODE=false
In SAPINST select System Rename => Standard System => SAP System Rename
At screen SAP System Parameters enter Source System S4H and Target System S4D:
Click on Next.
At the screen Prerequisite Checker Results accept or fix the Prerequisite check results.
Click on Next. No if you dont want to repeat the test
At the screen SAP Instance Parameters accept or change the Target System Instance Numbers.
Click on Next.
At the screen SAP HANA Database Connectivity enter Instance Number 02 and Password Welcome99. Click on Next.
If you don't install HANA DB license you will get error below. Install license using HANA Studio and continue. License is required if there is a database SID change..
At the screen SAP HANA Database Parameter you can change Schema User , DBACOCKPIT and SYSTEM password. Please note it is also optional to change the schema user SAPHANADB password along with DBACOCKPIT and SYSTEM users.
At the screen Database Schema accept schema SAPHANADB password and confirm Schema password Xxxxxxxn click on Next.
At the screen Rename Tenant Database click on Next
TIP: In case you get this ERROR:
Ensure the environment variable LC_CTYPE of the user running sapinst is set as LC_CTYPE=en_US.
Stop the current sapinst and restart it. Continue with the existing option.
You may get message below for rename of profile parameter.
After sapinst process is finished you can manually start the SAP instance S4D
sid-hdd-s4d:/install # /usr/sap/hostctrl/exe/sapcontrol -nr 01 -function StartSystem ALL
sid-hdd-s4d:/install # /usr/sap/hostctrl/exe/sapcontrol -nr 00 -function StartSystem ALL
Host name / port in table HTTPURLLOC using tcode httpurlloc
ABAP connections:
• LOCAL_RFC
• S4DCLNT100, S4DCLNT200, S4DCLNT400
• S4D_RFC
HTTP connections:
• ADS (pointing to the JAVA server after PART3: INSTALL SAP NW JAVA /ADS)
• LOCAL_HTTP
• LOCAL_HTTPS
• S4FIN_HTTPS
Install software product license key: Technical restrictions may apply if you don’t install the license. Use the link to obtain license key.
HANA DB license key can be installed via HANA Studio (Preferences -> License)
In SAP S/4HANA 1909 the license key is installed via SAP logon tCode SLICENSE
SPAD - Spool Administration
SCC4 - Client Administration - Logical System
RZ10- Instance profiles
SP01 - Spool delete old spool requests
The table below shows standard SID and hostnames and what we are changing it to.
The /etc/hostname and /etc/host file is below:
STEP 2: EXTRACT FILES Extract files 51054392.ZIP in /sapmedia
sid-j2d:/sapmedia# unzip 51054391.ZIP
cd /sapmedia/51054392/SAPNetWeaver750SP16ASJAVAwithAdobeDocumentServices_1
In the next step we will extract the above *.tgz files but please note the directories size is as follows so you can provide ample space:
sid-j2d:/sapmedia# cat dblog.tgz-* | tar -zpxvf - -C /
sid-j2d:/sapmedia# cat dbexe.tgz-* | tar -zpxvf - -C /
sid-j2d:/sapmedia# cat dbdata.tgz-* | tar -zpxvf - -C /
sid-j2d:/sapmedia# cat sapmnt.tgz-* | tar -zpxvf - -C /
sid-j2d:/sapmedia# cat usrsap.tgz-* | tar -zpxvf - -C /
STEP 3: GET PASSWORDS Download the file below and open the file in Internet Explorer to note passwords:
/sapmedia/51054392/SAPNetWeaver750SP16ASJAVAwithAdobeDocumentServices_1/SAP_Software_Appliance.xml
STEP 4: RENAME MOUNT POINTS You can take a full OS backup at this point and rename mount points or directories to /sybase/J2D; /sapmnt/J2D; /usr/sap/J2D. The old standard mount points do not have to exist. After reboot ensure all new renamed mount points are valid.
STEP 5 EXTRACT SWPM Extract SWPM in folder /install. Use the SAPCAR already available to extract.
sid-j2d:/install #/sapmnt/J2D/exe/uc/linuxx86_64/SAPCAR -xvf /sapmedia/SWPM10SP28_7-20009701.SAR
STEP 6 RENAME SAP SYSTEM Rename instance using sapinst
sid-j2d:/install # ./sapinst SAPINST_USE_HOSTNAME=vhcalj2dci SAPINST_ACCEPT_INTERNAL_SIGNATURE=true SAPINST_SLP_MODE=false
In SAPINST select System Rename => Standard System => SAP System Rename
At the screen Software Integrity click on Next
At screen SAP System Parameters enter Source System J2E and Target System J2D:
Click on Next.
At the screen Prerequisite Checker Results accept or fix the Prerequisite check results.
Click on Next. No if you dont want to repeat the test
At the screen SAP Instance Parameters accept or change the Target System Instance Numbers.
Click on Next.
At the screen Operating System Users accept master password or enter password Xxxxxxxn
sid-j2d:/install # su - j2dadm
sid-j2d:j2dadm > startsap
Install software product license key: Technical restrictions may apply if you don’t install the license. Use the link to obtain license key. SAPNetweaver 7.5 J2EE license key has to be installed via SAP Netweaver Administrator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 |