Home » Infrastructure » Linux » Problem with .bash_profile (Oracle, OEL 5)
Problem with .bash_profile [message #423859] Mon, 28 September 2009 13:55 Go to next message
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

# User specific environment and startup programs


#export PATH

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.

Re: Problem with .bash_profile [message #423868 is a reply to message #423859] Mon, 28 September 2009 16:34 Go to previous message
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 Jan 21 11:36:40 CST 2017

Total time taken to generate the page: 0.06360 seconds