Hi,
I am trying to recover a lost datafile using rman and get errors.

Here is the script I am running and below that are errors.



RMAN> run {
2> allocate channel c2 type disk;
3> restore database;
4> recover database;
5> release channel c2;
6> }

RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c2
RMAN-08500: channel c2: sid=11 devtype=DISK

RMAN-03022: compiling command: restore

RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel c2: starting datafile backupset restore
RMAN-08502: set_count=3 set_stamp=428428372
RMAN-08019: channel c2: restoring datafile 1
RMAN-08509: destination for restore of datafile 1: C:\ORA805\DATABASE\SYS1ORCL.O
RA
RMAN-08019: channel c2: restoring datafile 2
RMAN-08509: destination for restore of datafile 2: C:\ORA805\DATABASE\USR1ORCL.O
RA
RMAN-08019: channel c2: restoring datafile 3
RMAN-08509: destination for restore of datafile 3: C:\ORA805\DATABASE\RBS1ORCL.O
RA
RMAN-08019: channel c2: restoring datafile 4
RMAN-08509: destination for restore of datafile 4: C:\ORA805\DATABASE\TMP1ORCL.O
RA
RMAN-08019: channel c2: restoring datafile 5
RMAN-08509: destination for restore of datafile 5: C:\ORA805\DATABASE\USR2ORCL.O
RA
RMAN-08019: channel c2: restoring datafile 6
RMAN-08509: destination for restore of datafile 6: C:\ORA805\DATABASE\TEMPORCL.O
RA
RMAN-08019: channel c2: restoring datafile 7
RMAN-08509: destination for restore of datafile 7: C:\ORA805\DATABASE\REC_DATAOR
CL.ORA
RMAN-03026: error recovery releasing channel resources
RMAN-08031: released channel: c2
RMAN-00569: ================error message stack follows================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03007: retryable error occurred during execution of command: IRESTORE
RMAN-07004: unhandled exception during command execution on channel c2
RMAN-10032: unhandled exception during execution of job step 1: ORA-06512: at li
ne 148
RMAN-10035: exception raised in RPC: ORA-19624: operation failed, retry possible

ORA-19504: failed to create file "C:\ORA805\DATABASE\REC_DATAORCL.ORA"
ORA-27038: skgfrcre: file exists
OSD-04010: option specified, file already exists
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 925
RMAN-10031: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPP
IECE

Thanks
Anurag