Neoview Command Interface (NCI) Guide (R2.4)
Current operating mode of the session. The default mode is SQL. The prompt for
NS mode is NS%. For more information, see “MODE Command” (page 107).
MODE
Current prompt for the session. In SQL mode, the default is SQL>. In CS mode,
the default is CS#. For more information, see “Customizing the Standard Prompt”
(page 61) and “SET PROMPT Command” (page 127).
PROMPT
Current role for the session. For more information about user-ids and roles, see
the Neoview Database Administrator's Guide.
ROLE
Current schema. The default is USR. For more information, see “Setting and
Showing the Current Schema” (page 63).
SCHEMA
Host name and port number that you entered when logging in to the database
platform. For more information, see “Logging In to the Database Platform”
(page 51).
SERVER
Current service name for the session.SERVICE NAME
Current SQL statement terminator. The default is a semicolon (;). For more
information, see “Setting and Showing the SQL Terminator” (page 62) and “SHOW
SQLTERMINATOR Command” (page 148).
SQLTERMINATOR
Current statistics for the session. For more information, see “SET STATISTICS
Command” (page 131).
STATISTICS
Current setting (on or off) of the local time as part of the prompt. By default, the
local time is off. For more information, see “Customizing the Standard Prompt”
(page 61) and “SET TIME Command” (page 131).
TIME
Current setting (on or off) of the elapsed time. By default, the elapsed time is off.
For more information, see “Displaying the Elapsed Time” (page 62) and “SET
TIMING Command” (page 132).
TIMING
User name that you entered when logging in to the database platform. For more
information, see “Logging In to the Database Platform” (page 51).
USER
Examples
• This command displays the attributes of the current session:
SQL>show session
COLSEP ","
DATASOURCE TDM_Default_DataSource
HISTOPT ALL
IDLETIMEOUT 30 min(s)
LIST COUNT 0 [All Rows]
LOG OFF
LOOK AND FEEL NVS
MARKUP XML
MODE SQL
PROMPT SQL>
ROLE DBA
SCHEMA USR
SERVER neo0101.acme.com:18650
SERVICE NAME HP_DEFAULT_SERVICE
SQLTERMINATOR ;
STATISTICS OFF
TIME OFF
TIMING OFF
USER role.dba
• This command shows the effect of setting various session attributes:
SQL>session
COLSEP " "
DATASOURCE TDM_Default_DataSource
HISTOPT ALL
IDLETIMEOUT 30 min(s)
LIST COUNT 0 [All Rows]
SHOW SESSION Command 147