With the exception of the change, crosscheck, and delete commands, stand-alone commands are self-contained. In contrast, job commands must appear within the brackets of a run command. After you connect to the target and optional recovery catalog, you will execute most of your RMAN commands within run. Following is a typical example of a run
allocate channel c1 type 'sbt_tape';
Unlike job commands, stand-alone commands do not appear as sub-commands
within run. Following are some of the commands that can appear by themselves:
create catalog, drop catalog, upgrade catalog
create script, delete script, replace script
delete expired backupset
Some of these commands are not strictly stand-alone, however, because they must be preceded by an allocate channel for maintenance command.
To compile and execute job commands, which are one or more statements executed within the braces of run. The run command compiles the list of job commands into one or more job steps and then executes them immediately. RMAN compiles and executes each command before processing the next one.
Execute this command only at the RMAN prompt.
You must precede and follow the list of job commands with an opening and closing brace
Keywords and Parameters
Refer to individual entries for information about commands that you can run from the RMAN prompt.