1 挂载系统的Packages到mnt,并安装readline
[[email protected] mnt]# cd Packages/[[email protected] Packages]# rpm -ivh --nodeps readline*Preparing... ########################################### [100%] package readline-6.0-3.el6.x86_64 is already installed package readline-devel-6.0-3.el6.x86_64 is already installed
2 到rlwrap下载网站去下载rlwrap,并安装
3 编辑.bash_profile
[[email protected] ~]$ vim .bash_profile添加:alias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'
立即使之生效. .bash_profile