Blog Archive

Wednesday, 5 June 2013

SAP Kernel Update in UNIX based system..

Preparation:
1. Login to unix system with user root
2. Make new backup directory for the latest kernel
mkdir oldkernel
3. Backup the latest kernel
cp -pr /sapmnt/SID/exe/* /oldkernel
This will help you to switch back to old kernel , if there is any problem with the new kernel.
4. Make a new kernel directory
mkdir newkernel
5. Copy the new downloaded kernel files into /newkernel
6. Unpack the new downloaded kernel in folder /newkernel
SAPCAR -xvf SAPEXE.SAR
SAPCAR -xvf SAPEXEDB.SAR
Applying new kernel:
1. Login as <sapsid>adm
su – <sapsid>adm
2. Stop the SAP System
stopsap
3. Stop saposcol
saposcol -k
4.Switch the user to root
su – root
5. Copy all the extracted kernel files into the kernel folder
cp -pr /newkernel/* /sapmnt/SID/exe
6.change the owership to <sapsid>adm
chown <sapsid>adm /usr/sap/<SAPSID>/SYS/exe/run/*
7. Go to the current kernel directory
cd /sapmnt/SID/exe
8.Execute the following commands:
./saproot.sh <SAPSID>
This script will change the owner and the permission of related kernel file.
9. Login as <sapsid>adm
su – <sapsid>adm
10. Start the saposcol service
saposcol
11. Start the SAP system
startsap