Friday, 13 July 2012

Upgrade SAP Kernel


(a) Login to the ABAP system
     (b) Execute transaction SE38
     (c) Specify Program GRAPHICS_IGS_ADMIN
     (d) Click Execute (The RFC destination for the IGS should automatically populate)
     (e) Click Execute
     (f) The version will be displayed (e.g. 7000.0.10.1)

1.stop the sap
2.kill oscol,

3. clean unused libraries from memorey
   sudo /usr/sbin/slibclean
4.Make a backup copy of the current kernel as follows:
     (a) cd /usr/sap/<SID>
     (b) rm -rf oldkernel (this command may error if the directory does not exist)
     (c) mkdir oldkernel
     (d) cd /sapmnt/SBX/exe
     (e) cp -rp * /usr/sap/SBX/oldkernel
      f) mkdir /usr/sap/<SID>/oldkernel/igs
     (g) cd /usr/sap/<SID>/DVEBMGS*/igs (cd /usr/sap/<SID>/JC*/igs for non-ABAP systems)
     (h) cp -rp * /usr/sap/<SID>/oldkernel/igs


5. Change the file ownerships as follows to minimize extraction errors as follows:
     (a) cd /sapmnt/SBX/exe
     (b) sudo chown sbxadm:sapsys *
     (c) sudo chown -R sbxadm:sapsys cfw
     (d) sudo chown -R sbxadm:sapsys jkit
     (e) sudo chown -R sbxadm:sapsys servicehttp
6.cd /sapmnt/SBX/exe
   cp -pfr /usr/sap/trans/newkernel/* /sapmnt/SBX/exe

 Extract the new kernel files as follows:
    Note: Steps (e) through (g) are only appropriate for SAP Basis release 7.00 or higher
     (a) cd /sapmnt/<SID>/exe
     (b) mv SAPCAR SAPCAR.old    
                (SAPCAR is delivered in the new files and needs to be renamed)
     (c) ./SAPCAR.old -xvf /usr/sap/trans/new_kernel/SAPEXE_201-20000978.SAR
                (If a file cannot be overwritten, rename the filename to filename.mmddyyyy and repeat)
     (d) ./SAPCAR.old -xvf /usr/sap/trans/new_kernel/SAPEXEDB_201-20000977.SAR
                (If a file cannot be overwritten, rename the filename to filename.mmddyyyy and repeat)
      (e) ./SAPCAR.old -xvf /usr/sap/trans/new_kernel/dw_218-20000978.sar
      (e) SAPCAR -xvf /usr/sap/trans/newkernel/igs<restoffilename>
                (If a file cannot be overwritten, rename the filename to filename.mmddyyyy and repeat)
     (f) cd /usr/sap/<SID>/DVEBMGS* (/usr/sap/<SID>/JC* for non-ABAP systems)
     (g) SAPCAR -xvf /usr/sap/trans/newkernel/igshelper<restoffilename>
                (If a file cannot be overwritten, rename the filename to filename.mmddyyyy and repeat)

7. Set the permissions of the kernel files and saposcol as follows:
     (a) cd /sapmnt/SBX/exe
     (b) sudo cp saproot.sh /usr/sap
     (c) sudo /usr/sap/saproot.sh SBX
     (d) sudo chown root saposcol
     (e) sudo chmod o+s saposcol

8. Start the SAP system as per the customer policies and procedures document

1 comment:

  1. Thank you for such an easy to understand tutorial! I succeeded from the first time! And before I found your explanation I tried more then 10 times to do it!
    upgrade sap 6.0

    ReplyDelete