SQL*Plus is the interactive (low-level) user interface to theOracle database management system. Typically, SQL*Plus is used to issuead-hoc queries and to view the query result on the screen. Some of the features of SQL*Plus are:
\u2022There are numerous commands to format the output of a query.
\u2022SQL*Plus provides an online-help.
\u2022Query results can be stored in \ufb01les which then can be printed.
In order to invoke SQL*Plus from a UNIX shell, the commandsqlplus has to be issued. SQL*Plus then displays some information about the product, and prompts you for your user name and password for theOracle system.
SQL*Plus: Release 126.96.36.199.1 - Production on Sun Dec 20 19:16:52 1998
Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
Enter user-name: scott
Oracle7 Server Release 188.8.131.52.1 - Production Release
With the distributed option
PL/SQL Release 184.108.40.206.0 - Production
SQL*Plus you can divide a statement into separate lines, each continuing line is indicated by a prompt such 2>, 3> etc. An SQL statement must always be terminated by a semicolon (;). In addition to the SQL statements discussed in the previous section, SQL*Plus provides some special SQL*Plus commands. These commands need not be terminated by a semicolon. Upper and lower case letters are only important for string comparisons. An SQL query can always be interrupted by using<Control>C. To exit SQL*Plus you can either typeexit orquit.
\u2022a[ppend]<string>appends <string>to the current line
\u2022deldeletes the current line
\u2022r[un]executes the current bu\ufb00er contents
\u2022get<\ufb01le>reads the data from the \ufb01le <\ufb01le>into the bu\ufb00er
\u2022save<\ufb01le>writes the current bu\ufb00er into the \ufb01le <\ufb01le>
\u2022editinvokes an editor and loads the current bu\ufb00er into the editor. After exiting the
This action might not be possible to undo. Are you sure you want to continue?