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
Recovery with logs, then incremental, then more logs?

Recovery with logs, then incremental, then more logs?

2006-04-17       - By Allen, Brandon

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hello all, me again -

Hopefully you all had a better weekend then I did - I worked about 20 hours
recovering a crashed production database due to running out of disk space.
Anyway, my question is regarding the unusual recovery process that Oracle
performed - I'm curious if any of you have ever seen a recovery like this
before:

1) Oracle 9.2.0.6 on AIX 5.2
2) L0 incremental backup taken on 4/7
3) L0 incremental backup taken on 4/8, but tape was pulled and shipped to DR
site
4) L1 incrementals taken every night 4/9 - 4/14
5) Database crashes on 4/15 due to full filesystem, database opens, but returns
ORA-607 (See ORA-607.ora-code.com) and ORA-600 (See ORA-600.ora-code.com) [4193] on any DML or DDL statements
6) Restore started, but fails because it can't access L0 backup from 4/8 since
the tape has been sent off site (no copy retained - duh!)
7) L0 backup from 4/8 changed to unavailable in rman
8) Restore restarted and all datafiles from 4/7 L0 backup are restored
successfully
9) Recovery begins restoring & applying 750 logs from all week long
10) I abort the recovery because the restored logs are going to fill up the
filesystem again (poor planning on my fault) and I don't feel like manually
moving them off every 2 hours since I am dreadfully in need of some sleep by
this point
11) I restart the recovery after changing the archive log desination to a
filesystem with plenty of space
12) At this point, rman skips 400 archive logs and instead applies the
incremental backup from 4/14, then continues to apply the remaining logs up
until the morning of 6:30 (which is where I "set until time" to), then it says
recovery is complete
13) I open the database with resetlogs and everything seems peachy so far

It seems to me that if I hadn't aborted the recovery at step 10, rman would
have continued applying all ~750 logs, but since I aborted it and then
restarted, when it reevaluated the position of the database (SCN in datafiles
vs. backups, etc.) it saw that it could now apply the incremental L1 even
though it's base L0 backup (from 4/8) was never restored, due to the
application of redo past the time that it's base L0 backup was taken. Does this
sound correct?  I'm just trying to make sure I understand exactly what happened
.  Anyone else ever seen a recovery like this?

Thanks in advance for any feedback and taking the time to read all this!

Regards,
Brandon


Privileged/Confidential Information may be contained in this message or
attachments hereto. Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind. Opinions, conclusions and
other information in this message that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>Hello all, me again
-</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>Hopefully you all
had a better weekend then I did - I worked about 20 hours recovering a crashed
production database due to running out of disk space.&nbsp; Anyway, my question
is regarding the unusual recovery process that Oracle performed - I'm curious
if
any of you have ever seen a recovery like this before:</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>1) Oracle 9.2.0.6
on
AIX 5.2</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>2) L0 incremental
backup taken on 4/7</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>3) L0 incremental
backup taken on 4/8, but&nbsp;tape was&nbsp;pulled and shipped to DR
site</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>4) L1 incrementals
taken every night 4/9 - 4/14</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>5) Database crashes
on 4/15 due to full filesystem, database opens, but returns ORA-607 (See ORA-607.ora-code.com) and ORA-600 (See ORA-600.ora-code.com)
[4193] on any DML or DDL&nbsp;statements</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>6) Restore started,
but fails because it can't access L0 backup from 4/8 since the tape has been
sent off site (no copy retained - duh!)</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>7) L0 backup from
4/8 changed to unavailable in rman</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>8) Restore
restarted
and all datafiles from 4/7 L0 backup are restored
successfully</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>9) Recovery begins
restoring &amp; applying 750 logs from all week long</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>10) I abort the
recovery because the restored logs are going to fill up the filesystem again
(poor planning on my fault) and I don't feel like manually moving them off
every
2 hours since I am dreadfully in need of some sleep by this
point</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>11) I restart the
recovery after changing the archive log desination to a filesystem with plenty
of space</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>12) At this point,
rman skips 400 archive logs and instead applies the incremental backup from
4/14, then continues to apply the remaining logs up until the morning of 6:30
(which is where I "set until time" to), then it says recovery is
complete</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>13) I open the
database with resetlogs and everything seems peachy so far</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>It seems to me that
if I hadn't aborted the recovery at step 10, rman would have continued applying
all ~750 logs, but since I aborted it and then restarted, when it reevaluated
the position of the database (SCN in datafiles&nbsp;vs.&nbsp;backups, etc.) it
saw that it could now apply the incremental L1 even though it's base L0 backup
(from 4/8)&nbsp;was never restored, due to the application of redo past the
time
that it's base L0 backup was taken. Does this sound correct?&nbsp; I'm just
trying to make sure I understand exactly what happened.&nbsp; Anyone else ever
seen a recovery like this?</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial size=2>Thanks in advance
for any feedback and taking the time to read all this!</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2>Brandon</FONT></SPAN></DIV>
<DIV><SPAN class=905565815-17042006><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV></BODY><!--[object_id=#oneneck.com#]--><FONT
face=Tahoma size=2><FONT color=#0000ff>
<P>Privileged/Confidential Information may be contained in this message or
attachments hereto. Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind. Opinions, conclusions and
other information in this message that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it.</P><
/FONT></FONT></HTML>