July 24 2014

linux下 crt输入sql可上下翻

readline下载:http://directory.fsf.org/project/readline/
rlwrap下载:http://utopia.knoware.nl/~hlub/uck/rlwrap/

在root下执行以下命令

# gunzip readline-5.0.tar.gz
# tar xvf readline-5.0.tar
# cd readline-5.0
# ./configure
# make
# make install

install rlwrap:
# gunzip rlwrap-0.30.tar.gz
# tar xvf rlwrap-0.30.tar
# cd rlwrap-0.30

# ./configure ==>(我在这一步遇到问题无法继续安装,原因是提示我包依赖   yum -y install readline*。)
# make
# make check
# make install

oracle用户使用
rlwrap sqlplus user/pwd
rlwrap rman target user/pwd

可以设别名放到.bash_profile里,然后直接使用别名即可。
alias sqlplus=’rlwrap sqlplus’
alias rman=’rlwrap rman’


Copyright 2019. All rights reserved.

Posted 2014年7月24日 by ucjmh in category "oracle

Leave a Reply

Your email address will not be published. Required fields are marked *