Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

691
Vistas
SQL Plus command line: Arrow keys not giving previous commands back

I am using Oracle 10g Express Edition on Fedora core 5 32+ bit os. The problem is when I use the SQL Plus command line to make SQL statements I can not get the previously typed command back at the prompt when I use the up and down arrow keys on my keyboard. This is quite easy when I am using a shell, but here with this Oracle command line interface it is not working at all. Here is the example as what actually is happening whe I press the up or down arrow keys.

SQL> drop table mailorders;

Table dropped.

SQL> ^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

The 'l' command will show the last run command (source: krenger.ch):

SQL> l
  1* select owner, count(1) from dba_tables group by owner
SQL>

To get more than that, turn on history (source: dba-oracle):

SQL> set history on
SQL> history
  1  select * from dual;
  2  select sysdate from dual;
  3  show history
over 4 years ago · Santiago Trujillo Denunciar

0

If you need rerun only the last command typed then the forwardslash "/" would work. Hit / and then the enter key would rerun the last statement.

SQL> select sysdate from dual;

SYSDATE
--------
03-12-17

SQL> /

SYSDATE
--------
03-12-17

SQL> 
over 4 years ago · Santiago Trujillo Denunciar

0

SQL*Plus doesn't offer this feature out-of-the-box. You have to setup rlwrap to get that going

We have built a new command line interface that supports everything SQL*Plus offers, but also includes more modern features such as previous command history. It's called SQLcl. The command history remembers your last 100 statements/scripts, even from previous sessions.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda