Enable Arrow key scritp in sqlplus(oracle)

* Download : click here..!


* Usage (by root)

wget http://finfra.com/_file/rlwrap.sh
chmod +x rlwrap.sh
./rlwrap.sh
sqlplus / as sysdba
select;


*  source

# version: 0.1.2

# description: using the arrow key in oracle sqlplus

# made by nowage@gmail.com

# os : rhel4

# shell : bash

# usage :

#       $ su -

#       Password:****

#       # chmod +x rlwrap.sh

#       # rlwrap.sh

#       $ sqlpus / as sysdba

#       SQL> select;

#       SQL> {arrow up......^^/ }

# history :

#       version 0.1.2 : add alias for rman,asmcmd

#                       modify Usage.

#                       remove some bug.

#--------------------------------


wget ftp://194.199.20.114/linux/EPEL/4WS/i386/rlwrap-0.30-1.el4.i386.rpm

rpm -Uvh rlwrap-0.30-1.el4.i386.rpm

su - oracle -c "/bin/cat>>/home/oracle/.bash_profile<<EOF

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

alias asmcmd='rlwrap asmcmd'

EOF

exit"

su - oracle





Posted by 나현재

2009/11/05 12:28 2009/11/05 12:28
, , ,
Response
0 Trackbacks , 4 Comments
RSS :
http://j.finfra.com/tt/rss/response/437

Trackback URL : http://j.finfra.com/tt/trackback/437

« Previous : 1 : 2 : 3 : 4 : 5 : 6 : 7 : ... 134 : Next »

블로그 이미지

Insufficient memory! So,Blog is my 2nd Brain!

- 나현재

Notices

Archives

Authors

  1. 나현재

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Site Stats

Total hits:
202449
Today:
20
Yesterday:
18