1,首先下载软件包~hlub/uck/rlwrap/
2,解压并安装
#tar -zxvf rlwrap-0.42.tar.gz
[root@node1 tmp]# cd rlwrap-0.42
[root@node1 rlwrap-0.42]# ./configure --prefix=/usr/local/rlwrap
[root@node1 rlwrap-0.42]# make
[root@node1 rlwrap-0.42]# make check
[root@node1 rlwrap-0.42]# make install
3,测试
[oracle@node1 ~]$ /usr/local/rlwrap/bin/rlwrap sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 2 21:16:55 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
执行命令后可以进行上下翻页
4,加入到环境变量
alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus'
alias rman='/usr/local/rlwrap/bin/rlwrap rman'
阅读(1121) | 评论(0) | 转发(0) |