First, download rlwrap-0.37.tar.gz
1. Unpack the compressed package
# tar XZVF rlwrap-0.37.tar.gz
2, enter the decompression directory rlwrap-0.37
#./configure
#make
#make Install
If you fail when you execute configure (make does not pass), look at the failure prompt. It is generally necessary to install some dependent packages, to find the required packages and install them in the packages directory on centos6.3 's first CD-ROM. Here are the packages I need to install:
Second, install the dependency package
[Email protected] packages]# RPM-IVH readline-6.0-4.el6.x86_64.rpm
Warning:readline-6.0-4.el6.x86_64.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
Package readline-6.0-4.el6.x86_64 is already installed
[Email protected] packages]# RPM-IVH ncurses-5.7-3.20090208.el6.x86_64.rpm
Warning:ncurses-5.7-3.20090208.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
Package ncurses-5.7-3.20090208.el6.x86_64 is already installed
[Email protected] packages]# RPM-IVH ncurses-devel-5.7-3.20090208.el6.x86_64.rpm
Warning:ncurses-devel-5.7-3.20090208.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
1:ncurses-devel ########################################### [100%]
[Email protected] packages]# RPM-IVH readline-devel-6.0-4.el6.x86_64.rpm warning:readline-devel-6.0-4.el6.x86_64. Rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
1:readline-devel ########################################### [100%]
[Email protected] packages]#
Then go to directory rlwrap-0.37:
#./configure
#make
#make Install
Iv. Add the following statement to the text below
[[email protected] rlwrap-0.37]# Vi/home/oracle/.bash_profile Add the following two sentences
Alias sqlplus= ' Rlwrap sqlplus '
Alias rman= ' Rlwrap Rman '
This article from "It Life" blog, declined reprint!
Sqlplus Patch Pack rlwrap-0.37 Installation Steps (Resolve SQL Delete, rollover history command, etc.)