Home » Infrastructure » Unix » What is .bash_profile and .profile
What is .bash_profile and .profile [message #171084] Mon, 08 May 2006 05:22 Go to next message
Messages: 30
Registered: March 2006
Location: India

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
Frank Naude
Messages: 4575
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).
Previous Topic: jdk 1.3.1
Next Topic: shell script
Goto Forum:

Current Time: Fri Sep 22 07:15:08 CDT 2023