Friday, January 16, 2009

UNIX Kernel Patch: UNIX Kernel Replacement

1. Download the two necessary archives - SAPEXE.SAR and SAPEXEDB.SAR - from SAP MarketPlace. There files can be found at http://service.sap.com/patches. Be careful that your Basis level is high enough to use the patch level of the files you download. For example, if your SAP instance is on Basis level 39 and the description of one of the SAPEXE.SAR files is Stack 42, you need to download a SAPEXE.SAR of a lower level.

2. Once both files have been downloaded, log on to the UNIX server as adm and copy them up to a directory on the UNIX server - I use one called /usr/sap/trans/NewKernel. unCAR the files with SAPCAR command “sapcar -xvf “SAPEXE*.SAR”.

3. As adm, stop the SAP instance. Log on as ora and stop the TNS listener, and log on as root and stop saposcol.

4. Make a backup of your run directory before patching. I usually create a /usr/sap//SYS/exe/backup_run and copy all the files in /usr/sap//SYS/exe/run to it.

5. Copy all the files unCARed in step 2 to /usr/sap//SYS/exe/run. If prompted, overwrite all.

6. Change the owner of saposcol to root, sapdba & all br* files to ora, and all the rest to adm.

7. Start saposcol, the TNS listeners, and the SAP instance.

8. You have patched your UNIX SAP kernel. If you run into any problems starting your SAP instances, stop everything, rename the directories /usr/sap//SYS/exe/run to /usr/sap//SYS/exe/bad_run and /usr/sap//SYS/exe/backup_run to /usr/sap//SYS/exe/run to restore your old kernel.

No comments:

Post a Comment