Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Recalling SQL history does not work in UNIX version of SQL*Plus???

Re: Recalling SQL history does not work in UNIX version of SQL*Plus???

From: Galen Boyer <galenboyer_at_hotpop.com>
Date: 5 Aug 2004 08:54:12 -0500
Message-ID: <ubrhpae32.fsf@standardandpoors.com>


On Wed, 04 Aug 2004, 1443131_at_usenetplanet.com wrote:
>
> In Windows version of SQL*Plus, pressing up arrow brings
> previous SQL statements.

I'm pretty sure this is because sqlplus for windows piggybacks on cmd prompt functionality (however little that is). I don't find this very useful at all because you can only get one line of history, so your sql authoring has to be a single line.

> However, it is not working in UNIX version of SQL*Plus (we use
> HP/UX). Is there something that we need to set to make it
> work? Thank you in advance.

I don't believe you can do this in UNIX. For some reason, once in sqlplus from a shell prompt, you lose the history capability of the shell prompt you came from, but the odd thing is that you don't lose all of the parent shell's functionality.

For example:

    stty erase [backspace]

is also available at the sqlplus prompt but

    set -o vi

is not.

But, I wouldn't find this all that useful for the same reason as above.

-- 
Galen Boyer
Received on Thu Aug 05 2004 - 08:54:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US