rlwrap的安裝使用 [SQLPlus上下鍵]

fanhongjie發表於2009-09-09
rlwrap 的安裝使用[轉]
[@more@]
bug reports, suggestions, updates:
[root@oracle11g rlwrap-0.30]# vi /home/oracle/.bash_profile
新增
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'

三:使用rlwrap

[oracle@oracle11g ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Tue Jul 29 21:28:30 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$sga;
NAME VALUE
-------------------- ----------
Fixed Size 1299116
Variable Size 155192660
Database Buffers 79691776
Redo Buffers 2347008
使用向上鍵調回最後執行的命令,按Enter鍵重新執行或修改後按Enter鍵執行.
SQL> select * from v$sga;
NAME VALUE
-------------------- ----------
Fixed Size 1299116
Variable Size 155192660
Database Buffers 79691776
Redo Buffers 2347008
SQL>
Note:
解決在sqlplus下輸錯命令後正常刪除的方法
[oracle@oracle11g ~]$ vi /home/oracle/.bash_profile
新增
stty erase ^h

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/73920/viewspace-1026794/,如需轉載,請註明出處,否則將追究法律責任。

相關文章