GQLPlus - Command Line Goodness

November 17th, 2006 by The Oracle Alchemist

I just found a link to a command line wrapper for SQL*Plus called GQLPlus. Supposedly this wrapper allows historical editing, table/column name completion, and more.

Even better, it’s just a precompiled drop-in with SQL Plus. Download and run; nothing else is required. From the website:

“gqlplus is a drop-in replacement for sqlplus, an Oracle SQL client, for UNIX and UNIX-like platforms. The difference between gqlplus and sqlplus is command-line editing and history, plus table-name and column-name completion. As you know if you have used sqlplus, it is notoriously difficult to correct typing errors and other mistakes in your SQL statements. sqlplus does give you ability to use external editor to edit a statement, but only the last statement you typed. gqlplus solves this problem by providing the familiar command-line editing and history as in tcsh or bash shells, and table/column-name completion, while otherwise retaining compatibility with sqlplus. Thus, no user training is needed - simply use gqlplus instead of sqlplus. In addition, configuration/installation is trivial: gqlplus is a single binary compiled executable (written in C), so all you need to do is download it and put it anywhere in your PATH. After that, you’ll be ready to use it.”

I haven’t used it yet, but it looks really cool. Anyone out there who has given it a shot?

4 Responses to “GQLPlus - Command Line Goodness”

  1. laurent schneider Says:

    Not sure if the latest release works with 10g. It crashes quite often, for example if your database is mounted not open, or you do not have enough permission (let’s say no permission on all_tab_columns), so it is not stable enough to be used on a production site, but it is still very fun.

    I switched to rlwrap a long time ago, but rlwrap has no table completion. Well, table completion almost never worked 8O

  2. Simon Adler Says:

    It does sound cool, but I haven’t been able to get it to work on Linux with Oracle 10.2.0.3. It just hangs upon connecting and never gets to the SQL prompt. I compiled the source and tried again, but same result. I would say it’s not ready for prime-time and probably never will be. Try rlwrap instead.

  3. Zdenek Says:

    Simon, you can read in README: “gqlplus hangs if glogin.sql and/or login.sql files contain the `pause’ or `set pause on’ statements.”
    If you haven’t tried it, try to erase ’set pause on’ from these files. It works. You can set ‘pause on’ later in prompt.

  4. jtal Says:

    gqlplus hangs at connected if anything in your ~/.sqlplus/login.sql attempts to alter the sqlplus prompt. Including SET SQLPROMPT.

Leave a Reply



Related Posts


When errors tell you absolutely nothing!
The task was simple... Oh yes, hello by the way. It has been a while since I've posted! Anyways, like I said, the task was simple. Migrate an Oracle 10.1.0.3 ...
Patching from 10.2.0.1 to 10.2.0.3
I'm not a big fan of ignoring errors with OUI (we all have our horror stories), and so when I ran across this one I was loathe to ignore or ...
Trick #2 - Rewrite a Query at Runtime
There are many Oracle tools that can wreak havoc on an unsuspecting DBA or developer, but all in all they are for the common good. Though Oracle never puts ...
Socket Based Licensing for Standard Edition
I ran across this article today on Oracle's new strategy for Standard Edition and Standard Edition One licensing. As a consultant, there are times when I have to tackle licensing questions, ...
An Oracle Schema Filesystem
I'm one of those types that always needs a project. If I run out of projects using the things I know, I take on a project that involves something ...