Tuesday, 24 January 2012

SAP Kernel Upgrade


SAP Kernel Upgrade
SAP Kernel Upgrade Tutorial step by Step:
1. Login as root
2. Make new backup directory
cd /
mkdir SIDkernel_10102007
3. Create latest kernel backup
cp -pr /sapmnt/SID/exe/* /SIDkernel_10102007
4. Compare size of the original kernel and the backup
du -sk /sapmnt/SID/exe/
=>840413 /sapmnt/SID/exe
du -sk /SIDkernel_10102007
=>840413 /SIDkernel_10102007
5. Make new shadow kernel directory
cd /
mkdir newkernel_175
6. Copy the new downloaded kernel files into /newkernel_175
7. Unpack the new downloaded kernel in folder /newkernel_175
/sapmant/SID/exe/SAPCAR -xvf SAPEXE_175-20000221.SAR
/sapmant/SID/exe/SAPCAR -xvf SAPEXEDB_175-20000223.SAR
8. Login as sidadm
9. Stop the SAP System
stopsap
10. Stop saposcol
saposcol -k
11. Go to the current kernel directory
Login as root
cd /sapmnt/SID/exe
12. Copy all extracted support packages into this folder
cp -pr /newkernel_175/* /sapmnt/SID/exe13.
13. Change file permission of files into kernel folder
cd /sapmnt/SID/exe
chown SIDadm:sapsys ./*
14. Copy back the original file from backup saproot.sh into this folder.
cp -p /SIDkernel_10102007/saproot.sh /sapmnt/SID/exe
15. Login as SIDadm with root privilege
Login as SIDadm
su root
16. Go to the current kernel directory
cd /sapmnt/SID/exe
Then execute:
./saproot.sh SID
Solaris Error (refer SAP Note 420417):
# ./saproot.sh SID
> ./saproot.sh: whoami: not found
> ./saproot.sh: test: argument expected
Solution:
#PATH=/usr/ucb:$PATH
#./saproot.sh <SID>
Again execute:
disp+work
17. Start the saposcol service
Login as sidadm
saposcol
18. Start the SAP system
startsap

2 comments:

  1. sap upgrade challenges
    Amazing post. I followed the steps posted above and successfully upgraded the sap kernel. I am grateful to you for listing each and every step of the installation process.

    ReplyDelete