Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Simple Recovery Question

Simple Recovery Question

2005-12-08       - By Sunil Bhola

Reply:     1     2     3     4  

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
>&nbsp;</DIV>  <DIV>I think this case would help you :-</DIV>  <DIV>&nbsp;</DIV>
 <DIV>Restore of datafiles and controlfile from a (hot or cold) <BR>&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp; backup, and complete recovery. A datafile has been
added<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since the controlfile was backed
up<BR><BR>&nbsp;&nbsp; Oracle7 backup: Cold or hot backup of datafiles and
controlfile<BR>&nbsp;&nbsp; Oracle8 backup: RMAN offline or online database
backup<BR>&nbsp;&nbsp; Target database mode: Archivelog<BR>&nbsp;&nbsp; Loss:
All current datafiles and controlfiles have been lost. <BR>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Online redo logs are still available.<BR>&nbsp;
&nbsp; Requirement: Restore and complete
recovery<BR><BR>&nbsp;&nbsp; This scenario is not uncommon. A datafile has
been added to the<BR>&nbsp;&nbsp; database since the last backup was taken, and
the DBA now has to<BR>&nbsp;&nbsp; restore from the backup (including the
controlfile) and has no<BR>&nbsp;&nbsp; copy of the new datafile.<BR><BR>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. Restore the hot or cold database backup
(including the<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
controlfile backup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. Restore archived
logs if required for recovery<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. Start
a recovery (using backup controlfile). The recovery <BR>&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session will fail with errors:<BR>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORA-01244 (See ORA-01244.ora-code.com): unnamed
datafile(s) added to controlfile ...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORA-01110 (See ORA-01110.ora-code.com): data file N:
'&lt;filename&gt;'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
At this stage, create a new datafile:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALTER DATABASE CREATE DATAFILE....<BR>&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp; o. Continue recovery<BR>&nbsp;&nbsp;&nbsp;&nbsp; Notes
:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. See [NOTE:29430.1] for full details
of recovery in this<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
situation<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. This technique is only
available from Oracle7.3+. Prior<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; to Oracle7.3 the newly added datafile would have been lost<BR><BR>
&nbsp;&nbsp; Oracle 8 (RMAN) restore/recovery:<BR>&nbsp;&nbsp;&nbsp;&nbsp;
Target database mode: Instance started, database not mounted<BR>&nbsp;&nbsp;
&nbsp;&nbsp; Example:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RMAN&gt; run {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RMAN&gt; alloca
te
channel t1 type 'sbt_tape';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RMAN&gt;
restore controlfile to '&lt;destination&gt;';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; RMAN&gt; sql "alter database mount";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; RMAN&gt; restore database skip tablespace &lt;newtbs&gt;;<BR>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; RMAN&gt; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; At
this stage, any RMAN recovery (if successful - see <BR>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; [BUG:720033] below) will run into the same warnings as <BR>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; traditional recovery i.e. ORA-01244 (See ORA-01244.ora-code.com), ORA-01110 (See ORA-01110.ora-code.com). I
suggest using&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Oracle7<BR>techniques to
rolfoward the database, create the new <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
datafile, and complete the media recovery.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; Notes:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; o. The 'restore database skip tablespace...'
command
can be<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used if the
new datafile is the only file in this tbs, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; otherwise use multiple 'recover datafile' commands to
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; recover all other
datafiles.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o. I encountered a problem
when using the 'recover database<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; skip tablespace....' command. See bug 720033 for details.<BR><BR>
<BR>Regards,</DIV>  <DIV>Sunil Bhola</DIV>  <DIV><BR><BR><B><I>"Johnson, George"
&lt;GJohnson@(protected)&gt;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Off the top of my h
ead
...</SPAN></FONT></DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=208283409
-08122005><FONT face=Arial color=#0000ff size=2>&nbsp;&nbsp;&nbsp; </FONT></SPAN
></DIV>  <DIV><SPAN class=208283409-08122005><FONT face=Arial color=#0000ff size
=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Restore DB
.</FONT></SPAN></DIV>  <DIV><SPAN class=208283409-08122005>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial color=#0000ff
size=2>Start recovery until time X</FONT></SPAN></DIV>  <DIV><SPAN class
=208283409-08122005>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; <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>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Carry on recovering
until time X</FONT></SPAN></DIV>  <DIV><SPAN
class=208283409-08122005>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp; </SPAN></DIV>  <DIV><SPAN class=208283409-08122005>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>  <DIV><SPAN class=208283409-08122005>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>  <DIV>
<FONT face=Tahoma><FONT size=2><SPAN class=208283409-08122005></SPAN></FONT><
/FONT>&nbsp;</DIV>  <DIV><FONT face=Tahoma><FONT size=2><SPAN class=208283409
-08122005>&nbsp;</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>&nbsp;</DIV>  
<DIV>I have a recovery scenario as given below...</DIV>  <DIV>&nbsp;</DIV>  <DIV
>T1&gt; Hot backup taken of the whole database.</DIV>  <DIV>T2&gt; A new
tablespace TS05 created in the database.</DIV>  <DIV>T3&gt; Database crashes
and all data files got corrupted.</DIV>  <DIV>&nbsp;</DIV>  <DIV>NOTE: All the
archive logs are intact and no back up for TS05 tablespace exists.</DIV>  <DIV>
&nbsp;</DIV>  <DIV>How to get the recover the database till time T3?</DIV>  <DIV
>&nbsp;</DIV>  <DIV>Would appreciate if a step by step solution is given to the
above scenario.</DIV>  <DIV>&nbsp;</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>&nbsp;<
/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>&nbsp;</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>