iSQL*Plus User's Guide and Reference
Release 9.0.1

Part Number A88826-01
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to beginning of chapter Go to next page

Command Reference, 31 of 38


START

STA[RT] {uri|file_name[.ext] } [arg...]

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. uri is only supported on Windows platforms in this release. Only the uri form is supported in iSQL*Plus.

Terms | Usage | Examples | Top

Refer to the following list for a description of each term or clause:

uri

file_name[.ext]

arg ...

Usage | Terms | Examples | Top

The @ ("at" sign) and @@ (double "at" sign) commands function similarly to START. Disabling the START command in the Product User Profile also disables the @ and @@ commands. See the @ ("at" sign) and @@ (double "at" sign) commands in this chapter for further information on these commands.

Examples | Terms | Usage | Top

A file named PROMOTE with the extension SQL, used to promote employees, might contain the following command:

Keyboard icon
SELECT FIRST_NAME, LAST_NAME, JOB_ID, SALARY
FROM EMP_DETAILS_VIEW
WHERE JOB_ID='&1' AND SALARY>&2;

To run this command file, enter

Keyboard icon
START PROMOTE ST_MAN 7000

or if it is located on a web server, enter a command in the form:

Keyboard icon
START HTTP://HOST.DOMAIN/PROMOTE.SQL ST_MAN 7000
START FTP://HOST.DOMAIN/PROMOTE.SQL  ST_MAN 7000
START GOPHER://HOST.DOMAIN/PROMOTE.SQL ST_MAN 7000

Where HOST.DOMAIN must be replaced by the host.domain name for the web server where the script is located.

In either case, SQL*Plus then executes the following command:

SELECT LAST_NAME, LAST_NAME
FROM EMP_DETAILS_VIEW
WHERE JOB_ID='ST_MAN' AND SALARY>7000;

and displays the results in SQL*Plus.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 2001 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents
Go To Index
Index