Hi Everybody, I think you should first create that tablespace with all the files and then do the tablesapce recovery only, as archive files are there.. you can do that tablespace recovery without any issue..
I think this case would help you :-
Restore of datafiles and controlfile from a (hot or cold) backup, and complete recovery. A datafile has been added since the controlfile was backed up
Oracle7 backup: Cold or hot backup of datafiles and controlfile Oracle8 backup: RMAN offline or online database backup Target database mode: Archivelog Loss: All current datafiles and controlfiles have been lost. Online redo logs are still available. Requirement: Restore and complete recovery
This scenario is not uncommon. A datafile has been added to the database since the last backup was taken, and the DBA now has to restore from the backup (including the controlfile) and has no copy of the new datafile.
o. Restore the hot or cold database backup (including the controlfile backup) o. Restore archived logs if required for recovery o. Start a recovery (using backup controlfile). The recovery session will fail with errors: ORA-01244 (See ORA-01244.ora-code.com): unnamed datafile(s) added to controlfile ... ORA-01110 (See ORA-01110.ora-code.com): data file N: '<filename>' At this stage, create a new datafile: ALTER DATABASE CREATE DATAFILE.... o. Continue recovery Notes: o. See [NOTE:29430.1] for full details of recovery in this situation o. This technique is only available from Oracle7.3+. Prior to Oracle7.3 the newly added datafile would have been lost
Oracle 8 (RMAN) restore/recovery: Target database mode: Instance started, database not mounted Example: RMAN> run { RMAN> allocate channel t1 type 'sbt_tape'; RMAN> restore controlfile to '<destination>'; RMAN> sql "alter database mount"; RMAN> restore database skip tablespace <newtbs>; RMAN> } At this stage, any RMAN recovery (if successful - see [BUG:720033] below) will run into the same warnings as traditional recovery i.e. ORA-01244 (See ORA-01244.ora-code.com), ORA-01110 (See ORA-01110.ora-code.com). I suggest using Oracle7 techniques to rolfoward the database, create the new datafile, and complete the media recovery.
Notes: o. The 'restore database skip tablespace...' command can be used if the new datafile is the only file in this tbs, otherwise use multiple 'recover datafile' commands to recover all other datafiles. o. I encountered a problem when using the 'recover database skip tablespace....' command. See bug 720033 for details.
Regards, Sunil Bhola
"Johnson, George" <GJohnson@(protected)> wrote: Off the top of my head ...
Restore DB. Start recovery until time X When it complains about files missing, create them with the "alter database" command Carry on recovering until time X
You will most definitely, want to read up on your recovery.
Rgds
-- --Original Message-- -- From: DBA Deepak [mailto:oracle.tutorials@(protected)] Sent: 07 Dec 2005 4:14 To: oracle-l@(protected) Subject: Simple Recovery Question
Hi Gurus,
I have a recovery scenario as given below...
T1> Hot backup taken of the whole database. T2> A new tablespace TS05 created in the database. T3> Database crashes and all data files got corrupted.
NOTE: All the archive logs are intact and no back up for TS05 tablespace exists.
How to get the recover the database till time T3?
Would appreciate if a step by step solution is given to the above scenario.
-- Regards,
Deepak Oracle DBA
**************************************************************************** This message contains confidential information and is intended only for the individual or entity named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as an invitation or offer to buy or sell any securities or related financial instruments. GAM operates in many jurisdictions and is regulated or licensed in those jurisdictions as required. ****************************************************************************
QUERIES in Oracle, Feel free to Join:
http://groups.yahoo.com/group/oracle_expert/
Regards, Sunil Bhola Oracle_Expert, Moderator
-- ---- ---- ---- ---- ---- ----- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping <DIV>Hi Everybody,</DIV> <DIV>I think you should first create that tablespace with all the files and then do the tablesapce recovery only, as archive files are there.. you can do that tablespace recovery without any issue..</DIV> <DIV > </DIV> <DIV>I think this case would help you :-</DIV> <DIV> </DIV> <DIV>Restore of datafiles and controlfile from a (hot or cold) <BR>   ; backup, and complete recovery. A datafile has been added<BR> since the controlfile was backed up<BR><BR> Oracle7 backup: Cold or hot backup of datafiles and controlfile<BR> Oracle8 backup: RMAN offline or online database backup<BR> Target database mode: Archivelog<BR> Loss: All current datafiles and controlfiles have been lost. <BR> Online redo logs are still available.<BR> Requirement: Restore and complete recovery<BR><BR> This scenario is not uncommon. A datafile has been added to the<BR> database since the last backup was taken, and the DBA now has to<BR> restore from the backup (including the controlfile) and has no<BR> copy of the new datafile.<BR><BR> o. Restore the hot or cold database backup (including the<BR> controlfile backup)<BR> o. Restore archived logs if required for recovery<BR> o. Start a recovery (using backup controlfile). The recovery <BR>   ; session will fail with errors:<BR> ORA-01244 (See ORA-01244.ora-code.com): unnamed datafile(s) added to controlfile ...<BR> ORA-01110 (See ORA-01110.ora-code.com): data file N: '<filename>'<BR> At this stage, create a new datafile:<BR> ALTER DATABASE CREATE DATAFILE....<BR>   ; o. Continue recovery<BR> Notes :<BR> o. See [NOTE:29430.1] for full details of recovery in this<BR> situation<BR> o. This technique is only available from Oracle7.3+. Prior<BR> to Oracle7.3 the newly added datafile would have been lost<BR><BR> Oracle 8 (RMAN) restore/recovery:<BR> Target database mode: Instance started, database not mounted<BR> Example:<BR> RMAN> run {<BR> RMAN> alloca te channel t1 type 'sbt_tape';<BR> RMAN> restore controlfile to '<destination>';<BR> RMAN> sql "alter database mount";<BR> RMAN> restore database skip tablespace <newtbs>;<BR> RMAN> }<BR> At this stage, any RMAN recovery (if successful - see <BR> [BUG:720033] below) will run into the same warnings as <BR> traditional recovery i.e. ORA-01244 (See ORA-01244.ora-code.com), ORA-01110 (See ORA-01110.ora-code.com). I suggest using Oracle7<BR>techniques to rolfoward the database, create the new <BR> datafile, and complete the media recovery.<BR> <BR> Notes:<BR> o. The 'restore database skip tablespace...' command can be<BR> used if the new datafile is the only file in this tbs, <BR> otherwise use multiple 'recover datafile' commands to <BR> recover all other datafiles.<BR> o. I encountered a problem when using the 'recover database<BR> skip tablespace....' command. See bug 720033 for details.<BR><BR> <BR>Regards,</DIV> <DIV>Sunil Bhola</DIV> <DIV><BR><BR><B><I>"Johnson, George" <GJohnson@(protected)></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style= "PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2800.1522" name=GENERATOR> <DIV><FONT face=Arial color= #0000ff size=2><SPAN class=208283409-08122005> Off the top of my h ead ...</SPAN></FONT></DIV> <DIV> <SPAN class=208283409 -08122005><FONT face=Arial color=#0000ff size=2> </FONT></SPAN ></DIV> <DIV><SPAN class=208283409-08122005><FONT face=Arial color=#0000ff size =2> Restore DB .</FONT></SPAN></DIV> <DIV><SPAN class=208283409-08122005> <FONT face=Arial color=#0000ff size=2>Start recovery until time X</FONT></SPAN></DIV> <DIV><SPAN class =208283409-08122005> <FONT face=Arial color=#0000ff size=2>When it complains about files missing, create them with the "alter database" command</FONT></SPAN></DIV> <DIV><SPAN class=208283409-08122005><FONT face=Arial color=#0000ff size=2> Carry on recovering until time X</FONT></SPAN></DIV> <DIV><SPAN class=208283409-08122005>   ; </SPAN></DIV> <DIV><SPAN class=208283409-08122005> <FONT face=Arial color= #0000ff size=2>You will most definitely, want to read up on your recovery.</FONT ></SPAN></DIV> <DIV><SPAN class=208283409-08122005><FONT face=Arial color= #0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=208283409-08122005> <FONT face =Arial color=#0000ff size=2>Rgds</FONT></SPAN></DIV> <DIV><SPAN class=208283409 -08122005></SPAN><FONT face=Tahoma><FONT size=2><SPAN class=208283409-08122005> <FONT face=Arial color=#0000ff></FONT></SPAN></FONT></FONT> </DIV> <DIV> <FONT face=Tahoma><FONT size=2><SPAN class=208283409-08122005></SPAN></FONT>< /FONT> </DIV> <DIV><FONT face=Tahoma><FONT size=2><SPAN class=208283409 -08122005> </SPAN>-- --Original Message-- --<BR><B>From:</B> DBA Deepak [mailto:oracle.tutorials@(protected)] <BR><B>Sent:</B> 07 Dec 2005 4:14<BR><B>To:</B> oracle-l@(protected)<BR><B >Subject:</B> Simple Recovery Question<BR><BR></DIV></FONT></FONT> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV>Hi Gurus,</DIV> <DIV> </DIV> <DIV>I have a recovery scenario as given below...</DIV> <DIV> </DIV> <DIV >T1> Hot backup taken of the whole database.</DIV> <DIV>T2> A new tablespace TS05 created in the database.</DIV> <DIV>T3> Database crashes and all data files got corrupted.</DIV> <DIV> </DIV> <DIV>NOTE: All the archive logs are intact and no back up for TS05 tablespace exists.</DIV> <DIV> </DIV> <DIV>How to get the recover the database till time T3?</DIV> <DIV > </DIV> <DIV>Would appreciate if a step by step solution is given to the above scenario.</DIV> <DIV> </DIV> <DIV>-- <BR>Regards,<BR><BR>Deepak<BR >Oracle DBA </DIV></BLOCKQUOTE><FONT size=3><BR><BR>*************************************************************** *************<BR>This message contains confidential information and is intended only <BR>for the individual or entity named. If you are not the named addressee <BR>you should not disseminate, distribute or copy this e-mail. <BR>Please notify the sender immediately by e-mail if you have received <BR>this e-mail by mistake and delete this e-mail from your system.<BR>E-mail transmission cannot be guaranteed to be secure or error-free<BR>as information could be intercepted , corrupted, lost, destroyed, arrive<BR>late or incomplete, or contain viruses. The sender therefore does not<BR>accept liability for any errors or omissions in the contents of this <BR>message which arise as a result of e-mail transmission. <BR>If verification is required please request a hard-copy version.<BR>This message is provided for informational purposes and should not <BR>be construed as an invitation or offer to buy or sell an y securities or<BR>related financial instruments.<BR>GAM operates in many jurisdictions and is <BR>regulated or licensed in those jurisdictions as required.<BR>****************************************************************** **********<BR></FONT></BLOCKQUOTE> <DIV><BR></DIV><BR><BR><DIV> <DIV> <DIV> <DIV> <DIV> <DIV> <DIV> <DIV> <DIV><FONT size=2><FONT size=3><FONT face=verdana color=#434343><STRONG>QUERIES in Oracle, Feel free to Join:</STRONG></FONT></FONT></FONT></DIV> <DIV><STRONG><FONT face=Verdana color=#434343 size=3></FONT></STRONG> < /DIV> <DIV><FONT size=2><FONT size=3><FONT size=+0><FONT face=verdana><STRONG><A href ="http://groups.yahoo.com/group/oracle_expert/"><FONT color=#434343>http:/ /groups.yahoo.com/group/oracle_expert/</FONT></A><FONT color=#ffff00> <BR></FONT ></STRONG></FONT></FONT></FONT></FONT></DIV> <DIV><STRONG><FONT face=verdana></FONT></STRONG> </DIV> <DIV><STRONG><FONT face=verdana>Regards,</FONT></STRONG></DIV> <DIV><FONT face=verdana><FONT size=3><STRONG><FONT color=#ff0000>S</FONT>unil <FONT color=#ff0000>B</FONT>hola</STRONG></FONT></FONT></DIV> <DIV> <DIV><FONT face=verdana size=3><STRONG>Oracle_Expert, Moderator<BR></STRONG>< /FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV><p>
<hr size=1>Yahoo! Shopping<br> Find Great Deals on Holiday Gifts at <a href="http://us.rd.yahoo.com/mail_us /footer/shopping/*http://shopping.yahoo.com/;_ylc =X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1 ">Yahoo! Shopping</a>