Home » Infrastructure » Linux » Problem with .bash_profile (Oracle 10.2.0.4, OEL 5)
Problem with .bash_profile [message #423859] Mon, 28 September 2009 13:55 Go to next message
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.
Re: Problem with .bash_profile [message #423868 is a reply to message #423859] Mon, 28 September 2009 16:34 Go to previous message
dasuwal@gmail.com
Messages: 20
Registered: June 2009
Junior Member
Making changes in bashrc solved my problem.

It's all about interactive vs login shells which is a pretty abstruse
subject as far as OS is concerned.
Previous Topic: problem in installing Oracle developer and link with Net Conf
Next Topic: Oracle on RHEL5 running as a VMware guest
Goto Forum:
  


Current Time: Sat Dec 10 17:01:24 CST 2016

Total time taken to generate the page: 0.10488 seconds