Basis SAPKernelUpgrade ITAREL V7.0 ALL Linux 20200423
Basis SAPKernelUpgrade ITAREL V7.0 ALL Linux 20200423
Date 23/04/20
Version V7.0
Revision Cristobal García, Guillermo Vivaldo
Tester Sebastian Andrew, Lucía Gomez, Gonzalo Galván, Lucía Ramón
Approvals Guillermo Vivaldo
Cristobal García
23/04/20
SAP Kernel Upgrade / Linux
Table of Contents
Objective ......................................................................................................................................... 6
Bibliography .................................................................................................................................. 27
Version Control
Version Date of Modified by Commentaries
modification
Recoverable Signature
Reviewer signature
X
Cristobal García
Document approver
Signed by: itgarc
Objective
Facilitate the process to understand all theorical concepts to define a standard process to execute
a SAP Kernel Upgrade process on a Linux Server, with SAP version 7.2.
The purpose is to replace the old executables from new version according SAP Notes. This update
is normally used to eliminate bugs and other errors. The scope of this document is to SAP BASIS.
Previous concepts
Kernel is a group of executable programs that exists between SAP Applications and Operating
System. This is the core of the SAP NetWeaver.
Is needed to review the actual version of the kernel to consider all requirements according the
package. i.e. the 7.53 kernel is compatible with the 7.40, 7.41, 7.42, 7.45, and 7.49 kernels. This
means that you can correct errors and benefit from the other improvements in the 7.53 kernel
without having to perform an SAP upgrade.
Below figure you can find the structure of the Kernel files. The procedure is to replace central
information to the local “exe”.
In below figure we can see all diagram about how is built central and local “exe”. The process is
to replace Physical shared directories with the new Kernel, once we have completed the
replacement, it will be needed to replicate to local directories with the command sapcpe.
1.2.2 Check at operating system level; with user <sid>adm, then execute script
disp+work. This will provide you, details about actual Kernel Version and its patch
number.
Windows → S:\usr\sap\<SID>\SYS\exe\uc\<NTAMD64>
AIX → /usr/sap/<SID>/SYS/exe/uc/<rs6000_64>
d. Proceed to create the backup of the kernel there are two options to create the kernel’s
backup:
Creating a compressed backup of the kernel’s folder.
Important Note: The same Kernel should be installed on all servers in a system (CI and other
applications servers).
• Select SAP kernel <bit> <uc> (here search and select the one, based on the specifications
of the system you have been checking disp+work or at SAP level as mentioned on
Prerequisites section)
• Based on the SAP kernel <bit> <uc> selected now proceed to select the SAP <release> (...)
---> Once There choose <operating system> ---> both #Database Independent and
<database specific> archives, for this example the database of this SAP System is ORACLE.
SAPEXE.SAR contains all the files that are independent of the database that is used to run the
application server. Thus, all customers running the application server on a particular operating
system platform install the SAPEXE.SAR package belonging to this platform independently of the
database they use.
SAPEXEDB.SAR contains all files needed for the application server that depend on the specific
database in use.
Example:
Copy all downloaded media on local folder on fitmedia shares of the respective bat site:
For example:
\\10.130.19.83\bata
\\10.130.19.83\batb
…
Note: According with the initial requirement, please review which other components need to be
added, please consider if the components are DB independent or in other case review the
dependency of the DB (HANA, Oracle, Sybase, etc.) i.e.
DB independent
Oracle dependent
Note: As an additional option you can download your software using the SAP Download Manager
(Refer to the attached file)
Basis_SAPDownloa
dManager_ITAREL_V1.1_ALL_Windows_20200423.docx
1. Log on as the user <sid>adm and change to profile folder, in case of Linux you can type
cdpro and automatically you will redirect to profile path (20 seconds).
3. Find parameter by executing "sappfpar pf=<instance pf with full path>" then write on
“Parameter-Name” DIR_CT_RUN to find the path where kernel is located (20 seconds).
Note: in case of Linux systems you can execute the command “cdexe” to redirect
automatically to the location of the kernel (30 seconds).
4. Copy SAR files from fitmedia shares one level above, in this case on
“/usr/sap/<SID>/SYS/exe/uc” (1 minute).
5. Copy the SAPCAR located on current kernel’s folder to the folder where you move the
SAR files “/usr/sap/<SID>/SYS/exe/uc” (30 seconds).
> cp ./linuxx86_64/SAPCAR ./
Basis_StopStartSAP_
ITVIVA_V3.1_ALL_Linux_20200423.docx
1. If the kernel upgrade takes place from a kernel release below 7.42, the SCSA must be
deleted. Execute "cleanipc <instance_number> remove" 2 times to delete the SCSA. This
is important, since the structure of the SCSA has changed in SAP Kernel Release 7.42 (40
seconds).
3. Once you have Stop SAP instance, ensure that there are no more SAP process hanging or
running. (1 minute).
1. Extract kernel archives by "SAPCAR -xfj <SAR_file> -R <destination folder>". First extract
SAPEXE and SAPEXEDB SAR files and then the rest (dw sar, lib_dbsl sar, in case it was
required) (3 minutes).
2. Once you finished decompressing the files, change permission and owner of kernel files.
(1 minute).
> As root user
> chmod -R 755 <kernel folder>/* and “chown -R <sid>adm:sapsys <kernel folder>/*”
4. Execute sapcpe to replicate central “exe” to local kernel. This command must be running
as <sid>adm user as follow (3 minutes).
Review the log generated for this sapcpe, located in the same patch. These logs should
not contain any error.
Basis_StopStartSAP_
ITVIVA_V3.1_ALL_Linux_20200423.docx
1. Go to SGEN and mark the option of “Generate all objects of selected components” and
then click on “Components” option
Then select the Software Components installed in your system to Compile (Select All)
2. On the Selection of the application servers for parallel generation do not change anything
and click on Continue.
3. Start the Job on Job Monitor for checking the progress of the generation in the
background (25-27 minutes).
Here You can start Job to compile or schedule Job
Basis_ABAPHealthch
eck_ITVIVA_V2.0_ALL_ALL_20200825.docx
Bibliography
SAP NetWeaver Library: Function-Oriented View. (n.d.). Retrieved from
https://help.sap.com/viewer/ff18034f08af4d7bb33894c2047c3b71/7.4.18/en-
US/47fd7230eca159e8e10000000a421937.html