Monday, September 17, 2007
Tip#7 SQL*Plus Command Line History
Thanks to Howard Rogers( Link ) , I got a very useful utility to have command line history for SQL*Plus on Linux. This small utility makes life so much easier for me especially as most of the time I do work on Linux platform. All you have to do is
1. Download a rpm (Link)
2. As root user, Install it -> rpm -ivh rlwrap-0.18-1.i386.rpm
3. Create alias for SQL*Plus in the user profile (Bash -> .bash_profile , Ksh -> .profile )
alias sqlplus='rlwrap sqlplus'
This will make sure that every time you login and run sql*Plus, "rlwrap" captures all SQL*Plus commands which you can just recall with up/down arrow key. Other nice feature is search capability of this utility, you can press Ctrl+R and type in key word to search for in your historical SQLs.
I really find this utility very helpful, hope it helps you too!!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment