用户工具


1、确认安装了perl软件
2、需要下载3个安装包
3、解压3个包
[root@localhost temp]# tar xzvf IO-Tty-1.09.tar.gz
[root@localhost temp]# tar xzvf Term-ReadLine-Gnu-1.20.tar.gz
[root@localhost temp]# tar xzvf uniread-1.01.tar.gz
4、切换到root用户  安装3个包
进入IO-Tty-1.09的解压目录
[root@localhost temp]# cd IO-Tty-1.09
[root@localhost IO-Tty-1.09]# perl Makefile.PL                         编译软件
[root@localhost IO-Tty-1.09]# make;make install                       安装软件 
进入Term-ReadLine-Gnu-1.20的解压目录
[root@localhost Term-ReadLine-Gnu-1.20]# perl Makefile.PL 
Could not find neither libtermcap.a, libncurses.a, or libcurses.   报错了
解决方法:
[root@localhost Term-ReadLine-Gnu-1.20]# yum install compat-libtermcap.i686       安装libtermcap  软件
[root@localhost Term-ReadLine-Gnu-1.20]# yum install ncurses-devel   安装ncurses-devel软件
[root@localhost Term-ReadLine-Gnu-1.20]# yum install readline-devel.i686  安装readline-devel.i686软件
[root@localhost uniread-1.01]# make;make install
进入uniread-1.01的解压目录
[root@localhost uniread-1.01]# perl Makefile.PL
[root@localhost uniread-1.01]# make;make install

6、试试看吧
[oracle@localhost ~]$ uniread sqlplus / as sysdba
[uniread] Loaded history (4 lines)
SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 2 13:32:48 2013
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to an idle instance.
SQL>

到此为止已经成功了…………………………………………

7、为了下次使用方便,可以将 alias sqlplus='uniread sqlplus' 放入 .bashrc文件中。然后执行source .bashrc使修改生效,最好不要放在.bash_profile中,有时会无效,具体原因未知

8、嫌存的历史命令太多可以清除信息,每个用户的根目录下的这个文件是专门用来存储历史记录的,清空即可
[oracle@FOO oracle]$ echo ''>.uniread/sqlplus