Oracle up/down key prompt History Function

Source: Internet
Author: User

Oracle up/down keys prompt history when Oracle in linux is used, its up/down keys by default do not prompt historical records. Therefore, we need to install an additional package, this package can achieve this function 1: Install readline (usually installed in the system. If not installed, please install it yourself) the OS installation CD provides the readline package rpm-ivh libtermcap-devel-2.0.8-46.1.i386.rpm rpm-ivh readline * rpm-ivh readline-devel-5.1-1.1.i386.rpm 2: Install rlwrapDownload: http://utopia.knoware.nl /~ Hlub/uck/rlwrap/tar-xvf rlwrap-0.37.tar.gzcd rlwrap-0.37. /configure make install vi/home/oracle /. add alias sqlplus = 'rlwrap sqlplus 'alias rman = 'rlwrap rman' to bash_profile for execution by oracle users. /home/oracle /. bash_profileOK. In this way, you can use the up and down keys to operate SQL commands in sqlplus to retrieve the previous records.
 

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.