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 Script

Gary SinghMar 11 2016 — edited Mar 11 2016

Hi friends,

I have windows 2008 server. c,d and f local drive. d has database files and f is FRA. i was testing rman on dev. so i created rman backup script and put them on desktop. they work fine. but when i move those scripts to any other folder or to f drive. it doesn't work.

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-00552: syntax error in command line arguments

RMAN-01009: syntax error: found "logs": expecting one of: "append, auxiliary, ca

talog, checksyntax, cmdfile, log, msgno, nocatalog, pipe, script, send, target,

timeout, using, double-quoted-string, identifier, integer, single-quoted-string,

@, ;"

RMAN-01007: at line 2 column 1 file: command line arguments.

---------------------------------------------------------------------------------------------------------------------------------------------------

here is the scripts

first script

rman target sys/********@devcon @F:\RMAN logs\backup2.cmd log=F:\RMAN logs\axdevfull_%date:~10,4%_%date:~7,2%_%date:~4,2%.log

second script

run

{

allocate channel d1 type disk;

allocate channel d2 type disk;

allocate channel d3 type disk;

backup as backupset database;

backup archivelog all not backed up 1 times delete input;

backup current controlfile;

report obsolete;

delete noprompt obsolete;

release channel d1;

release channel d2;

release channel d3;

}

what i am doing wrong?

Thanks.

This post has been answered by top.gun on Mar 11 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2016
Added on Mar 11 2016
2 comments
1,251 views