Nested Windows shell scripts for rman backups

From: Schauss, Peter (ESS) <"Schauss,>
Date: Fri, 26 Jul 2013 13:27:45 +0000
Message-ID: <8AE45871F749FC4CBBE053CF2F8A493C0D19653C_at_XMBVAG74.northgrum.com>



My apologies if this is too far off topic. I am running several instances of Oracle 11.2.0.3 and 11.1.0.7 on some Windows 2003 servers, multiple instances on each server. Our Grid Control 11g environment has proved a bit unreliable so I am trying to setup Windows scripts for my rman backups similar to what I do on my UNIX servers. Rather than have a separate task to backup each instance, I created a script called run_rman.cmd to run a single backup and created a master script to call it multiple times passing the instance name as a parameter. The master script looks like this:

e:\oracle\admin\batch\run_rman.cmd <instance1> >e:\oracle\admin\batch\run_rman_<instance1>.log 2>&1

e:\oracle\admin\batch\run_rman.cmd <instance2> >e:\oracle\admin\batch\run_rman_<instance2>.log 2>&1

...

When I run it, however, it runs the first instance of run_rman.cmd and then quits. What am I doing wrong here?

Thanks,
Peter Schauss

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jul 26 2013 - 15:27:45 CEST

Original text of this message