From the course: Oracle Database 12c: Backup and Recovery

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Using RMAN scripts

Using RMAN scripts

- [Instructor] Instead of having to manually type backup commands into the RMAN prompt to achieve database backup and recovery, RMAN also supports backup scripts. These scripts can be integrated with a scheduler such as crontab on Linux to run automatic RMAN backups on a regular basis. Let's see RMAN scripts in action. We'll start by opening an RMAN prompt to our target database. So, I'll type RMAN target equals backslash. Now, because we have taken multiple backups throughout this course and to make sure that we won't run out of space on our virtual machine, let's delete any existing backups we have taken of both our database data files, archive read logs and control files. You can find the three delete noprompt backup commands included in your exercise file. The first command deletes any backups of data files, the second commands deletes any backups we have of our archived read logs and the third command deletes…

Contents