why my alias is effective only after running . /home/oracle/.bash_profile
from http://ivan.kartik.sk/oracle/install...R2_redhat.html
" echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bash_profile echo "alias adrci='rlwrap rman'" >> /home/oracle/.bash_profile " from http://www.oracle-base.com/articles/linux/rlwrap.php " Run the following commands, or better still append then to the ".bash_profile" of the oracle software owner. ". so this is what my ~/.bash_profile looks like Code:
# .bash_profile Code:
rlrman / target Code:
. /home/oracle/.bash_profile what should I do so that I need not run . /home/oracle/.bash_profile in order to run either rlsqlplus or rlrman? Am I missing something? my distro is Centos 5.3 thanks a lot! |
~/.bash_profile is sourced each time that you open a new interactive-login shell. So, it will not be sourced if you login using a display manager like xdm, kde or gdm and then you one a terminal emulator. For such cases, you must use ~/.bashrc instead.
More info in the "INVOCATION" section of the bash man page. I guess that could be the problem. |
A bit odd. I've got CENTOS 5.3 as well, and the default is to source .bashrc from .bash_profile anyway
Code:
cat .bash_profile Maybe you didn't logout all the way after doing the changes. It only sets them once at GUI login, then clones that for xterms. |
All times are GMT -5. The time now is 02:48 PM. |