SQL*Plus User's Guide and Reference
Release 9.0.1

Part Number A88827-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

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

Command Reference, 3 of 52


@ ("at" sign)

Syntax

@{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.

Terms

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

uri

file_name[.ext]

arg...

Usage

In a command file, you can include any command you would normally enter interactively (typically, SQL, SQL*Plus commands, or PL/SQL blocks).

An EXIT or QUIT command used in a command file terminates SQL*Plus.

The @ command functions similarly to START.

If the START command is disabled (see "Disabling SQL*Plus, SQL, and PL/SQL Commands" in Appendix E, "Security"), this will also disable the @ command. See START in this chapter for information on the START command.

SQL*Plus removes the SQLTERMINATOR (a semicolon by default) before the @ command is issued. If you require a semicolon in your command, add a second SQLTERMINATOR. See the SQLTERMINATOR variable of the SET command in this chapter for more information.

Examples

To run a command file named PRINTRPT with the extension SQL, enter

Keyboard icon
@PRINTRPT

To run a command file named WKRPT with the extension QRY, enter

Keyboard icon
@WKRPT.QRY

You can run a script named YEAREND specified by a Uniform Resource Indentifier, and pass values to variables referenced in YEAREND in the usual way:

Keyboard icon
@HTTP://HOST.DOMAIN/YEAREND.SQL VAL1 VAL2
@FTP://HOST.DOMAIN/YEAREND.SQL  VAL1 VAL2
@GOPHER://HOST.DOMAIN/YEAREND.SQL VAL1 VAL2

On a web server configured to serve SQL reports, you could request SQL*Plus to execute a dynamic script by using:

Keyboard icon
@HTTP://HOST.DOMAIN/SCRIPTSERVER?ENDOFYEAR VAL1 VAL2

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

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback