sqlplus 上下翻页

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值