让Linux下的SQL*Plus具有历史回调功能
Linux上使用SQL*Plus有一个相当不方便的地方,那就是没有历史回调功能。在Windows上的SQL*Plus可以用ldquo;向上向下rdquo;箭头
Linux上使用SQL*Plus有一个相当不方便的地方,,那就是没有历史回调功能。在Windows上的SQL*Plus可以用“向上向下”箭头来调用之前使用过的命令,修改、编辑、重复之前的命令都相当方便。如何解决这个问题呢?
答案是安装一个小工具:Uniread
安装Uniread的要求
1.Linux系统上必须已经安装了Perl
2.安装Uniread之前先安装 readline,Term,IO这3个工具。
安装过程:
1.检查是否已经安装过Perl
[root@pcmxexweb tmp]# rpm -qa perl
perl-5.8.8-10
#说明已经安装了
2.下载IO-Tty-1.07.tar.gz readline-5.2.tar.gz Term-ReadLine-Gnu-1.17a.tar.gz uniread-1.01.tar.gz 这四个文件,我放到了/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--r-- 1 root root 22004 03-14 16:44 IO-Tty-1.07.tar.gz
-rw-r--r-- 1 root root 2037705 03-14 16:44 readline-5.2.tar.gz
-rw-r--r-- 1 root root 66489 03-14 16:44 Term-ReadLine-Gnu-1.17a.tar.gz
-rw-r--r-- 1 root root 16118 03-14 16:44 uniread-1.01.tar.gz
3.安装readline-5.2.tar.gz
# tar -zxvf readline-5.2.tar.gz
# cd readline-5.2
# ./configure
#make
#make install
安装IO-Tty-1.07.tar.gz Term-ReadLine-Gnu-1.17a.tar.gz
# tar -zxvf IO-Tty-1.07.tar.gz (或tar -zxvf Term-ReadLine-Gnu-1.17a.tar.gz)
# cd IO-Tty-1.07(或 cd Term-ReadLine-Gnu-1.17)
# perl Makefile.pl
# make
# make install
安装readline-5.2.tar.gz
#tar -xzvf uniread-1.01.tar.gz
#cd uniread-1.01
#perl Makefile.pl
#make
#make install
使用:
# su - Oracle
$ uniread sqlplus /nolog
清空历史工作:
$ echo ''>.uniread/sqlplus

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)
