Make SQL * Plus in Linux have the historical callback function

Source: Internet
Author: User

It is inconvenient to use SQL * Plus on Linux, that is, there is no historical callback function. For SQL * Plus on Windows, you can use the "Up and down" arrow to call commands that have been used before. It is quite convenient to modify, edit, and repeat previous commands. How can this problem be solved?

The answer is to install a tool: Uniread

Uniread installation requirements

1. Perl must be installed on Linux

2. Install the readline, Term, and IO tools before installing Uniread.

Installation Process:
1. Check whether Perl has been installed

[Root @ pcmxexweb tmp] # rpm-qa perl
Perl-5.8.8-10
# It indicates that you have installed

2.download io-tty-1.07.tar.gz readline-5.2.tar.gz Term-ReadLine-Gnu-1.17a.tar.gz uniread-1.01.tar.gz these four files, I put under/tmp.

[Root @ pcmxexweb tmp] # ll IO-Tty-1.07.tar.gz readline-5.2.tar.gz Term-ReadLine-Gnu-1.17a.tar.gz uniread-1.01.tar.gz
-Rw-r -- 1 root 22004 03-14 IO-Tty-1.07.tar.gz
-Rw-r -- 1 root 2037705 03-14 readline-5.2.tar.gz
-Rw-r -- 1 root 66489 03-14 Term-ReadLine-Gnu-1.17a.tar.gz
-Rw-r -- 1 root 16118 03-14 uniread-1.01.tar.gz

3.install readline-5.2.tar.gz

# Tar-zxvf readline-5.2.tar.gz
# Cd readline-5.2
#./Configure
# Make
# Make install

Install io-tty-1.07.tar.gz Term-ReadLine-Gnu-1.17a.tar.gz
# Tar-zxvf IO-Tty-1.07.tar.gz (or tar-zxvf Term-ReadLine-Gnu-1.17a.tar.gz)
# D IO-Tty-1.07 (or cd Term-ReadLine-Gnu-1.17)

# Perl Makefile. pl
# Make
# Make install

Install readline-5.2.tar.gz
# Tar-xzvf uniread-1.01.tar.gz
# Cd uniread-1.01
# Perl Makefile. pl
# Make
# Make install

Usage:
# Su-Oracle
$ Uniread sqlplus/nolog

Clear history:
$ Echo ''>. uniread/sqlplus

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.