By a simple call like
rlwrap program parameter parameter ...
it is possible to combine any program using stdin for reading with the readline library and its functionality like command line editing, command line history and other nice things.
rlwrap runs on practically each unix. You can get it from here.
If you plan to use sqlplus, rman, lsnrctl or any other Oracle command line tool, you might have use for my extensions to rlwrap. Learn more about it here.