How to Do a Manual Kernel Upgrade on SAP Server

Embed Size (px)

Citation preview

  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    1/8

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 1

    How to do a Manual KernelUpgrade of an SAP Server

    Applies to:

    SAP WEB Application server (release 2004 and previous releases).

    For more information, visit theJava homepage.

    Summary

    This article shows how to do a manual upgrade of an SAP kernel. With SAP releases prior to O4s, the kernelneeds 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.

    http://www.sdn.sap.com/irj/sdn/javaee5http://www.sdn.sap.com/irj/sdn/javaee5http://www.sdn.sap.com/irj/sdn/javaee5http://www.sdn.sap.com/irj/sdn/javaee5
  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    2/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 2

    Table of Contents

    Introduction ......................................................................................................................................................... 3Procedure: ....................................................................................................................................................... 3Step 1) Checks to be done before kernel upgrade ......................................................................................... 3Step 2) Download the latest kernel patch from SMP ...................................................................................... 4 Step 3) Uncar the .SAR files ........................................................................................................................... 5Step 4) Stop the J2EE Engine and the SAP OS Collector ............................................................................. 5Step 5) Take Backup of the present Kernel directory ..................................................................................... 5Step 6) Copy the new kernel files to the RUN folder location ......................................................................... 5 Step 7) Check the permissions of the files in the kernel directory .................................................................. 6Step 8) Start the J2EE Engine and the SAP OS Collector ............................................................................. 6Step 9) Check the latest Kernel level .............................................................................................................. 6

    Related Content .................................................................................................................................................. 7Copyright ............................................................................................................................................................. 8

  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    3/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 3

    Introduction

    The SAP R/3 or J2EE engine kernel consists of executables that are directly used by the SAP processes, bythe database administration utilities, or by the installation programs etc. Some of these programs can be veryuseful even when the SAP system is down. However most of these executables can have severerepercussions on the server; so they must be executed carefully and by Administrators alone. The steps arethe same for J2EE or R/3 servers. In this case the steps for an ADD-IN server has been explained (howeveryou 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//SYS/exe/run

    Procedure:

    The steps to do kernel upgrade are listed below. Please note that if the server has additional instances , shutthem down before this activity. The SAPCPE process will make sure that once the kernel upgrade is done,the kernel files are in synch in all the locations.

    Step 1) Checks to be done before kernel upgrade

    a) Find the current version of the J2EE kernel

    In a standalone engine, execute the command disp+work -vto get the present kernel version

    The Present kernel level is 75 in this case.

    Incase the installation is an ADD-IN engine, use the R/3 SYSTEM->STATUSto get the present kernel level

    Alternatively, you can get lot more details from SM51->Release Notes

  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    4/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 4

    b) Note the Compilation mode from disp+work -v(here UNICODE)

    c) The Operating system BIT length.

    This can be found using "winmsd" (in windows) and "isainfo -v" or"uname -a" on unix servers. Also "tp -v" will give the OS bit length.

    Note: In an Add In J2EE engine, these values can be found by executing the report RSPARAM( orRSPFPAR) inSE38

    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. Pleasenote that if kernel version is wrong, then the engine will not start. So do make sure that the correct files are

    downloaded from SMP:

    http://service.sap.com/swdc

    --->Support Packages and Patches --->SAP NetWeaver---> SAP NETWEAVER---> SAP NETWEAVER 7.0(2004S) ---> Entry by Component---> Application Server Java--->SAP Kernel 7.00 32 bit UNICODEThere are 2 files to be downloaded from SMP:

    a) Database Independent Files

    This is of the nomenclature SAPEXE_-.SAR

    b) Database Dependent files

    This is of the nomenclature SAPEXEDB_-.SAR

    http://service.sap.com/swdchttp://service.sap.com/swdchttp://service.sap.com/swdc
  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    5/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 5

    Step 3) Uncar the .SAR files

    Uncar the files using the SAPCAR utility and store it in a directory. Use the command:

    SAPCAR -xvf

    Note: SAPCAR is a program executable located in the KERNEL folder itself. If SAPCAR is not working, then copy theexecutable from the kernel folder to the location where the .SAR files are located.

    Step 4) Stop the J2EE Engine and the SAP OS Collector

    Stop the J2EE Engine (from the MMC/ JCMON ) along with the SAPOSCOL service.

    In windows, stop the SAPOSCOL service (Start-> run-> services.msc)

    In Unix servers, use the command:

    saposcolk

    Note: SAPOSCOL service should be stopped because it also will get overwritten by the new file. Also, in UNIX servers,

    the owner of SAPOSCOL service is the user "root". In this case, you will have to login as "root" user and stop theservice.

    Step 5) Take Backup of the present Kernel directory

    Copy the present kernel folder safely. This is important because the activity is completely reversible andswitching over to the old kernel will be possible.

    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.

    Note: Do not delete any files in the run directory. 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 forwhich the new version is not available.In Unix servers, use the copy command for this - "cp"

    cp -R

  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    6/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 6

    Step 7) Check the permissions of the files in the kernel directory

    The Database independent files such as "brtools", "brbackup", "R3load" etc. will usually have SID asthe owner. In such cases, the owner of the files needs to be changed using the "CHOWN" command to theappropriate user.

    chown [-R] newowner filenamesAlso for added security, sticky bit can be applied on the directory. This means that only the file owner and thesuperuser may remove files from that directory.

    Chmod permissions filename

    Step 8) Start the J2EE Engine and the SAP OS Collector

    Now the kernel patching activity is complete. The J2EE Engine can be started now (from the MMC/ JCMON )along with the saposcol service.

    In windows, start the SAPOSCOL service (Start-> run-> services.msc)

    In Unix servers, use the command:

    saposcoll

    Step 9) Check the latest Kernel level

    Execute the command disp+work -vto get the new kernel level

    The SAP J2EE Engine has been successfully patched to level 102 from level 95.

    Also run the command R3Trans -dto check if database connection too is fine.

  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    7/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 7

    Related Content

    1) In a J2EE engines on level NW O4s and above, kernel upgrades can be performed using the JSPMtool as well. Please have a look at the excellent video post for this:

    LINK

    2) SAP NetWeaver 7.x Kernel Updates Explained

    LINK

    https://weblogs.sdn.sap.com/pub/wlg/11219https://weblogs.sdn.sap.com/pub/wlg/11219http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1705073050DB00088781937196779863End?blog=/pub/wlg/4595http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1705073050DB00088781937196779863End?blog=/pub/wlg/4595http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1705073050DB00088781937196779863End?blog=/pub/wlg/4595https://weblogs.sdn.sap.com/pub/wlg/11219
  • 7/31/2019 How to Do a Manual Kernel Upgrade on SAP Server

    8/8

    How to do a Manual Kernel Upgrade of an SAP Server

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG 8

    Copyright

    Copyright 2009 SAP AG. All rights reserved.

    No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.The information contained herein may be changed without prior notice.

    Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

    Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

    IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,

    iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.

    Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

    Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe SystemsIncorporated in the United States and/or other countries.

    Oracle is a registered trademark of Oracle Corporation.

    UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

    Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks ofCitrix Systems, Inc.

    HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, MassachusettsInstitute of Technology.

    Java is a registered trademark of Sun Microsystems, Inc.

    JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented byNetscape.

    SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentionedherein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.

    Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, andother Business Objects products and services mentioned herein as well as their respective logos are trademarks or registeredtrademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.

    All other product and service names mentioned are the trademarks of their respective companies. Data contained in this documentserves informational purposes only. National product specifications may vary.

    These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAPGroup") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or

    omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in theexpress warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting anadditional warranty.