RMAN-01009: syntax error: found "identifier": expecting one of: "for"
kkrm333Jun 24 2010 — edited Jun 25 2010Hi,
I am trying to run rman script using a batch file in my 10g db installed on windows 2003 server.
Rman script is like this
sample.rman
crosscheck archivelog all;
allocate channel dsk type disk format 'g:\oracle_backups\PRISM\rman\%U';
backup database plus archivelog;
backup current controlfile;
delete force noprompt OBSOLETE RECOVERY WINDOW OF 6 DAYS;
exit;
rman.bat
rman cmdfile prism.rman >>c:\logs\rman_date.log
When I execute rman.bat, getting the following error:
Recovery Manager: Release 10.2.0.4.0 - Production on Wed Jun 23 20:07:36 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN> crosscheck archivelog all;
2> allocate channel dsk
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: "for"
RMAN-01008: the bad identifier was: dsk
RMAN-01007: at line 2 column 18 file: prism.rman
Please help me why this error?
Thanks,
Kavitha