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
umask 022
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_BASE=/u01/app/oracle/;
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
ORACLE_SID=tomkyte;
LD_LIBRARY_PATH=$ORACLE_HOME/lib;
PATH=$PATH:$ORACLE_HOME/bin;
alias rlsqlplus='rlwrap -i sqlplus'
alias rlrman='rlwrap -i rman'
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
after login in as oracle when I run
Code:
rlrman / target
bash: rlrman: command not found
it is only after running
Code:
. /home/oracle/.bash_profile
that I was able to rlrman
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!