Skip to content

Instantly share code, notes, and snippets.

@onodes
Created November 1, 2013 03:10
Show Gist options
  • Save onodes/7260497 to your computer and use it in GitHub Desktop.
Save onodes/7260497 to your computer and use it in GitHub Desktop.
cd /root
wget http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
tar zxvf readline-6.2.tar.gz
cd readline-6.2
./configure
make
make install
cd /root
wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
tar zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure
make
make check
make install
rm -rf /root/rlwrap-0.37*
rm -rf /root/readline-6.2*
ldconfig
echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bashrc
echo "fin"
echo "you should change user root to oracle"
echo "if your user is oracle, you should restart shell"
#omake
#echo "=========="
#echo "You should change user to oracle"
#echo "Please use this command"
#echo "source ~/.bashrc"#echo "fin"
#https://gist.github.com/onodes/7113788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment