Vous êtes sur la page 1sur 2

Apply Kernel Patch

1. Patch level commands (display): a. As the {sid}adm user execute # disp+work v


lxsap230:rq1adm> disp+work -v -------------------disp+work information -------------------kernel release kernel make variant DBMS client library DBSL shared library version compiled on compiled for compilation mode compile time update level patch number source id --------------------supported environment --------------------database (SAP, table SVERS) DBMS server DB6 08.02.* DB6 09.* operating system HP-UX B.11 b. Alternatively from the SAPgui ring menu use (* also has the Sup. Pkg lvl. Indication. SYSTEM > STATUS > then Click the Other Kernel Info button:

701 701_REL DB6_81 700.08 HP-UX B.11.23 U ia64 for hpia64 64 BIT UNICODE May 23 2010 21:55:31 0 94 Support Pkg level 0.094

700 701

2. Download the latest kernel patch and uncar the SARs. a. Download

3.

4. 5.

6. 7.

8.

http://service.sap.com.swdc Support Packages and Patches > SAP Netweaver > SAP Netweaver 7.0 > Entry by Component > App Server Java > etc There are two (2) files to be downloaded: SAPEXE_{patch level}{release date}.SAR SAPEXEDB_{patch level}{release date}.SAR b. Move the SAR files to a large work directory on the central instance c. As {sid}adm user SAPCAR_xx xvf {sarfile.SAR} files i. SAPCAR_xx is a copy of the old SAPCAR. ii. Copy the old SAPCAR from existing /usr/sap/{sid}/SYS/exe/run/ but give it an alternate name so you can delete it later (theres always a new SAPCAR delivered with the new kernel release) d. After both files are SAPCARd (or uncard) delete the SAPCAR_xx as referenced in the ii. step above. e. Correct ownership of the uncard files i. chown R {sid}adm:sapsys * 1. * is the uncard files (in that directory/subdirectory) Stop SAP (on all servers if there are app servers associated with the central insance). a. Log in as {sid}adm user b. Command: # stopsap r3 OR # stopsap (if no r3 then database will be stopped as well) i. Wait for final messages about SAP stopped. c. Command: # saposcol k i. This will stop the SAP collector program which also gets overwritten with kernel patch Backup the current kernel directory a. Change directory to /sapmnt/{SID}/exe b. Command: tar cvf - * | gzip/compress | dd of=/backup/{SID}kernel_date.tgz Copy the new kernel files to the EXE folder a. Do NOT delete any of the files in the EXE folder b. Still in the EXE folder c. Cmnd: cp pr /{dirpath}/{uncar file directory}/* i. pr preserves the file time stamps, permissions, and makes the copy recursive through all source subdirectories to target subdirectories. Confirm the execute permissions on the files in the EXE directory and the ownership of the files. Start SAP system up again still as {sid}adm user a. Startsap (wait for all messages to complete) b. If saposcol needs to be started separately i. Saposcol l Check the new kernel level (see step 1 above)

Recovery If we need to revert to the prior SAP kernel 9. Stop sap (stopsap r3)
10.

dd

if=/{dirpath}/{SID}kernel_date.tgz | gunzip/uncompress | tar xvf

11. 12.

Start sap (startsap) Recheck the kernel level (step 1 again)

Vous aimerez peut-être aussi