by dinkumthinkum · 13y ago · 0 comments
I've found it to be quite good, you can express powerful stuff with the keyboard directly, once you know what you're doing. A GUI is always less versatile in forming joins and search criteria. Once you start having a dropdown query builder, what's the point?
I do use a separate editor often, nano or sublime, depending if I'm working on the remote or local end. Both have syntax highlight, and then it's the natural path to scripts and version control from that.
Having 2 windows open is about the same as having 2 panels in one of the DB "Monties". http://catb.org/jargon/html/M/monty.html
Here's my ~/bin/sqlplus shell script pointing to the Oracle instant client install:
#!/bin/sh
OIC_DIR=$HOME/opt/oracle-instant-client
export LD_LIBRARY_PATH="${OIC_DIR}:$LD_LIBRARY_PATH"
export TNS_ADMIN="${OIC_DIR}"
rlwrap "${OIC_DIR}/sqlplus" "$@"
Bonus: You can use a tnsnames.ora file with the instant client if you put it in the instant client directory and export the environment variable in the script above.Thanks for the tip on rlwrap, in case I have to use that thing again. I'm assuming it provides GNU readline support on top of the base tool.