备份命令之前在Server 2003上面没报任何错,在Server 2008上就出问题了。
部分.bat命令:
echo run {
echo allocate channel c1 type disk;
echo allocate channel c2 type disk;
echo allocate channel c3 type disk;
echo allocate channel c4 type disk;
echo backup %BACKUPTYPE% format *%BACKUP_DIR%\%NAME%*;
echo backup archivelog all delete all input format *%BACKUP_DIR%\%ARCHIVE%*;
echo backup current controlfile format *%BACKUP_DIR%\%CTL%*;
echo crosscheck backup;
echo delete noprompt obsolete;
echo release channel c1;
echo release channel c2;
echo release channel c3;
echo release channel c4;
echo }
日志报错部分:
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: ";"
RMAN-01008: the bad identifier was: c1
RMAN-01007: at line 1 column 17 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01007: at line 1 column 19 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: ";"
RMAN-01008: the bad identifier was: c2
RMAN-01007: at line 1 column 17 file: standard input
部分.bat命令:
echo run {
echo allocate channel c1 type disk;
echo allocate channel c2 type disk;
echo allocate channel c3 type disk;
echo allocate channel c4 type disk;
echo backup %BACKUPTYPE% format *%BACKUP_DIR%\%NAME%*;
echo backup archivelog all delete all input format *%BACKUP_DIR%\%ARCHIVE%*;
echo backup current controlfile format *%BACKUP_DIR%\%CTL%*;
echo crosscheck backup;
echo delete noprompt obsolete;
echo release channel c1;
echo release channel c2;
echo release channel c3;
echo release channel c4;
echo }
日志报错部分:
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: ";"
RMAN-01008: the bad identifier was: c1
RMAN-01007: at line 1 column 17 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01007: at line 1 column 19 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: ";"
RMAN-01008: the bad identifier was: c2
RMAN-01007: at line 1 column 17 file: standard input