Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMAN Backup using .bat file for use in creating a scheduled task in Windows

Geordie DBADec 11 2007 — edited Dec 11 2007
Hi All,

I am trying to backup a small 10G Oracle (noarchivemode+no catalog) Database on a Windows 2003 Server.

I want to use a scheduled task in windows to do this (not EM as I also have 9i databases I wish to utalise the script on) and am going wrong somewhere with the scripting.

I have set other parameters like backup control file within RMAN config

Can anyone tell me what I am doing wrong? I get invalid SQL on the first command 'shutdown immediate'

Bat File Contains

RMAN target user/password@database nocatalog CMDFILE C:\RMAN_FULLBACKUP.RCV LOG C:\RMAN_FULLBACKUP.LOG

RCV file Contains

SQL "shutdown immediate";
SQL "startup mount";
backup as compressed backupset database;
SQL "alter database open";
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2008
Added on Dec 11 2007
2 comments
2,397 views