| Oracle9i Recovery Manager Reference Release 1 (9.0.1) Part Number A90136-02 | 
 | 
RMAN Commands , 3 of 60

To execute a series of RMAN commands stored in an operating system file with the specified filename, for example, @@cmd2.rman. The @@ command is identical to the @ command unless it is used within a script. If contained in a script, then @@filename directs RMAN to look for the specified filename in the same directory as the command file from which it was called.
For example, assume that the 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.
Execute at the RMAN prompt or within the braces of a RUN command.
Assume that the command file bkup_db contains the following two lines:
BACKUP DATABASE; @@bkup_logs
The following example executes the command file bkup_db and specifies that it should look for the bkup_logs script in the /scripts directory.
@/scripts/bkup_db
| 
 |  Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. | 
 |