[i=s] ±¾Ìû×îºóÓÉ flyingsnow0102 ÓÚ 2012-7-25 23:23 ±à¼ [/i]
½øÈësqlplusºó£¬½øÐÐÃüÁî²Ù×÷£¬·¢ÏÖ¼üÅÌÉϵÄÉÏϼýÍ·¼ü²»ÄÜÇл»ÒÔǰʹÓùýµÄÃüÁ×óÓÒ¼ýÍ·¼ü²»ÄÜÒƶ¯¹â±ê£º
ÔÚLinuxÏÂÃæʹÓÃsqlplusºÜ²»Ë¬£¬ÉÏϼü£¬Í˸ñ¼ü¶¼²»ÄÜÓã¬ÑÏÖؽµµÍÉú²úЧÂÊ¡£
ijһÌìÖÕÓÚ·¢ÏÖÁËÕâ¸örlwrapÕâ¸öºÃ¶«Î÷£¬ÌØд´ËÎļǼ¡£
ÓÉÓÚʱ¼ä¹Øϵ£¬¿ÉÒÔ´ÓÒÔϵØÖ·ÏÂÔØ°²×°°ü£º
http://files.cnblogs.com/killkill/rlwrap-0.30.tar.gz.zip
ÏÂÔغ󣬽«.zipÀ©Õ¹ÃûÈ¥µô£¬´«µ½Linux·þÎñÆ÷ÉÏÃæ¡£
ÏÈ×°ÉÏһЩ°²×°rpm
Ò»:°²×°readline
OSµÄ°²×°¹âÅÌÀïÌṩÁËreadline°ü.
[root@oracle11g ~]# rpm -Uvh readline*
error: Failed dependencies: libtermcap-devel is needed by readline-devel-5.1-1.1.i386.rpm
[root@oracle11g ~]# rpm -Uvh libtermcap-devel-2.0.8-46.1.i386.rpm
[root@oracle11g ~]# rpm -Uvh readline*package readline-5.1-1.1 is already installed
[root@oracle11g ~]# rpm -Uvh readline-devel-5.1-1.1.i386.rpm
¶þ:°²×°rlwrap
1¡¢Ê¹ÓÃmakeÔ´Îļþ°²×°
[root@oracle11g ~]# tar -zxvf rlwrap-0.30.tar.gz
[root@oracle11g ~]# cd rlwrap-0.30
[root@oracle11g rlwrap-0.30]# ./configure
[root@oracle11g rlwrap-0.30]# make
[root@oracle11g rlwrap-0.30]# make install
2¡¢Ê¹ÓÃrpm°²×°°ü°²×°
ÏÂÔØ°²×°Îļþrlwrap-0.37-1.el5.i386.rpm£¬ÏÂÔصØÖ·ÈçÏ£º
ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/i386/rlwrap-0.37-1.el5.i386.rpm
Èý:·½±ãʹÓÃrlwrap
[root@oracle11g rlwrap-0.30]# vi /home/oracle/.bash_profile
Ìí¼Ó
alias sql='rlwrap sqlplus'
alias sqlplus='rlwrap sqlplus'
alias lsnrctl='rlwrap lsnrctl'
alias rman='rlwrap rman'
[root@oracle11g rlwrap-0.30]# source .bash_profile
LinuxϵÄSQL Plus ÖÕÓÚ¿ÉÒÔÏñWindowsϵÄÄÇÑùʹÓÃÁË¡£