|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
setting path in local.profile file
hi all,
can anybody help me out in this.. I installed Oracle on HP-UX and i want sql to be loaded from any directory when i type "sqlplus" i set the path in PATH variable as PATH=/usr/oracle/bin:$PATH export PATH ORACLE_HOME=/usr/oracle export ORACLE_HOME and sqlplus is working fine. but when iam closing the console and opening again sqlplus is not working. how to set the path in local.profile file so that i dont need to change the path again and again.. i did the same in local.profile file, but it is not working? help me out Thanks, Kalyan |
|
#2
|
|||
|
|||
|
When you execute .profile, is it during login?
What you are really saying is that the envrionment variables, like ORACLE_HOME, are not being found. Put this: Code:
PATH=/usr/oracle/bin:$PATH export PATH ORACLE_HOME=/usr/oracle export ORACLE_HOME inside the .profile that lives in your login directory. Assuming you use the ksh shell. If you do not know what shell you use, this: Code:
kalyanr:*:356:104:Kalyan Raj:/home/kalyanr:/usr/bin/ksh is a simulated record for you in /etc/passwd This user has the Korn shell -- /usr/bin/ksh The file you change is different for bash and csh and tcsh |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > setting path in local.profile file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|