Kernel Upgarde - Rejesh
Kernel Upgarde - Rejesh
This document will guide you through the steps required to upgrade the SAP Kernel on your
SAP system.
An SAP Kernel upgrade involves downloading the latest Kernel version from SAP, applying it
to the system, and performing post-upgrade tasks to ensure proper functionality.
2. Pre-requisites
Before performing an SAP Kernel upgrade, ensure the following:
1. System Backup: Always back up your system and database before performing any
upgrade.
o File System Backup: Backup important files, including the SAP instance
directories, profiles, and kernel directories.
2. Access to SAP Support Portal: You will need access to the SAP Software Download
Center to download the latest Kernel files.
3. Permissions: Ensure you have the necessary admin permissions to update the
system. You must have access to the OS level (root or administrator) and appropriate
SAP roles like SAP_Host_Administrator.
4. Review the SAP Kernel Compatibility: Ensure that the kernel version you are
upgrading to is compatible with the version of SAP NetWeaver or other SAP
applications you are running.
Before proceeding with the upgrade, it’s important to know which version of the SAP Kernel
is currently installed.
1. Login to SAP and use transaction SM51 to check the system information, including
the current kernel version.
bash
Copy
disp+work -version
o This will return the current version of the SAP Kernel installed.
o Download the required kernel patch level (e.g., Kernel 7.5 or 7.6)
corresponds to your system's version.
o Download the SAR (SAP Archive) file, which contains the new kernel
executables.
o On Linux/Unix:
bash
Copy
o On Windows, stop the SAP system via the Services menu or use:
bash
Copy
bash
Copy
disp+work -version
o If any processes are still running, kill them manually using kill on Unix/Linux or
Task Manager on Windows.
o On Linux/Unix:
bash
Copy
cp -r /usr/sap/<SID>/SYS/exe/run /usr/sap/<SID>/SYS/exe/run.bak
o On Windows:
o On Linux/Unix:
bash
Copy
o On Windows:
Run the SAPCAR.exe tool to extract the SAR file in the command
prompt:
cmd
Copy
o After extraction, copy the new kernel files to the appropriate directory (e.g.,
/usr/sap/<SID>/SYS/exe/run on Unix/Linux or C:\usr\sap\<SID>\SYS\exe\run
on Windows).
If needed, update the instance profiles (such as DEFAULT.PFL) to reflect any changes
related to the new kernel version.
Transaction RZ10: Use this to update the profiles and add or change any kernel-
related parameters if necessary.
Once the kernel files have been replaced, restart the SAP system.
o On Linux/Unix:
bash
Copy
sudo startsaph
o On Windows:
bash
Copy
o Verify that the system starts correctly and that there are no errors in the logs.
o Use Transaction SM21 to check the system log and ensure that everything is
functioning normally.
After starting the system, verify that the new kernel version is active:
o On Linux/Unix:
bash
Copy
disp+work -version
o On Windows, check the version from the SAP GUI using Transaction SM51.
o Verify that the kernel upgrade did not cause any issues by reviewing the
System Log (SM21), Developer Traces (ST11), and System Monitoring.
4. Post-upgrade Considerations
System Performance: Monitor the system for any performance issues that might
arise after the kernel upgrade. Use transaction ST03N (Workload Analysis) to track
system performance.
Job Monitoring: Verify that scheduled jobs are running without issues. Use
transaction SM37 to monitor the background jobs.
SAP Support Package: After the kernel upgrade, ensure that the system is up to date
with the latest support packages and patches (if not already applied).
Testing: Conduct thorough testing of your SAP applications to ensure there are no
compatibility issues with the new kernel.
5. Conclusion
Upgrading the SAP Kernel is an important maintenance task that ensures your SAP system
benefits from improved performance, security patches, and compatibility with the latest SAP
features. By following the steps outlined in this document, you can perform a successful
kernel upgrade and ensure minimal downtime for your SAP system.
Remember to always back up your system before performing any upgrades and perform
thorough testing to ensure that everything runs smoothly post-upgrade.