* Download : click here..!
* Usage (by root)
* source
# version: 0.1.2
# description: using the arrow key in oracle sqlplus
# made by nowage@gmail.com
# os : rhel4
# shell : bash
# usage :
# $ su -
# Password:****
# # chmod +x rlwrap.sh
# # rlwrap.sh
# $ sqlpus / as sysdba
# SQL> select;
# SQL> {arrow up......^^/ }
# history :
# version 0.1.2 : add alias for rman,asmcmd
# modify Usage.
# remove some bug.
#--------------------------------
wget ftp://194.199.20.114/linux/EPEL/4WS/i386/rlwrap-0.30-1.el4.i386.rpm
rpm -Uvh rlwrap-0.30-1.el4.i386.rpm
su - oracle -c "/bin/cat>>/home/oracle/.bash_profile<<EOF
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias asmcmd='rlwrap asmcmd'
EOF
exit"
su - oracle
* Base on <http://blog.cuwoom.net/126>
Posted by 나현재


