cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply kernel patch in HP-UX/Oracle???

d_dimas75
Participant
0 Kudos

Hi to all,

i need to update the Kernel in HP-UX/Oracle but this system is black box to me... Can anyone provide me a detailed procedure on how to apply the "sapexe and sapexedb" patches?

Thank you,

Dimitris

Accepted Solutions (1)

Accepted Solutions (1)

nicholas_chang
Active Contributor
0 Kudos

Hi,

I believe you can find much info if you google around.

You can use below as reference:

http://scnblogs.techweb.com.cn/daemon/archives/66.html

http://it.toolbox.com/wiki/index.php/How_to_update_SAP_Kernel

Cheers,

Nicholas Chang

d_dimas75
Participant
0 Kudos

Thank you Nicholas.

the links are helpful but i need more detailed procedure.

Dimitris

Former Member
0 Kudos

Dear Dimitris,

you can follow the below steps to perform kernel patching:

Step 1)Find the current version by executing disp+work -v at oslevel

can also check in sap under status.

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, 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 UNICODE

There are 2 files to be downloaded from SMP:

a) Database Independent Files

This is of the nomenclature SAPEXE_<Patch level>-<release date>.SAR

b) Database Dependent files

This is of the nomenclature SAPEXEDB_<Patch level>-<release date>.SAR

Step 3) Uncar the .SAR files

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

Use the command:SAPCAR -xvf <filename.SAR>

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

Step 4)

     a. stop SAP system including saposcol

     b. Change to the directory /sapmnt/<SAPSID>/exe

     c. Save the old kernel with the following commands

       mkdir oldkernel

          cp -p * oldkernel

          su - root

          chown <sapsid>adm /sapmnt/<SAPSID>/exe/*

          exit

step 5)copy the extracted SAR files to /sapmnt/<SAPSID>/exe in overwrite mode using command cp -R<source_file><destination>

step 6) switch user to root and execute the svript saproot.sh

     su - root

           cd /sapmnt/<SAPSID>/exe

           ./saproot.sh <SAPSID>

           exit

step 7) start the system and check the current version.

Hope this helps you....experts correct me if any thing wrong.

@Dimitris...let  me know if any queries...

Regards,

Veeresh K R

Answers (1)

Answers (1)

former_member189546
Active Contributor
0 Kudos

Hello,

Check note 19466

1. Check the value of DIR_CT_RUN in the CI.                                 

2. I recommend you unpack the the kernel patch files SAPEXE.SAR and           

SAPEXEDB.SAR  to a temporary directory.                                       

3. Stop all the SAP system with all the instances and                         

all OS-level services of all instances.                                       

4. Backup the kernel that is in the path of the DIR_CT_RUN parameter.         

5.Copy  the new kernel from the temporary directory to the directory          

indicated by the parameter DIR_CT_RUN.                                        

"Because DIR_CT_RUN of the central instance is linked to the                  

corresponding directory on the global host which is accessible from all       

hosts in the cluster, the updates will be distributed by SAPCPE when the      

instances start as explained"                                                

6. Restart the SAP system.  

regards,

John Feely