sapbasisbasics
2 min readOct 21, 2024

SAP Basis Basics Part 37

Kernel Upgrade for SAP Systems

The procedure to upgrade the kernel is as follows:

1. First of all we need to make sure that the desired SAP kernel version is
compatible with the existing OS Kernel version and SAP product versions with
the help of product availability matrix (PAM).

2. After deciding the target kernel version, download the DB independent, DB
dependent files (SAPEXE_***.***.SAR and SAPEXEDB_***.***.SAR) and place
them in the server.

3. Create a directory in the server with the below command.
mkdir newkernel

4. Copy the DB dependent and DB independent files into the newly created
directory.

cp –pr SAPEXE_***.***.SAR SAPEXEDB_***.***.SAR /newkernel

5. Extract the files using SAPCAR executable. (It can be downloaded explicitly or
the existing one on the server can be used).

./SAPCAR.EXE –xvf SAPEXE_***.***.SAR
./SAPCAR.EXE –xvf SAPEXEDB_***.***.SAR

6. Once the files are extracted assign the suitable authorization and permissions for
the executable.

chown –R <sid>adm:sapsys *
chmod –R 755 *

7. Now stop the application services and make sure that there are no processes
running with <sid>adm user.

8. Take a consistent backup from the global directory. (Make sure to take the
backup from the global directory as the backups taken in the local directories
would be overwritten by the kernel in the global directory during application startup and in such cases reverting the kernel will not be possible).

9. Copy the newly extracted kernel to the global directory from the extracted path.
cp –pr * /sapmnt/<SID>/exe/uc/linuxx86_64

10. Once the kernel is copied, check the kernel version using the executable
“disp+work”.

11. Run the command ./saproot.sh <SID> with root user from the global directory. (This command
assigns the desired ownership and permissions to the executable such as br**,
sapuxusrechk, icmbnd etc.).

12. Once the checks are done we can start the SAP instance.

13. The SAP instance copies the kernel from the global mount-points to the local
mount-points and application directories using the back end program “sapcpe” to
all the application servers.

14. Once the instance is up and running, validate the kernel version from the
application layer as well.

https://community.sap.com/t5/technology-blogs-by-members/kernel-upgrade-for-sap-systems/ba-p/13571737

No responses yet