DevOps and System Administration Discussions
Dive into SAP DevOps and system administration. Join discussions to collaborate on optimizing workflows, share knowledge, and leverage resources effectively.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to change environment variables in unix ?

0 Kudos
3,614

Hello All ,

How can we change environmental variables in sap ?

Would like to change ORACLE_HOME=/oracle/SID/112_64 to ORACLE_HOME=/oracle/SID/121.

Please suggest .

Thanks .

Naresh

1 ACCEPTED SOLUTION

dasistdochscheisse
Active Participant
0 Kudos
1,650

For Linux OS

Log on as the user for which you want to change the variable

Go to your home directory by entering "cd"

Enter "grep ORACLE_HOME .*"

Now you can see all occurences of ORACLE_HOME in the relevant files

Edit all files and change the entry to the desired value

Log off and on again

On Linux/Unix, the SAP users (sidadm, orasid) use the c-shell. A temporary change can be done by entering "setenv ORACLE_HOME <New value". The export command is used in another shell.

For Windows OS it depneds on the windows version, just do a google search on "Windows <Version> change environment variable".

View solution in original post

6 REPLIES 6

mrwong05
Participant
1,650

https://www.cyberciti.biz/faq/set-environment-variable-unix/

at the command line level you can use:

export ORACLE_HOME=/oracle/SID/112_64 to ORACLE_HOME=/oracle/SID/121

If this is a reoccuring need, you should add this line to your bash .profile on the unix machine.

Your question is vague as to what you have access to.

0 Kudos
1,650

Tq Matthew

dasistdochscheisse
Active Participant
0 Kudos
1,651

For Linux OS

Log on as the user for which you want to change the variable

Go to your home directory by entering "cd"

Enter "grep ORACLE_HOME .*"

Now you can see all occurences of ORACLE_HOME in the relevant files

Edit all files and change the entry to the desired value

Log off and on again

On Linux/Unix, the SAP users (sidadm, orasid) use the c-shell. A temporary change can be done by entering "setenv ORACLE_HOME <New value". The export command is used in another shell.

For Windows OS it depneds on the windows version, just do a google search on "Windows <Version> change environment variable".

rishi_singh3
Participant
0 Kudos
1,650

Update environment paremeter in file .dbenv.csh at location /home/SIDADM

rishi_singh3
Participant
0 Kudos
1,650

Update environment paremeter in file .dbenv.csh at location /home/SIDADM

0 Kudos
1,650

Thanks Rishi