RMAN-01009: syntax error
209473Apr 13 2013 — edited Apr 16 2013Could you please help me figure out the syntax for this small script. I am getting an error here.
run {
backup as compressed backupset
database plus archivelog
delete all input;
include current controlfile spfile;
}
exit;
RMAN> run {
2> backup as compressed backupset
3> database plus archivelog
4> delete all input;
5> include
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "include": expecting one of: "allocate, alter, backup
, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, dup
licate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recov
er, release, replicate, report, restore, resync, }, set, setlimit, sql, switch, start
up, shutdown, send, show, transport, validate"