Add the following command to. bashrc under the replicel User:
Install a pack rlwrap-0.37-1.el5.i386.rpm
[Root @ tyger ~] $ Rpm-ivh rlwrap-0.37-1.el5.i386.rpm
Next, modify a parameter:
[Oracle @ tyger ~] $ Cat. bashrc
#. Bashrc
# Source global definitions
If [-f/etc/bashrc]; then
./Etc/bashrc
Fi
# User specific aliases and functions
Take Effect
[Oracle @ tyger ~] $ Source. bashrc
Alias SQL = 'maid sqlplus'
Alias sqlplus = 'maid sqlplus'
Alias lsnrctl = 'rlwrap lsnrctl'
Alias rman = 'rlwrap rman'
[Oracle @ tyger ~] $ Sqlplus/as sysdba
SQL * Plus: Release 10.2.0.1.0-Production on Fri Feb 28 18:49:11 2014
Copyright (c) 1982,200 5, Oracle. All rights reserved.
Connected:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Production
With the Partitioning, OLAP and Data Mining options
SYS @ ORCL>
You can press the dig into key to refresh the command that was last executed.