解决方法:
Centos可以用EPEL的yum元直接安装,步骤如下
1.64位系统安装
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
2.导入key
#默认会在/etc/yum.repos.d/下创建epel.repo和epel-testing.repo两个配置文件。 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
3.安装rlwrap和readline
yum install rlwrap readline readline-devel
4.设置sqlplus的系统别名,在环境变量中设置
vim /home/oracle/.bash_profile #在文件尾部添加 alias sqlplus='rlwrap sqlplus' alias rman='rlwrap rman'
5.使环境变量生效
source /home/oracle/.bash_profile