How to upgrade SAP Host Agent on LINUX

Manually Upgrading SAP Host Agent on LINUX/UNIX 

You can upgrade SAP Host Agent from a downloaded SAPHOSTAGENT<SP-version>.SAR archive with a higher version. 

we have 2 methods to upgrade the SAP Host Agent

Method 1:

You perform the upgrade by executing the saphostexec executable with the –upgrade option and providing the path to the downloaded SAPHOSTAGENT<SP-version>.SAR archive.

You can use the saphostexec executable either of the existing SAP Host Agent installation or of the downloaded SAPHOSTAGENT<SP-version>.SAR archive. If you use the saphostexec executable of the existing SAP Host Agent installation, you do not need to decompress the downloaded SAPHOSTAGENT<SP-version>.SAR archive manually but execute the program with the additional option –archive and provide the direct path to the downloaded SAPHOSTAGENT<SP-version>.SAR archive.

On UNIX, you can also use the hostexecstart program for upgrading SAP Host Agent as a user without root authorization.

Prerequisites

·       You are logged on as a user with root authorization or at least as user that is a member of the sapsys group.

·       You have downloaded the desired target release version of the SAPHOSTAGENT<SP-version>.SAR archive.

     Procedure

·       If you are logged on as a user with root authorization, you can choose between the following options to perform the upgrade:

o   To upgrade SAP Host Agent using the saphostexec executable of the existing host agent installation, proceed as follows:

1.     Copy the downloaded SAPHOSTAGENT<SP-version>.SAR archive to a temporary directory, for example /var/tmp.

2.     Change to the directory where the saphostexec executable of SAP Host Agent is located:

cd /usr/sap/hostctrl/exe/

 

 

  

3.     Execute the following command:

./saphostexec -upgrade -archive <path to downloaded SAPHOSTAGENT<SP-version>.SAR>

 Example

saphostexec -upgrade -archive /var/tmp/SAPHOSTAGENT43_43-20009394.SAR

o 

o  

o   

o   


Method 2:

o   To upgrade SAP Host Agent using the saphostexec executable of the downloaded SAPHOSTAGENT<SP-version>.SAR archive, proceed as follows:

1.     Copy the downloaded SAPHOSTAGENT<SP-version>.SAR archive to a temporary directory, for example /var/tmp.

 

2.     Decompress the SAPHOSTAGENT<SP-version>.SAR archive with the SAPCAR tool to this directory.  Normally use the following command for decompression, and execute it in the directory of the archive:

./SAPCAR -xvf SAPHOSTAGENT<SP-version>.SAR

 

 Example

./SAPCAR -xvf SAPHOSTAGENT43_43-20009394.SAR /var/tmp

Among others, the archive contains the saphostexec program.

3.     Change to the temporary directory and run the command ./saphostexec -upgrade there.

·       If you are logged on as a user that is a member of the sapsys group, for example <sapsid>adm, proceed as follows:

1.     Decompress the downloaded SAPHOSTAGENT<SP-version>.SAR archive to a temporary directory [temp_dir].

2.     Change to this temporary directory and run the hostexecstart -upgrade [temp_dir] command there.

 Example

/usr/sap/hostctrl/exe/hostexecstart -upgrade /var/tmp

Result

·       After the upgrade has finished successfully, SAP Host Agent is up and running.

·       If you are logged on as a user with root authorization, you can check the version of the upgraded host agent by executing the following command: saphostexec –version

Sybase history

Sybase  is a computer software company that develops and sells database management system (DBMS) and middleware products. The company was fo...