cancel
Showing results for 
Search instead for 
Did you mean: 

kernel upgrade...error bash: SAPCAR: command not found

Former Member
0 Kudos

hi all

i have download kernel patch 201 for SAP on solaris 10, when i unpavk it generate error

bash: SAPCAR: command not found

root@devsap # cd kernel_patch/

root@devsap # ls

SAPEXEDB_201-20001000 SAPEXEDB_201-20001000.SAR

root@devsap # SAPCAR -xvf SAPEXEDB_201-20001000.SAR

bash: SAPCAR: command not found

plz guide me

regarde

imran

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

> i have download kernel patch 201 for SAP on solaris 10, when i unpavk it generate error

> bash: SAPCAR: command not found

>

> root@devsap # cd kernel_patch/

> root@devsap # ls

> SAPEXEDB_201-20001000 SAPEXEDB_201-20001000.SAR

> root@devsap # SAPCAR -xvf SAPEXEDB_201-20001000.SAR

> bash: SAPCAR: command not found

Yes - because the user "root" does not have SAPCAR in its path

Execute as

/usr/sap/<SID>/exe/SAPCAR -xvf ....

Markus

Former Member
0 Kudos

again same error

root@sapdev # SAPCAR -xvf /dump/newkernel_201/SAPEXE_201-20001810.SAR

bash: SAPCAR: command not found

root@sapdev # pwd

/sapmnt/DEV/exe

markus_doehr2
Active Contributor
0 Kudos

> again same error

>

> root@sapdev # SAPCAR -xvf /dump/newkernel_201/SAPEXE_201-20001810.SAR

> bash: SAPCAR: command not found

> root@sapdev # pwd

> /sapmnt/DEV/exe

yes - because you did not execute SAPCAR as I posted.

You have to give the FULL PATH for SAPCAR (not for the file to be extracted):

/usr/sap/<SID>/exe/SAPCAR -xvf SAPEXE....

Markus

Former Member
0 Kudos

there is no "exe" directory in /usr/sap/DEV

"exe" directory in /usr/sap/DEV/DVEBMGS00 and usr/sap/DEV/SYS,

which directory i will use

markus_doehr2
Active Contributor
0 Kudos

> there is no "exe" directory in /usr/sap/DEV

>

> "exe" directory in /usr/sap/DEV/DVEBMGS00 and usr/sap/DEV/SYS,

>

> which directory i will use

logon as <sid>adm

execute

which SAPCAR

use the full path listed.

Markus

Former Member
0 Kudos

sapcar is in /sapmnt/DEV/exe or /usr/sap/DEV/SYS/exe/run

1)stopsap & saposcol -k

2) i have successfully run

root@sapdev # /sapmnt/DEV/exe/SAPCAR -xvf /dump/newkernel_201/SAPEXEDB_201-20001829.SAR

root@sapdev # /sapmnt/DEV/exe/SAPCAR -xvf /dump/newkernel_201/SAPEXE_201-20001810.SAR

3)root@sapdev # cp -p /dump/kernel_backup/exe/saproot.sh /sapmnt/DEV/exe/

4)root@sapdev # cd /sapmnt/DEV/exe/

root@sapdev # ./saproot.sh DEV

everthing has successfully run

but when i logon DEVadm

start saposcol service it generate error

devadm> saposcol

open logfile '/usr/sap/tmp/dev_coll.tmp' failed... use stderri

05:11:24 15.06.2009 ERROR: cannot open log file /usr/sap/tmp/dev_coll.tmp

05:11:24 15.06.2009 ERROR: Make sure directory /usr/sap/tmp exists or specify DIR_PERF

05:11:24 15.06.2009 ERROR: in profile and run saposcol pf=<profile>

markus_doehr2
Active Contributor
0 Kudos

> root@sapdev # ./saproot.sh DEV

>

> everthing has successfully run

>

> but when i logon DEVadm

>

> start saposcol service it generate error

> devadm> saposcol

> open logfile '/usr/sap/tmp/dev_coll.tmp' failed... use stderri

> 05:11:24 15.06.2009 ERROR: cannot open log file /usr/sap/tmp/dev_coll.tmp

> 05:11:24 15.06.2009 ERROR: Make sure directory /usr/sap/tmp exists or specify DIR_PERF

> 05:11:24 15.06.2009 ERROR: in profile and run saposcol pf=<profile>

1. If you unpack the kernel as user "root" then all the kernel files are owned by that user - that is wrong. You have to do a "chown -Rf devadm:sapsys" for the exe directory and then execute saproot.sh again.

2. The error message is pretty clear, please check if the directory exists and what permissions it has.

Please first read the error messages and try to solve yourself before posting every step you take.

Markus

former_member204746
Active Contributor
0 Kudos

have you shutdown SAPOSCOL before try to update it?

also check if directory /usr/sap/tmp exist.

Former Member
0 Kudos

thanks Markus

there was owership problem on saposcol (sapmnt/SID/exe/saposcol)

saposcol owner was devadm:sapsys this is wrong

i change ownership of saposcol to root:sapsys

now kernel has been updated

thanks again

Best Regard Master

Imran Khan

Answers (0)