Oracle up/down keys prompt history when Oracle in linux is used, its up/down keys by default do not prompt historical records. Therefore, we need to install an additional package, this package can achieve this function 1: Install readline (usually installed in the system. If not installed, please install it yourself) the OS installation CD provides the readline package rpm-ivh libtermcap-devel-2.0.8-46.1.i386.rpm rpm-ivh readline * rpm-ivh readline-devel-5.1-1.1.i386.rpm 2: Install rlwrapDownload: http://utopia.knoware.nl /~ Hlub/uck/rlwrap/tar-xvf rlwrap-0.37.tar.gzcd rlwrap-0.37. /configure make install vi/home/oracle /. add alias sqlplus = 'rlwrap sqlplus 'alias rman = 'rlwrap rman' to bash_profile for execution by oracle users. /home/oracle /. bash_profileOK. In this way, you can use the up and down keys to operate SQL commands in sqlplus to retrieve the previous records.