How to do a Manual Kernel Upgrade of an SAP Server

Applies to:
SAP WEB Application server (release 2004 and previous releases). For more information, visit the Java homepage.

Summary
This article shows how to do a manual upgrade of an SAP kernel. With SAP releases prior to O4s, the kernel needs to be upgraded manually as the JSPM process is not available. This guide can be used for standalone ABAP servers, standalone JAVA servers and ADD-In servers as well. Author: Hemanth Kumar

Company: SAP Created on: 29 September 2009

Author Bio
Hemanth is a senior software engineer, working in SAP for the last 3½ years.

SAP COMMUNITY NETWORK © 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

...com | BPX ......................com | BOC ................................................................................. 5 Step 7) Check the permissions of the files in the kernel directory . 6 Step 9) Check the latest Kernel level ........SAR files .......... 3 Step 2) Download the latest kernel patch from SMP .................................................................How to do a Manual Kernel Upgrade of an SAP Server Table of Contents Introduction .......................................................................................................................................................sap..............................................................................................bpx................. 3 Step 1) Checks to be done before kernel upgrade ............................................................................................................ 8 SAP COMMUNITY NETWORK © 2009 SAP AG SDN ... 6 Related Content .............................................................................................. 4 Step 3) Uncar the ............................................................................................... 3 Procedure: ...sap...................sdn............... 5 Step 4) Stop the J2EE Engine and the SAP OS Collector ............................................................... 7 Copyright...............................sap......................................................................................................... 5 Step 6) Copy the new kernel files to the RUN folder location .......................................................................................................................................................................................................com 2 ................... 6 Step 8) Start the J2EE Engine and the SAP OS Collector ............boc.................................................. 5 Step 5) Take Backup of the present Kernel directory ........................................................................................................................................

you can get lot more details from SM51->Release Notes SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BPX . Some of these programs can be very useful even when the SAP system is down. so they must be executed carefully and by Administrators alone. However most of these executables can have severe repercussions on the server. execute the command disp+work -v to get the present kernel version The Present kernel level is 75 in this case.sap. Incase the installation is an ADD-IN engine. Step 1) Checks to be done before kernel upgrade a) Find the current version of the J2EE kernel In a standalone engine. shut them down before this activity.boc.bpx. Please note that if the server has additional instances .How to do a Manual Kernel Upgrade of an SAP Server Introduction The SAP R/3 or J2EE engine kernel consists of executables that are directly used by the SAP processes. the kernel files are in synch in all the locations.sap. use the R/3 SYSTEM->STATUS to get the present kernel level Alternatively. In this case the steps for an ADD-IN server has been explained (however you can adapt this to your need if the server is a standalone java /abap one) In a standard standalone SAP server the kernel or runtime directory is /usr/sap/<SID>/SYS/exe/run Procedure: The steps to do kernel upgrade are listed below. The steps are the same for J2EE or R/3 servers.sdn. The SAPCPE process will make sure that once the kernel upgrade is done.com 3 . or by the installation programs etc.sap. by the database administration utilities.com | BOC .

sap.sap.sap. So do make sure that the correct files are downloaded from SMP: http://service.bpx.00 32 bit UNICODE There are 2 files to be downloaded from SMP: a) Database Independent Files This is of the nomenclature SAPEXE_<Patch level>-<release date>. Also "tp v" will give the OS bit length. these values can be found by executing the report RSPARAM ( or RSPFPAR) in SE38 Step 2) Download the latest kernel patch from SMP Navigate to the below path (or search) to find the files for the OS bit length and compilation mode. Please note that if kernel version is wrong.SAR SAP COMMUNITY NETWORK © 2009 SAP AG SDN .How to do a Manual Kernel Upgrade of an SAP Server b) Note the Compilation mode from disp+work -v (here UNICODE) c) The Operating system BIT length.0 (2004S) ---> Entry by Component---> Application Server Java--->SAP Kernel 7.com | BOC . Note: In an Add In J2EE engine. This can be found using "winmsd" (in windows) and "isainfo -v" or "uname -a" on unix servers.com/swdc --->Support Packages and Patches --->SAP NetWeaver ---> SAP NETWEAVER---> SAP NETWEAVER 7.com | BPX .boc. then the engine will not start.sdn.sap.com 4 .SAR b) Database Dependent files This is of the nomenclature SAPEXEDB_<Patch level>-<release date>.

Step 4) Stop the J2EE Engine and the SAP OS Collector Stop the J2EE Engine (from the MMC/ JCMON ) along with the SAPOSCOL service. the owner of SAPOSCOL service is the user "root". This is because there may be some files which may not have been changed in the latest kernel patch and they should still be present in the RUN folder. This will retain the old files for which the new version is not available. This is important because the activity is completely reversible and switching over to the old kernel will be possible.com | BPX . Use the command: SAPCAR -xvf <filename. In this case.sap.sap. In Unix servers."cp" cp -R <source file > <destination> SAP COMMUNITY NETWORK © 2009 SAP AG SDN . use the command: saposcol –k Note: SAPOSCOL service should be stopped because it also will get overwritten by the new file.boc. use the copy command for this . If SAPCAR is not working.sap.SAR files are located.SAR> Note: SAPCAR is a program executable located in the KERNEL folder itself.sdn. in UNIX servers.com 5 . Note: Do not delete any files in the run directory.SAR files Uncar the files using the SAPCAR utility and store it in a directory. In windows.bpx. Also. stop the SAPOSCOL service (Start-> run-> services. Step 6) Copy the new kernel files to the RUN folder location Copy the files in such a manner that the RUN folder is overwritten by the new files.How to do a Manual Kernel Upgrade of an SAP Server Step 3) Uncar the . you will have to login as "root" user and stop the service. then copy the executable from the kernel folder to the location where the . Step 5) Take Backup of the present Kernel directory Copy the present kernel folder safely.msc) In Unix servers.com | BOC .

How to do a Manual Kernel Upgrade of an SAP Server Step 7) Check the permissions of the files in the kernel directory The Database independent files such as "brtools".msc) In Unix servers.sap.sdn. "R3load" etc. start the SAPOSCOL service (Start-> run-> services.boc. sticky bit can be applied on the directory. The J2EE Engine can be started now (from the MMC/ JCMON ) along with the saposcol service. "brbackup".com | BPX .bpx. the owner of the files needs to be changed using the "CHOWN" command to the appropriate user. This means that only the file owner and the superuser may remove files from that directory. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BOC . will usually have <DB>SID as the owner. In windows. Chmod <1>permissions filename Step 8) Start the J2EE Engine and the SAP OS Collector Now the kernel patching activity is complete.com 6 .sap. use the command: saposcol –l Step 9) Check the latest Kernel level Execute the command disp+work -v to get the new kernel level The SAP J2EE Engine has been successfully patched to level 102 from level 95. Also run the command R3Trans -d to check if database connection too is fine. chown [-R] newowner filenames Also for added security. In such cases.sap.

sap.bpx.com | BOC .com 7 .boc.sap.sdn.How to do a Manual Kernel Upgrade of an SAP Server Related Content 1) In a J2EE engines on level NW O4s and above.com | BPX .x Kernel Updates Explained LINK SAP COMMUNITY NETWORK © 2009 SAP AG SDN . kernel upgrades can be performed using the JSPM tool as well.sap. Please have a look at the excellent video post for this: LINK 2) SAP NetWeaver 7.

Intelligent Miner. System z.sap. System p5. BladeCenter. Massachusetts Institute of Technology. PowerPC. OSF/1. All other product and service names mentioned are the trademarks of their respective companies. xSeries. and SAP Group shall not be liable for errors or omissions with respect to the materials. and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. World Wide Web Consortium. used under license for technology invented and implemented by Netscape. Program Neighborhood. System i5. Parallel Sysplex. Inc. SAP Business ByDesign. z9. XML. OS/2. POWER. SAP. GPFS.boc. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only.sap. The information contained herein may be changed without prior notice. System z10. RACF. Acrobat. OS/390.A. Duet. PostScript. and MultiWin are trademarks or registered trademarks of Citrix Systems. PowerVM. Linux is the registered trademark of Linus Torvalds in the U. X/Open. Business Objects is an SAP company. RETAIN. iSeries. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. JavaScript is a registered trademark of Sun Microsystems. Xcelsius. OS/400. if any.S. Power Architecture. zSeries. OpenPower. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . IBM. POWER5+. BatchPipes. MVS/ESA. Business Objects and the Business Objects logo. DB2. Java is a registered trademark of Sun Microsystems. Excel.How to do a Manual Kernel Upgrade of an SAP Server Copyright © Copyright 2009 SAP AG. in the United States and in other countries. Nothing herein should be construed as constituting an additional warranty. and other countries. pSeries. WebSphere. VideoFrame. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. Data contained in this document serves informational purposes only. Windows. Crystal Reports. SAP NetWeaver. These materials are subject to change without notice.. HACMP.sap. BusinessObjects. Inc. National product specifications may vary. Microsoft. and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. S/390 Parallel Enterprise Server. System z9. Adobe. Redbooks. Inc.com 8 .bpx. z/OS. All rights reserved. and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S. Crystal Decisions. Citrix.sdn. AS/400. Oracle is a registered trademark of Oracle Corporation. Outlook. System x. HTML. Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. ICA.com | BOC . DB2 Connect. WinFrame. XHTML and W3C are trademarks or registered trademarks of W3C®. and PowerPoint are registered trademarks of Microsoft Corporation. MetaFrame. ByDesign. R/3. i5/OS. z10. eServer. z/VM. AIX. System Storage. and Motif are registered trademarks of the Open Group. POWER5. POWER6+. Web Intelligence. POWER6. Netfinity.com | BPX . System i. the Adobe logo. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services. UNIX. S/390. PartnerEdge. DB2 Universal Database. without representation or warranty of any kind. System p.

Sign up to vote on this title
UsefulNot useful