使用oracle Sqlplus中上下键出现乱码的问题

安装rlwrap,前提是安装readline和readline-devel

yum list | grep readline
yum install -y readline.x86_64 readline-devel.x86_64
上传并解压rlwrap
tar -zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37/
./configure

make

make install

vim /home/oracle/.bash_profile

alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'

 保存退出,到oracle用户下,使文件立即生效。
  su - oracle
   . .bash_profile

之后就可以正常使用了!!

参考文章:

扫描二维码关注公众号,回复: 8205590 查看本文章

https://blog.csdn.net/rlhua/article/details/25108261

https://blog.csdn.net/gavin1731/article/details/70833975

猜你喜欢

转载自www.cnblogs.com/KAJIA1/p/12047561.html