Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to simulate Block Corruption?

Re: How to simulate Block Corruption?

From: Steven Lembark <lembark_at_wrkhors.com>
Date: Fri, 03 May 2002 09:52:34 -0800
Message-ID: <F001.004578BF.20020503095234@fatcity.com>

>
> Hello Gurus,
>
> I am in the process of testing recovery options from block corruptions.
> So, my setup requires a db which is having block corruption problem.
>
> How to simulate block corruption in db?

dd if=/vmunix of=$yourdbf bs=8k count=5;

you now have 40KBytes of corruption. If your dd has offset capability then use it to simulate corruption at various points in the file.

to simulate corruption in expanding the file use:

dd if=/dev/urandom bs=8k count=$howevermany >> $yourdbf;

--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steven Lembark
  INET: lembark_at_wrkhors.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri May 03 2002 - 12:52:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US