5 Replies Latest reply: Apr 7, 2011 3:52 PM by 853661 RSS

    RMAN Script in  a Batch File

    491474
      Why doesn't this work? When I run this windows batch file it stops at the RMAN prompt and does not execute the run {}

      Here is the contenets of the batch file.

      RMAN TARGET SYS/rmantst@RMANTST CATALOG=RMAN/RMAN@OEMREP


      run
      {
      allocate channel d1 type disk;
      sql 'alter system switch logfile';
      BACKUP FULL FORMAT 'E:\RMANTST\RMANTST_%D_%M_%Y_%U' DATABASE PLUS ARCHIVELOG DELETE INPUT;
      }


      Exit