Search notes:

RMAN: command file

An (RMAN) command file stores a sequence of commands, possibly because they need to be run multiple times, perhabs on different databases.
A command file is executed with the @ or @@ commands from the RMAN prompt or from the OS system prompt with the @ or CMDFILE parameters.

Substitution variables

As in SQL*Plus, there are substitution variables: &1, &2, …
The values for the substitution variables are set from the OS command prompt like so:
$ rman @/path/to/script/file using value_one value_two value_three …

See also

RMAN

Index