.ora-code.com

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
Restore and Recover Fuzzy datafiles

Restore and Recover Fuzzy datafiles

2006-05-25       - By Mark W. Farnham
Reply:     1     2     3     4     5     6     7     8  

Assumption: By fuzzy you mean a datafile that was copied by an operating
system utility without the tablespace being put in backup mode so that first
changes to blocks after the beginning of backup have not been redo logged as
the whole block.

If that is what you mean, then yes.

If the particular file was simply not written to during the operating system
copy such that there are no ?fractured blocks? then the recovery can be made
by telling the database to end backup.

That?s no way to run the railroad, but you might get lucky. Verifying that
you actually did get lucky is usually done by making sure that block
checking is on and running an export of everything in the tablespace.

If you get an invalid block and if you have a different backup and the
thread of relevant redo logs, and a utility that will allow you to replace
the set of sectors that make up an Oracle block from one file to another, it
is possible to replace invalid blocks with valid blocks. Of course this is a
statistical game and you if the file contains blocks that are chronically
?write hot? during the time the invalid backups are taken, the odds are
skewed against you.

Before you could tell the database to ?end? backup, you also had to patch
the beginning and ending blocks of the file (lie to Oracle) so that Oracle
did not consider the file to be ?fuzzy,? but I doubt you?re working with a
vintage of the Oracle software that old. If you are, you?ll need some kind
of binary block editor.

All results of such attempts should be looked at with a jaundiced eye in
terms of future supportability.

Also, if you must mix ?fuzzy? backups of the same file to get all
?unfractured? blocks, it is far easier to recover the oldest version of the
file (again with the assumption that you have the full thread of redo logs)
with any required ?fractured? blocks in the oldest file replaced with
younger versions of the block.

I hope I answered your question. Maybe someone else on the list knows a
better way to proceed, and given precise information about your system,
Oracle vintage and all that someone may have better options for you. All the
risks of whether you actually made it work and the suitability of using any
resulting data for any purpose are the liability of someone other than me or
my company. (probably yours.)

Regards,

mwf

-- --Original Message-- --
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]On
Behalf Of Sinardy Xing
Sent: Thursday, May 25, 2006 2:00 AM
To: Oracle-L Freelists
Subject: Restore and Recover Fuzzy datafiles

Hi Guys,

Have you ever restore and try to recover fuzzy datafiles?


--
Kind regards,

Sinardy

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas
-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="cid:filelist.xml@(protected)">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
 <o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:Zoom>0</w:Zoom>
 <w:DocumentKind>DocumentEmail</w:DocumentKind>
 <w:EnvelopeVis/>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
  {font-family:Tahoma;
  panose-1:2 11 6 4 3 5 4 4 2 4;
  mso-font-charset:0;
  mso-generic-font-family:swiss;
  mso-font-pitch:variable;
  mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
  {mso-style-parent:"";
  margin:0in;
  margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:12.0pt;
  font-family:"Times New Roman";
  mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
  {margin:0in;
  margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:12.0pt;
  font-family:"Times New Roman";
  mso-fareast-font-family:"Times New Roman";}
span.EmailStyle15
  {mso-style-type:personal-reply;
  mso-ansi-font-size:10.0pt;
  mso-ascii-font-family:Arial;
  mso-hansi-font-family:Arial;
  mso-bidi-font-family:Arial;
  color:navy;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;
  mso-header-margin:.5in;
  mso-footer-margin:.5in;
  mso-paper-source:0;}
div.Section1
  {page:Section1;}
-->
</style>
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Assumption:
By fuzzy you mean a datafile that was copied by an operating system utility
without the tablespace being put in backup mode so that first changes to blocks
after the beginning of backup have not been redo logged as the whole block.<o:p
></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>If that is
what you mean, then yes.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>If the
particular file was simply not written to during the operating system copy such
that there are no &#8220;fractured blocks&#8221; then the recovery can be made
by telling
the database to end backup.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>That&#8217
;s no
way to run the railroad, but you might get lucky. Verifying that you actually
did get lucky is usually done by making sure that block checking is on and
running an export of everything in the tablespace.<o:p></o:p></span></font><
/span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>If you get
an invalid block and if you have a different backup and the thread of relevant
redo logs, and a utility that will allow you to replace the set of sectors that
make up an Oracle block from one file to another, it is possible to replace
invalid blocks with valid blocks. Of course this is a statistical game and you
if the file contains blocks that are chronically &#8220;write hot&#8221; during
the time
the invalid backups are taken, the odds are skewed against you.<o:p></o:p><
/span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Before you
could tell the database to &#8220;end&#8221; backup, you also had to patch the
beginning
and ending blocks of the file (lie to Oracle) so that Oracle did not consider
the
file to be &#8220;fuzzy,&#8221; but I doubt you&#8217;re working with a vintage
of the Oracle
software that old. If you are, you&#8217;ll need some kind of binary block
editor.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>All
results of such attempts should be looked at with a jaundiced eye in terms of
future
supportability.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Also, if
you must mix &#8220;fuzzy&#8221; backups of the same file to get all &#8220
;unfractured&#8221; blocks,
it is far easier to recover the oldest version of the file (again with the
assumption that you have the full thread of redo logs) with any required &#8220
;fractured&#8221;
blocks in the oldest file replaced with younger versions of the block.<o:p></o
:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>I hope I
answered your question. Maybe someone else on the list knows a better way to
proceed, and given precise information about your system, Oracle vintage and
all that someone may have better options for you. All the risks of whether you
actually made it work and the suitability of using any resulting data for any
purpose are the liability of someone other than me or my company. (probably
yours.)<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Regards,<o
:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>mwf<o:p><
/o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy face=Arial>
<span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if
!supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:black'>----
-Original
Message-- --<br>
<b><span style='font-weight:bold'>From:</span></b>
oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]<b><span
style='font-weight:bold'>On Behalf Of </span></b>Sinardy Xing<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, May 25, 2006 2:00
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Oracle-L Freelists<br>
<b><span style='font-weight:bold'>Subject:</span></b> Restore and Recover Fuzzy
datafiles</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"
><span
style='font-size:12.0pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p><
/span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>Hi Guys,<
/span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p><
/span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>&nbsp;</span>
</font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p><
/span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>Have you ever
restore and try to recover fuzzy datafiles?</span></font><font color=black><span
style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>&nbsp;</span>
</font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p><
/span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'><br>
-- <br>
Kind regards,<br>
<br>
Sinardy </span></font><font color=black><span style='color:black;mso-color-alt:
windowtext'><o:p></o:p></span></font></p>

</div>

</body>

</html>