sqlplus上下键浏览历史命令行

    1 挂载系统的Packages到mnt,并安装readline

[root@Think mnt]# cd Packages/
[root@Think 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

[oracle@Think ~]$ vim .bash_profile
添加:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
   

    立即使之生效. .bash_profile


你可能感兴趣的:(sqlplus上下键浏览历史命令行)