Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Errors During Recovery Using RMAN
Errors During Recovery Using RMANFirst, I'd worry why you are restoring and recovering the entire database when you say that the actual requirement is simply to recover a particular datafile.
Secondly, all recoveries with RMAN require the relevant files to be offline (so if you are in MOUNT stage, that's OK). So if you were trying to actually restore just one datafile, you'd have to have a line in there to issue the 'alter tablespace blah offline' command.
Thirdly, it appears not to be able to overwrite one file that already exists (I presume all the other files existed too, but clearly it was able to overwrite them). I can only think of two reasons why RMAN wouldn't be able to overwrite a file: one, the file is actually still online (unlikely), and two, because RMAN doesn't have rights to replace it. So, check the permissions on the datafile that RMAN seems to be spewing about, and make sure that they are identical to all the others.
Finally, it's not a good idea to post in HTML. Plenty of readers don't work with it, and plenty of sensible people get a bit worried about nasties that might be lurking within HTML documents.
Regards
HJR
"Anurag Minocha" <AMinocha_at_herold.com> wrote in message
news:EBBA6D3A81229C42981E3AEA79BF5A4E11129B_at_jshemail.herold.com...
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=428428372RMAN-08019: channel c2: restoring datafile 1 RMAN-08509: destination for restore of datafile 1: C:\ORA805
RMAN-03026: error recovery releasing channel resources RMAN-08031: released channel: c2 RMAN-00569: ================error message stack follows================ RMAN-03002: failure during compilation of commandRMAN-03013: command type: restore
ORA-27038: skgfrcre: file exists OSD-04010: option specified, file already exists ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line925