CHAPTER 9Scripting RMAN
Although RMAN allows interactive commands to be entered from the command line, there is little use for some of them in real life, especially for the commands that back up the database. In almost all cases, you'll want to automate your processes to back up your databases, delete archived redo logs, and so on. You should set up these tasks in such a way that they can run without any human intervention. This means you need to script RMAN commands, and the scripts need to be run by some sort of automated scheduler such as
cron. In this chapter, you will learn different ways to script and schedule RMAN commands, both in Unix and in Windows.
Approaches to Scripting
RMAN provides for several approaches to scripting. We discuss ...