What are the types of RMAN commands?
Question is closed for new answers.
meda Changed status to publish 08/03/2022
There are two types of RMAN commands:
- Stand-alone command: executed individually at the RMAN prompt
Example:
RMAN> restore database; RMAN > backup database;
- Job command: executed as a group and sequentially and must be within the braces of a RUN command
RMAN stops executing of the commands if any command within the run command fails.
Examples a job command:
RMAN> run 2> { 3> 4> crosscheck backup; 5> crosscheck archivelog all; 6> crosscheck copy; 7> crosscheck backup of database; 8> crosscheck backup of controlfile' 9> 10> delete obsolete; 11> delete expired backup; 12> delete expired backupset; 13> delete noprompt expired archivelog all; 14> delete noprompt expired backup of database; 15> delete noprompt expired backup of controlfile; 16> 17> BACKUP DATABASE; 18> 19> }
meda Selected answer as best 18/02/2022