Exadata cellcli is not as dumb as other Oracle command line tools

It is sort of a tradition that Oracle DB CLIs doesn't support command line editing or
history. Cases in point are sqlplus, rman, asmcmd.

I recently learned that Exadata Storage Server's CLI, which is 'cellcli', is an exception.
As the source says, it implements JLine.

JLine - JLine

JLine is a Java library for handling console input. It is similar in functionality to BSD editline and GNU readline.

Here are key bindings that work as same as in bash.

Cursor keys, Ctrl-P(Previous command), Ctrl-N(Next Command).

cellcli saves history on exit and reads that in on startup , too.

Here are keys that doesn't work.

Ctrl-R(Search history), Alt-D(Delete word), Ctrl-C(Quit editing)

This is not a complete comparision.
If there's a comparison between readline vs JLine, I think that applies to cellcli, too.

 

 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today