从品牌网站建设到网络营销策划,从策略到执行的一站式服务
环境:centos6
在西安等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站设计、成都网站制作 网站设计制作按需策划设计,公司网站建设,企业网站建设,高端网站设计,成都全网营销推广,外贸网站制作,西安网站建设费用合理。
一:命令记录
1.使用yum安装readline-devel
yum install readline-devel
2.源码编译安装rlwrap
# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
# tar -xf rlwrap-0.37.tar.gz
# cd rlwrap-0.37/
# ./configure
# make && make install
3.设置sqlplus的系统别名:# vim /home/oracle/.bash_profile
在头部或尾部添加:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
二:删除键
sqlplus下使用Backspace来删除字符,使用stty命令重新定义^H,可以在使用sqlplus之前执行stty erase ^H,也可以把这一句放到oracle用户的.bash_profile文件里。
三:脚本快速配置
#/bin/bash
#description:quick configure the oracle del and history command record
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#the centos6 has already installed the readline,so we needn't to install the readline again
#yum install readline
#use the yum to install readline-devel
yum install readline-devel
#use the tar file to install rlwrap
cd /usr/local/src
wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
tar -xf rlwrap-0.37.tar.gz
cd rlwrap-0.37/
./configure
make && make install
#configure the .bash_profile
cat >> /home/oracle/.bash_profile < alias sqlplus='rlwrap sqlplus' stty erase ^H #it used to configure the delete of configure EOF 参考网址: http://www.ha97.com/4856.html
alias rman='rlwrap rman'
当前标题:oracle中快速实现命令记录与删除键,以及使用脚本快速配置
网站地址:http://cdkjz.cn/article/gjgdjc.html
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图