Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Problem
You want to develop a Windows batch file to kick off RMAN to back up the database on a Windows server.
A batch file in Windows to script RMAN commands is similar in concept to a shell script in Unix, but you need to shift directions. In the Unix script, you used the RMAN commands inline in the script. In Windows, you will use a slightly different approach, as shown here:
The batch file needs some utilities outside what are available in Windows:
realdate. We give a source for this utility in the "How It Works" section.