1. 程式人生 > >Linux下Oracle的sqlplus中上下左右退格鍵無法使用

Linux下Oracle的sqlplus中上下左右退格鍵無法使用

一.配置yum源並安裝readline*
     配置本地yum
     1,掛載光碟
          mount /dev/cdrom /mnt/media

     2,新建本地yun源的配置檔案
          vi /etc/yum.repos.d/local.repo
          加入以下資訊:

[Local]
name=Local
baseurl=file:///mnt/media
enable=1
gpgcheck=0

然後  yum -y install readline*
二.下載並安裝rlwrap
     
     tar
     ./configure
     make
     make install
三.修改Oracle使用者 .bash_profile
     vi .bash_profile
新增:
     alias sqlplus='rlwrap sqlplus'
     alias rman='rlwrap rman'