An (
RMAN) command file stores a sequence of
commands, possibly because they need to be run multiple times, perhabs on different databases.
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 …