SQLplus Commands
SQLplus Commands
@pathname
A substitution variable
&&variable
/
buffer
ACCEPT
User input
ACC[EPT] variable [NUM[BER]|CHAR|DATE] [FORMAT
format]
[DEFAULT default] [PROMPT text|NOPROMPT] [HIDE]
APPEND
buffer.
BREAK
BTITLE
page.
CHANGE
just typed.)
CLEAR
TIMING}
COLUMN
COMPUTE
CONNECT
COPY
remote)
DEFINE
DEL
DESC[RIBE]
DISCONNECT
EDIT
EXECUTE
EXIT [n]
GET file
HELP topic
HOST
INPUT
LIST n m
PAUSE message
or /* comment */
RUNFORM
SAVE file
command file.
SET
SHOW
SHUTDOWN [ABORT|IMMEDIATE|NORMAL|TRANSACTIONAL]
SPOOL file
SPOOL OFF
SQLPLUS
STA[RT]
STARTUP [NoMOUNT|MOUNT|OPEN]
TIMING
TTITLE
UNDEFINE
Delete a user/substitution variable
varName (see DEFINE)
UNDEFINE
VARIABLE
Define a bind variable (Can be used in both
SQLPlus and PL/SQL)
WHENEVER SQLERROR
SQL*Plus Prompt:
To display the currently connected UserName and SID, instead of just SQL>
SET sqlprompt '&_user:&_connect_identifier > '
Add the line above to the file: $ORACLE_SID/sqlplus/admin/glogin.sql (this tip requires
Oracle 10g or greater)