Home » Infrastructure » Linux » Environment Variables Problem in linux (Oracle on linux 2.6.9-
icon1.gif  Environment Variables Problem in linux [message #321604] Tue, 20 May 2008 19:33 Go to next message
Messages: 61
Registered: June 2007
Location: now york
Hi Forum

I have created a .bash_profile in oracle user whose default shell is bash.
When the user oracle log in, it doesnt source the environment variable in .bash_profile.

But if I put the same variable in .profile, it export them and source them.

Can anyonne please explain why its behaving like that & any steps to make my .bash_profile work instead of .profile.

Is there something that linux check for .profile of a user first when it log in & if there is no .profile then it goes for .bash_profile.

Thanks a lot in advance....
Re: Environment Variables Problem in linux [message #321613 is a reply to message #321604] Tue, 20 May 2008 19:56 Go to previous messageGo to next message
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Please read & follow posting guidelines as stated in URL above

Why do you expect us to debug your code when you refused to post it?

Do the desired variables get establish after manually sourcing in the .bash_profile file?

Do NOT tell us what you think happens.
Use CUT & PASTE so we can see for ourselves exactly & as completely as you see event!
Re: Environment Variables Problem in linux [message #321775 is a reply to message #321604] Wed, 21 May 2008 05:17 Go to previous message
Messages: 2794
Registered: April 2006
Senior Member
What's the output of:

grep oracle /etc/passwd
Previous Topic: 10g Client on Ubuntu
Next Topic: Why this script can not make database startup at OS bootup?
Goto Forum:

Current Time: Fri Mar 31 21:04:18 CDT 2023