cancel
Showing results for 
Search instead for 
Did you mean: 

Environment variable

Former Member
0 Kudos

Hi friends,

How to check whether we set the following environment

variable

DIR_LIBRARY = /usr/sap/<SID>/SYS/exe/run

I could see at the SAP level under AL11 which is as DIR_LIBRARY = /usr/sap/<SID>/DVEBMGS/exe(but i am not sure whether i am right )

If it is not set , do i need to set at AL11 or if it is under UNIX how do i need to set.

Please help friends.

anuroop

Accepted Solutions (0)

Answers (3)

Answers (3)

nelis
Active Contributor
0 Kudos

bit late but nevertheless...

How to check whether we set the following environment

variable

DIR_LIBRARY = /usr/sap/<SID>/SYS/exe/run

Type 'env' when you are logged in to display the set environment variables for that user.

Edit: oops, see RK had already mentioned it. can't delete my message hmm...

Edited by: Nelis Lamprecht on Jun 12, 2008 11:06 AM

Former Member
0 Kudos

Anurrop,

Use ls -altr command at unix level to get a view of all the .XXXX files in the users home directory.

Regards,

Satish

Former Member
0 Kudos

Hi all,

Please help.

I will reward points definetely.

thanks

Former Member
0 Kudos

Hi Anuroop,

That is a parameter that you can set on the instance profile using RZ10, you can check the value directly on AL11 or using the program RSPARAM.

That is also a variable used on the startup profile for the Central Service Instace and also a enviroment variable assigned to <sid>adm.

As far as I know you only need to set it as enviroment variable for <sid>adm, anyway that should be set by the installation poiting to sym-link /usr/sap/<SID>/SYS/exe

Zareh

Former Member
0 Kudos

It's in <SID>adm's environment files. Check .dbenv_hostname.csh (or .sh) & .sapenv_hostname.csh (or .sh). At the unix command prompt, type "env | grep DIR_LIBRARY" or type "echo $DIR_LIBRARY"

-RK

former_member227600
Contributor
0 Kudos

Hi ,

Set these enviornment in /home/<sid>adm directory .There are two files

.sapenv_<hostname>.csh

.sapenv_<hostname>.sh

.dbenv_<hostname>.csh

.dbenv_<hostname>.sh

Use vi editor command for this.

Ex:- vi .sapenv_<hostname>.csh

Thanks & Regards

karan

Former Member
0 Kudos

i went in directory env | grep DIR_LIBRARY, but couldn't ffind the sapenv_<hostname>.csh files.

Please help me

markus_doehr2
Active Contributor
0 Kudos

The file name is with a leading dot ".sapenv_..." and it is in the home directory of the <sid>adm user.

Markus

Former Member
0 Kudos

But i don't see the file in <sid> adm user.

former_member227600
Contributor
0 Kudos

Hi Anup,

Try the following command from root.

  1. cd home/<sid>adm where sid is your sap system I.D.

And than give the following command

  1. ls

I think it can help you

Regards

Karan

Edited by: karan Singh on May 31, 2008 8:10 AM