Configuring Oracle Sqlplus History callbacks under Linux with Rlwrap

Source: Internet
Author: User
Tags readline sqlplus

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.