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, 3 of 38


@ ("at" sign)

@{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 for a description of the term or clause:

uri

file_name[.ext]

arg...

Usage | Terms | Examples | Top

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, 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 | Terms | Usage | Top

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 © 2001 Oracle Corporation.

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