Oracle8i Backup and Recovery Guide
Release 8.1.5

A67773-01

Library

Product

Contents

Index

Prev Prev Next


rmanCmd

Syntax


Purpose

To execute stand-alone commands, which are run from the RMAN prompt.

Requirements

Refer to individual entries for information about commands that you can execute from the RMAN prompt.

Keywords and Parameters

@filename  

executes a series of RMAN commands stored in an O/S file with the specified full pathname, e.g., @$ORACLE_HOME/dbs/cmd/cmd1.rman. If you do not specify the full pathname, the current working directory is assumed, e.g., @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 only complete Recovery Manager commands. A syntax error will result if the file contains a partial command.  

@@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 O/S command line, then runs the command file cmd1.f:

% rman target / catalog rman/rman@rcvcat
RMAN> @$ORACLE_HOME/dbs/cmd/cmd1.f
Crosschecking Backups

This example allocates a maintenance channel, crosschecks backups of tablespace FOO, then backs up tablespace FOO:

allocate channel for maintenance type disk;
crosscheck backup of tablespace foo;
delete expired backup of tablespace foo;
run {
     allocate channel c1 type disk;
     backup tablespace foo;
}
release channel;

Related Topics

"run"




Prev

Top

Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index