It is inconvenient to use SQL * Plus on Linux, that is, there is no historical callback function. Ldquo can be used for SQL * Plus on Windows; up to rdquo; Arrow
It is inconvenient to use SQL * Plus on Linux, that is, there is no historical callback function. Ldquo can be used for SQL * Plus on Windows; up to rdquo; Arrow
In Linux, SQL * Plus is quite inconvenient, 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