|
|
sqlplus command line history |
Tuesday, July 15, 2008 |
Command Line History and Editing in SQL*Plus and RMAN on Linux ------------------------------------------------------------------------
The rlwrap (readline wrapper) utility provides a command history and editing of keyboard input for any other command. This is a really handy addition to SQL*Plus and RMAN on Linux.
Download the latest rlwrap software from the following URL. http://utopia.knoware.nl/~hlub/uck/rlwrap/ Unzip and install the software using the following commands. gunzip rlwrap*.gz tar -xvf rlwrap*.tar cd rlwrap* ./configure make make check make install
Run the following commands, or better still append then to the ".bash_profile" of the oracle software owner.
alias sqlplus='rlwrap ${ORACLE_HOME}/bin/sqlplus' alias rman='rlwrap ${ORACLE_HOME}/bin/rman' alias expdp='rlwrap ${ORACLE_HOME}/bin/expdp'
You can now start SQL*Plus or RMAN using "rlsqlplus" and "rlrman" respectively, and you will have a basic command history and the current line will be editable using the arrow and delete keys. |
posted by Senthil Kumaran @ 5:48 PM |
|
|
|
About Me |
Name: Senthil Kumaran
Home: Oslo, Oslo, Norway
About Me: I'm working as a oracle applications dba(Apps DBA OCP) and fusion middleware.This views are my own only and not neccessary to match with others
See my complete profile
|
Previous Post |
|
Archives |
|
Links |
|
Powered by |
|
Add On |
|
|
|
|
|
|
|