- •Contents
- •Send Us Your Comments
- •Preface
- •1 Introduction to iSQL*Plus
- •What is iSQL*Plus?
- •iSQL*Plus Architecture
- •iSQL*Plus User Interface
- •Oracle HTTP Server
- •Oracle9i
- •2 Configuring iSQL*Plus
- •System Requirements
- •Web Browser (client tier)
- •Oracle HTTP Server (middle tier)
- •Oracle9i (database tier)
- •Installation
- •Configuring the Client Tier
- •Adding MIME Types
- •Adding Proxy Server Exceptions
- •Configuring the Middle Tier
- •Configuring the iSQL*Plus Server
- •Defining a Connection Identifier
- •Setting the iSQL*Plus Session TimeOut
- •Changing the Default Cascading Style Sheet
- •Enabling or Disabling iSQL*Plus
- •Configuring the Oracle HTTP Server
- •Testing the Oracle HTTP Server Configuration File
- •Starting and Stopping the Oracle HTTP Server
- •Configuring the Database Tier
- •iSQL*Plus Security
- •Using Administration Privileges
- •Enabling User Security
- •Adding Entries to an Oracle HTTP Server Authentication File
- •Logging In Using Oracle HTTP Server Authentication
- •Security Usage Notes
- •Configuring Globalization Support
- •Web Browser - client tier:
- •Oracle HTTP Server - middle tier:
- •Oracle9i - database tier:
- •3 The iSQL*Plus User Interface
- •The iSQL*Plus Log In Screen
- •Help Icon
- •Username:
- •Password:
- •Connection Identifier:
- •Privilege:
- •Clear
- •The iSQL*Plus Work Screen
- •Password Icon
- •Log Out Icon
- •Help Icon
- •Enter statements:
- •Script location:
- •Browse...
- •Load Script
- •Execute:
- •Output:
- •Clear Screen
- •Save Script
- •The Change Password Screen
- •Help Icon
- •Username:
- •Old password:
- •New password:
- •Retype new password:
- •Change Password
- •Clear
- •Cancel
- •4 Using iSQL*Plus
- •Running iSQL*Plus
- •Entering Statements
- •Loading Scripts
- •Entering Substitution Variables
- •The Define Substitution Variables Screen
- •Password Icon
- •Log Out Icon
- •Help Icon
- •Define Substitution Variables
- •Submit for Execution
- •Cancel
- •Creating Dynamic Reports
- •Using SET and COLUMN Commands
- •Getting Help
- •Exiting iSQL*Plus
- •5 Command Reference
- •SQL*Plus Command Summary
- •@ (“at” sign)
- •@@ (double “at” sign)
- •/ (slash)
- •ARCHIVE LOG
- •ATTRIBUTE
- •BREAK
- •BTITLE
- •CLEAR
- •COLUMN
- •COMPUTE
- •CONNECT
- •COPY
- •DEFINE
- •DESCRIBE
- •DISCONNECT
- •EXECUTE
- •HELP
- •LIST
- •PROMPT
- •RECOVER
- •REMARK
- •REPFOOTER
- •REPHEADER
- •SHOW
- •SHUTDOWN
- •START
- •STARTUP
- •TIMING
- •TTITLE
- •UNDEFINE
- •VARIABLE
- •WHENEVER OSERROR
- •WHENEVER SQLERROR
- •SQL*Plus Error Messages and Codes
- •iSQL*Plus Error Messages
- •COPY Command Messages
- •PRODUCT_USER_PROFILE Table
- •Creating the PUP Table
- •PUP Table Structure
- •Description and Use of PUP Columns
- •PUP Table Administration
- •Disabling SQL*Plus, SQL, and PL/SQL Commands
- •Creating and Controlling Roles
- •Disabling SET ROLE
- •Disabling User Roles
- •Glossary
- •Index
5
Command Reference
This chapter contains descriptions of SQL*Plus commands that are accessible through iSQL*Plus. Use this chapter for reference only. Command descriptions are listed alphabetically, and each description contains the following parts:
Syntax |
Shows how to enter the command and provides a brief |
|
description of the basic uses of the command. Refer to |
|
"Conventions in Code Examples" in the Preface for an |
|
explanation of the syntax notation |
Terms |
Describes the function of each term or clause appearing |
|
in the syntax. |
Usage |
Provides additional information on uses of the |
|
command and on how the command works. |
Examples |
Gives one or more examples of the command. |
A summary table that lists and briefly describes SQL*Plus commands precedes the individual command descriptions.
Command Reference 5-1
SQL*Plus Command Summary
SQL*Plus Command Summary
Command |
Page |
Description |
|
|
|
@ |
5-5 |
Runs the SQL*Plus statements in the specified command file. |
|
|
The command file can be called from the local file system or |
|
|
from a web server. |
@@ |
5-7 |
Runs a command file. This command is similar to the @ (“at” |
|
|
sign) command. It is useful for running nested command files |
|
|
because it looks for the specified command file in the same |
|
|
path as the command file from which it was called. |
/ |
5-9 |
Executes the SQL command or PL/SQL block. |
ARCHIVE LOG |
5-10 |
Starts or stops the automatic archiving of online redo log files, |
|
|
manually (explicitly) archives specified redo log files, or |
|
|
displays information about redo log files. |
ATTRIBUTE |
5-13 |
Specifies display characteristics for a given attribute of an |
|
|
Object Type column, and lists the current display |
|
|
characteristics for a single attribute or all attributes. |
BREAK |
5-15 |
Specifies where and how formatting will change in a report, or |
|
|
lists the current break definition. |
BTITLE |
5-20 |
Places and formats a specified title at the bottom of each report |
|
|
page, or lists the current BTITLE definition. |
CLEAR |
5-21 |
Resets or erases the current clause or setting for the specified |
|
|
option, such as BREAKS or COLUMNS. |
COLUMN |
5-23 |
Specifies display characteristics for a given column, or lists the |
|
|
current display characteristics for a single column or for all |
|
|
columns. |
COMPUTE |
5-34 |
Calculates and prints summary lines, using various standard |
|
|
computations, on subsets of selected rows, or lists all |
|
|
COMPUTE definitions. |
CONNECT |
5-40 |
Connects a given user to Oracle. |
COPY |
5-42 |
Copies results from a query to a table in a local or remote |
|
|
database. |
DEFINE |
5-46 |
Specifies a user variable and assigns it a CHAR value, or lists |
|
|
the value and variable type of a single variable or all variables. |
DESCRIBE |
5-48 |
Lists the column definitions for the specified table, view, or |
|
|
synonym or the specifications for the specified function or |
|
|
procedure. |
5-2 iSQL*Plus User’s Guide and Reference
SQL*Plus Command Summary
Command |
Page |
Description |
|
|
|
DISCONNECT |
5-54 |
Commits pending changes to the database and logs the current |
|
|
user off Oracle, but does not exit SQL*Plus. |
EXECUTE |
5-55 |
Executes a single PL/SQL statement. |
HELP |
5-56 |
Accesses the SQL*Plus help system. |
LIST |
5-57 |
Lists one or more lines of the buffer. |
5-59 |
Displays the current value of a bind variable. |
|
PROMPT |
5-61 |
Sends the specified message to the user’s screen. |
RECOVER |
5-62 |
Performs media recovery on one or more tablespaces, one or |
|
|
more datafiles, or the entire database. |
REMARK |
5-69 |
Begins a comment in a command file. |
REPFOOTER |
5-70 |
Places and formats a specified report footer at the bottom of |
|
|
each report, or lists the current REPFOOTER definition. |
REPHEADER |
5-72 |
Places and formats a specified report header at the top of each |
|
|
report, or lists the current REPHEADER definition. |
RUN |
5-75 |
Lists and runs the SQL command or PL/SQL block currently |
|
|
stored in the buffer. |
SET |
5-76 |
Sets a system variable to alter the SQL*Plus environment for |
|
|
your current session. |
SHOW |
5-96 |
Shows the value of a SQL*Plus system variable or the current |
|
|
SQL*Plus environment. |
SHUTDOWN |
5-101 |
Shuts down a currently running Oracle instance. |
START |
5-103 |
Runs the SQL*Plus statements in the specified command file. |
|
|
The command file can only be called from a uri. |
STARTUP |
5-105 |
Starts an Oracle instance and optionally mounts and opens a |
|
|
database. |
TIMING |
5-108 |
Records timing data for an elapsed period of time, lists the |
|
|
current timer’s title and timing data, or lists the number of |
|
|
active timers. |
TTITLE |
5-110 |
Places and formats a specified title at the top of each report |
|
|
page, or lists the current TTITLE definition. |
UNDEFINE |
5-114 |
Deletes one or more user variables that you defined either |
|
|
explicitly (with the DEFINE command) or implicitly (with an |
|
|
argument to the START command). |
Command Reference 5-3
SQL*Plus Command Summary
Command |
Page |
Description |
|
|
|
VARIABLE |
5-115 |
Declares a bind variable that can be referenced in PL/SQL. |
WHENEVER |
5-122 |
Performs the specified action if an operating system command |
OSERROR |
|
generates an error. |
WHENEVER |
5-123 |
Performs the specified action if a SQL command or PL/SQL |
SQLERROR |
|
block generates an error. |
|
|
|
5-4 iSQL*Plus User’s Guide and Reference