What is .bash_profile and .profile [message #171084] |
Mon, 08 May 2006 05:22 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
blazingrock4u
Messages: 30 Registered: March 2006 Location: India
|
Member |
![blazing_rock4u](/forum/theme/orafaq/images/yahoo.png)
|
|
What is the difference between .bash_profile and .profile?
My Env: Sun Solaris 5.8
In my environment there is no .profile, but i have .bash_profile
which doesnot have ORACLE_SID decalred. Then how do i know which database is this env is pointing to?
And in this env, Oracle is not OS authentication, it is passwd authentication login.
[Updated on: Mon, 08 May 2006 05:23] Report message to a moderator
|
|
|
Re: What is .bash_profile and .profile [message #171359 is a reply to message #171084] |
Tue, 09 May 2006 08:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
Frank Naude
Messages: 4593 Registered: April 1998
|
Senior Member |
|
|
If you use the BASH shell, use ~/.bash_profile as the preferred configuration file for environment settings. Add your ORACLE_SID and ORACLE_HOME to this file.
In the absence of ~/.bash_profile and ~/.bash_login, ~/.profile is read. It can hold the same configurations, which are then also accessible by other shells (for example SH and KSH).
|
|
|