Skip to Main Content

Oracle Database Discussions

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!

regarding rman .bat secript and cmd file

890432Oct 12 2011 — edited Oct 14 2011
Hello every1

I was trying to schadule my rman automatic backup on windows using bat file here is the detail

backup_weekly_db1.bat
rman target sys/sys@test
cmdfile=C:\oracle\backup_weekly_db1.cmd
log=C:\oracle\backup_complete_db1_%date:~4,2%_%date:~7,2%_%date:~10%.log


and

backup_weekly_db1.cmd
run{
Backup check logical as compressed backupset incremental level=0 device type disk tag='weekly_backup' database plus archivelog delete all input;
Backup current controlfile;
}

i am just getting connetd to target but backup is not further going here is out put

C:\Windows\system32>backup_weekly_db1.bat
'backup_weekly_db1.bat' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>set ORACLE_HOME=\oracle\product\10.2.0\db_1

C:\Windows\system32>set ORACLE_SID=test

C:\Windows\system32>rman target=/

Recovery Manager: Release 10.2.0.4.0 - Production on Wed Oct 12 02:34:12 2011

Copyright (c) 1982, 2007, Oracle. All rights reserved.

connected to target database: TEST (DBID=2061337046)

RMAN>

wiating for the answer

thanks and regards
firdous
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2011
Added on Oct 12 2011
11 comments
3,695 views