Problem with .bash_profile [message #423859] |
Mon, 28 September 2009 13:55 |
dasuwal@gmail.com
Messages: 20 Registered: June 2009
|
Junior Member |
|
|
Hi Forum
After logging as oracle user on Linux Box, the environment variables ( eg- Oracle_home, path, oracle_base) dont get their values as mentioned in .bash_profile.
Every time, I have to manually execute profie to reset variables as:
. ./.bash_profile
The contents of my .bash_profile are as below:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#PATH=$PATH:$HOME/bin
#export PATH
#unset USERNAME
ORACLE_BASE=/home/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=/home/oracle/app/oracle/product/11.1.0/db_1; export ORACLE_HOME ORACLE_SID=orcl; export ORACLE_SID
PATH=$PATH:$HOME/bin:/bin:/home/oracle/app/oracle/product/11.1.0/db_1/bin:; export PATH
#umask 022
Please let me know if I need to add some entry somewhere.
Thanks,
Danny.
|
|
|
|