SQLPlus is annoying as it has no command editing, completion or history. gqlplus is a better implementation which has all of these so should be used instead. Below, gqlplus will be referred to as SQLplus.
You can connect to an oracle on database by launching SQL*Plus on the command line:
All of the table details are held in a meta table called alltables. Standard SQL queries can be made on this e.g. desc alltables; select tablename from alltables; c.f. MySQL show tables;
You can run sql scripts at the command line by entering @/path/to/script
gqlplus - This is a replacement for sqlplus with command editing, command completion and command histories.
In 8i, SQLPlus annoyingly sets the default column width to 80 characters. This was increased to 150 in Oracle 9. To chose your own value use the SET command to set LIN: SET LIN 200 Note that this will still wrap to the split of a SSH window. SQLPlus will also show headings at the top of each //page//. This can be annoying, as the pagesize is set to 14 on our version. Set this to a more sensible value to match your terminal. To be honest, I don’t find these headings useful, except at the top of the results, so I tend to set the pagesize to something very large e.g. SET PAGES 100