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
Karma: 0
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: 25578
Registered: January 2009
Location: SoCal
Karma: 0
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
Karma: 0
Senior Member
What's the output of:

grep oracle /etc/passwd
Previous Topic: why cannot record a responseFile?
Next Topic: Why this script can not make database startup at OS bootup?
Goto Forum:

Current Time: Tue Aug 22 11:59:20 CDT 2017

Total time taken to generate the page: 0.05009 seconds