1. Download Rlwrapwget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.42.tar.gz2. UnzipTar-xvzf rlwrap-0.42.Tar. GZ3. Check the configuration CD/opt/rlwrap-0.42[email protected] rlwrap-0.42]# ./configureconfigure:checking forPty Ranges...checking fortgetent ... nochecking forTgetentinch-ltinfo ... nochecking forTgetentinch-lcurses ... nochecking forTgetentinch-lncurses ... nochecking forTgetentinch-Ltermcap noconfigure:WARNING:No termcap nor curses library foundchecking forReadLineinch-lreadline Noconfigure:error:You need the GNU ReadLine library (FTP://ftp.gnu.org/gnu/readline/) to buildThis program!Error Missing Package
4find the corresponding package on the installation disc [email protected] cdr]#ls./packages/|grepTermcapcompat-libtermcap-2.0.8- the. El6.i686.rpmcompat-libtermcap-2.0.8- the. El6.x86_64.rpm[[email protected] cdr]#5continue to install Termcap,curses,readline related packages until run configure get: Checking that generated files is newer than configure ... Donechecking that generated files is newer than configure ... Doneconfigure:creating./config.statusconfig.status:creating Makefileconfig.status:creating Filters/Makefileconfig.status:creating Doc/Makefileconfig.status:creating src/Makefileconfig.status:creating Doc/rlwrap.Mansconfig.status:creating config.hconfig.status:executing depfiles commandsnow Do: Make(or Gmake) to build Rlwrap MakeCheck forinstructions how to test it Make InstallToInstallIt[[email protected] Rlwrap-0.42] #创建, check, install. 6. Switch to Oracle User, configure command aliasesVI. Bash_profile Join alias Sqlplus/Rman config alias Sqlplus='Rlwrap Sqlplus'alias Rman='Rlwrap Rman'7. Test OK
Configuring Oracle Sqlplus History callbacks under Linux with Rlwrap