cancel
Showing results for 
Search instead for 
Did you mean: 

run dpmon script from individual accounts....

Former Member
0 Kudos

I need to give access to execute dpmon from user account who sont have <sid>adm user authorization...

I am not sure to set the env variables.....or there is any give this permission .

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

You need to

- add the PATH of dpmon to the PATH of the user

- add the LD_LIBRARY_PATH to the users environment

- set SAPSYSTEMNAME

The easiest way would be to copy the appropriate .sapenv_<hostname>.csh or .sapenv_<hostname>.sh to the users directory.

Markus

Former Member
0 Kudos

Thnks for the response Markus,

I have added the below commands in user's .profile file and copied the .env_hostname.sh file in to the user

home directory.

PATH =/sapmnt/<SID>/exe

export PATH

LD_LIBRARY_PATH =/sapmnt/<SID>/exe

Export LD_LIBRARY_PATH

SAPSYSTEMNAME = <SID>

export SYSTEMNAME

But its not working and got error after login to the screen

.profile[6]: PATH: not found.

.profile[9]: LD_LIBRARY_PATH: not found.

.profile[10]: Export: not found.

.profile[12]: SAPSYSTEMNAME: not found.

[YOU HAVE NEW MAIL]

I tried to run dpmon from user account but its giving the below error:

DpMonInit failed - possibly no dispatcher running

DpMon: External/Internal dplib version: 109/232

If there is any way to set the add the above variables other thatn adding in .profile file / any other changes need to do for <sid>adm env ?.

Thanks,

Nag.

markus_doehr2
Active Contributor
0 Kudos

What shell does this user use?

Markus

Former Member
0 Kudos

It is Kshell.

I have done the setting above variables in .profile.I can see in env using /bin/env from my user account.

I have copied the .sap_env... script in to my user account,but my doubt is it is not accessing the <sid>adm user env variables.

Nag.

markus_doehr2
Active Contributor
0 Kudos

You need to make the user execute the .sapenv* profile.

Check the .profile of the <sid>adm - and copy those settings also.

Markus

Former Member
0 Kudos

Markus,

I tried this,below is the script contains in adm>.profile and is written in Cshell.

.......................................................

  1. SAP environment

if [ -f $HOME/.sapenv_`hostname`.sh ]; then

. $HOME/.sapenv_`hostname`.sh

elif [ -f $HOME/.sapenv.sh ]; then

. $HOME/.sapenv.sh

fi

.................................................

But user env is in kshell.Any way I have coverted the same if condition into into kshell and not triggered any error after login.But it's not accessing the adm env . at user account.send me the above loop in kshell so that I will correct if any thing wrong from side.I feel if there is any problem with prmissions.After copying the script in to user home it is showing user as the owner of the script.Its not allowing to change owner as sidadm.

Thanks,

Nag.