0% found this document useful (0 votes)
101 views

Kernel Upgrde Win2k

The document provides instructions for upgrading the kernel of an SAP R/3 system running on Windows 2000. It outlines prerequisites, preparation steps, and a detailed upgrade procedure. The procedure involves downloading the new kernel, verifying files, stopping services, replacing the old kernel with the new one, and post-upgrade validation steps like checking logs and processes. Special care is taken to ensure services are stopped before replacing files and that the new kernel version and processes start correctly.

Uploaded by

manjukn
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views

Kernel Upgrde Win2k

The document provides instructions for upgrading the kernel of an SAP R/3 system running on Windows 2000. It outlines prerequisites, preparation steps, and a detailed upgrade procedure. The procedure involves downloading the new kernel, verifying files, stopping services, replacing the old kernel with the new one, and post-upgrade validation steps like checking logs and processes. Special care is taken to ensure services are stopped before replacing files and that the new kernel version and processes start correctly.

Uploaded by

manjukn
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Legacy systems:

Chapter:
Section:
Subsection:

kernel upgrade R/3 + WIN2K

Capgemini : SAP TCC Basis Support


Technical
Technical Documents

Document Author:
Date Created:
Version:

Web link: http://domino.eu.mars/isi/COMR3DOC.NSF/$WEBAllDocsByKey/C2EC64CCD0FF90D2C3257375004FC217?


OpenDocument

Body:

KERNEL UPGRADE PROC


FOR R/3 + Win2K

Prerequisites
SAP system
SAP system version
Kernel current version
Kernel version after upgrade
New kernel location
New kernel file name
SAP existing kernel location
SGEN processing needed
Outage date and time
CIP leader

SAP R/3 4.6C

d:\usr\sap\%ORACLE_SID%\sys\exe\run
NOT NEEDED
Naumenko Dmitry

Skills required
SAP basis
Win2K operating system

Useful OSS notes


Installing 4.6D R/3 kernel in 4.6A/B/C SAP Systems
Released operating systems SAP kernel 4.6x ORACLE
Downloading SAP kernel patches

318846
156548
19466

Preparation stage (only by CIP leader)


CIP leader should perform the following.
1)
2)
3)
4)
5)
6)

Order outage and get approval from system owner


Ensure that system has successful backup
Download new kernel SAP OSS site
Unpack kernel, then create single kernel archive file (sapcar -cvf file.CAR . )
Upload single kernel archive to SAP TCC DEPOT
Check procedure and update if needed

UPGRADE PROCEDURE
A. Introduction
The Windows-based SAP Kernel means all executable programs located in
D:\usr\sap\%ORACLE_SID%\sys\exe\run
If you prefer to use network path then it is:
\\<SAP HOST>\sapmnt\%ORACLE_SID%\sys\exe\run

B. Requirements
Accesses needed:
SAP R/3
: normal user in order to test the system after new Kernel installation
Windows OS
: <sid>adm (it usually has administrator's right)
SAPTCC DEPOT : FTP access for kernel files download

C. Pre-upgrade actions
Please perform pre-upgrade actions in advance, before outage.

This part takes a lot of time for kernel copy to application server!
1) Logon SAP host using Terminal services client as sidadm
2) Run Windows explorer
3) Open folder D:\usr\sap\%ORACLE_SID%\sys\exe
4) Make a backup copy of directory run (it contains existing SAP kernel)
5) Run Windows command prompt and copy new kernel from SAPTCC DEPOT to SAP host
with the following commands:
d:
cd D:\usr\sap\%ORACLE_SID%\sys\exe
Delete directory from previous upgrade (if exists):
rmdir new_kernel
Create new directory for new kernel archives:
mkdir new_kernel

cd new_kernel
Copy new kernel archives from SAPTCC depot using FTP:
ftp mou042.na.mars
You will be asked for user and password. Use sidadm for SGU SAP system:

6) Using FTP commands download new kernel files:


binary
cd <new_kernel_location>
(see prerequisites to know new kernel path)
get <new_kernel_file_name>
(see prerequisites to know new kernel file name)
bye
very important to execute binary command before downloading, else you will get wrong data via FTP!

7) Ensure that downloaded CAR/SAR files can be unpacked successfully. To do this use the following
commands:
d:
cd D:\usr\sap\%ORACLE_SID%\sys\exe\new_kernel
mkdir test

cd test
Try to unpack new kernel:
SAPCAR -xvf ../<new_kernel_file>
If you get error messages during unpacking of certain file - download it once more from SAPTCC_depot,
and check release of SAPCAR utility (download new one from SAP OSS site if needed).
After all files are unpacked OK - delete test directory:
cd D:\usr\sap\%ORACLE_SID%\sys\exe\new_kernel
rmdir /S test

8) Try to logon SAP system, check that your personal ID is working.

D. Kernel Upgrade Procedure


1) Stop CCMS only alerting, link: (please pay attention - Windows R/3 servers are not included into ESM alerting ! )
2) Logon SAP host using Terminal services client as sidadm
3) Stop SAP system and Oracle, use start/stop instructions from SAPTCC database.
4) When you upgrade to the new kernel, problem with the statistics collector might occur. Therefore, please delete
the stat file: d:\usr\sap\%ORACLE_SID%\<INSTANCE>\data\stat.* using Windows Explorer.
5) Using Windows Explorer copy file sapcar.exe from D:\usr\sap\%ORACLE_SID%\sys\exe\run
to D:\usr\sap\%ORACLE_SID%\sys\exe\new_kernel
directory.
6) Unpack new kernel (see pre-requisites to know new kernel file name). Issue in command prompt:
D:
cd D:\usr\sap\%ORACLE_SID%\sys\exe\run
dir
..\new_kernel\sapcar.exe -xvf ..\new_kernel\<new_kernel_file>
If you get a warning that some files cannot be replaced by new ones during unpacking - check
that ALL SAP services are really stopped.
7) Start SAP system (use start/stop instructions from SAPTCC database)
If SAP services or SAP system won't start, or you can't logon SAP system you should do these steps:
A. Stop all SAP services
B. Make a backup copy of directory d:\usr\sap\%ORACLE_SID%\sys\exe\run
C. Restore old kernel from backup made during pre-upgrade actions. Old kernel files should be resided

into directory d:\usr\sap\%ORACLE_SID%\sys\exe\run

E. Post-Upgrade activities
1) Logon SAP system
2) Check system log in SM21 for error messages
3) Check SM50 and make sure all the work processes have started
4) Check SAP kernel status. Use menu "System -> Status".
Example for PM3 upgraded to patchlevel 2335:

Ensure that kernel release and patchlevel are correct (see pre-requisites to know new kernel release and patchlevel).
5) Logon SAP host using Terminal services client as sidadm
6) Check the transport prorgamms:
d:
cd d:\usr\sap\trans\bin
dir
tp connect %ORACLE_SID% pf=PROFILE (for example
cd d:\temp
R3trans -dv

tp connect NC4 pf=TP_DOMAIN_NC4.PFL)

(create temp directory if not exists)


- please do not use Windows clipboard for running this command, type it by hands

Should return 0000 return code.


Check Trans.log if return code differs from 0000.
7) Check brtools and database connectivity:
brconnect -u / -c -f check
8) Notify CIP leader (see pre-requisites) about completion of kernel upgrade.
9) Enable alerting:
Kernel upgrade complete.

You might also like