Oracle8i Recovery Manager User's Guide and Reference
Release 2 (8.1.6)

Part Number A76990-01

Library

Product

Contents

Index

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

Recovery Manager Command Syntax, 39 of 50


rmanCommand

Syntax


basicCommand::=

databaseCommand::=

maintenanceCommand::=

scriptCommand::=

Purpose

To execute stand-alone commands, which are run from the RMAN prompt. The basic categories of stand-alone commands are:

Command Type  Purpose 

Basic commands 

Perform the most fundamental RMAN operations: connecting, exiting, running jobs, making reports, and so forth. 

Database commands 

Start, shut down, and open the database, and execute SQL. 

Maintenance commands 

Manage the RMAN repository. 

Script commands 

Manage stored RMAN scripts. 

Requirements

Refer to individual entries in this chapter for information about RMAN commands.

Keywords and Parameters

@filename 

executes a series of RMAN commands stored in an operating system file with the specified full pathname, for example, @$ORACLE_HOME/dbs/cmd/cmd1.rman. If you do not specify the full pathname, the current working directory is assumed, for example, @cmd1.rman. Do not use quotes around the string or leave whitespace between the @ and filename. RMAN processes the specified file as if its contents had appeared in place of the @ command.

Note: The file must contain complete RMAN commands; partial commands generate syntax errors. 

@@filename 

is identical to @filename unless used within a script. If contained in a script, @@filename directs RMAN to look for the specified filename in the same path as the command file from which it was called.

For example, assume that your working directory on UNIX is $ORACLE_HOME, and you invoke RMAN as follows:

% rman @$ORACLE_HOME/rdbms/admin/dba/scripts/cmd1.rman 

Assume that the command @@cmd2.rman appears inside the cmd1.rman script. In this case, the @@ command directs RMAN to look for the file cmd2.rman in the directory $ORACLE_HOME/rdbms/admin/dba/scripts

exit 

exits Recovery Manager. 

Examples

Running a Command File

This example connects to the target database and recovery catalog from the command line, then runs the command file cmd1.f:

% rman target / catalog rman/rman@rcat
RMAN> @$ORACLE_HOME/dbs/cmd/cmd1.f

Related Topics

"run"


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

All Rights Reserved.

Library

Product

Contents

Index