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
No Trackback , 2 Comments
RSS :
http://j.finfra.com/tt/rss/response/437

Comments List

  1. cuwoom 2009/11/06 00:01 # M/D Reply Permalink

    이거 좀 민망하네요.
    출처는 잘 남기는 편인데 강의홈이라 댓글만 남겼었습니다;
    트랙백은 잘 감사히 받겠습니다.
    요즘 어찌 지내시나요~?

    이거 신기하게 rman 이나 asmcmd에서도 똑같이 적용되어 편리합니다.

    1. 나현재  2009/11/11 12:26 # M/D Permalink

      오키....
      약간 버그 수정하고, rman, asmcmd에 관한 alias도 추가 완료.

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

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

- 나현재

Notices

Archives

Authors

  1. 나현재

Calendar

«   2010/09   »
      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 30    

Site Stats

Total hits:
179970
Today:
35
Yesterday:
79