Re: Data corruption

  • From: Jared Still <jkstill@xxxxxxxxx>
  • To: peterdixon001@xxxxxxxxxxx
  • Date: Mon, 18 Apr 2005 13:33:48 -0700

> 
> #corrupt one block
> dd conv=notrunc if=/dev/zero of=/u01/oradata/dv03/corrupt.dbf bs=8192 
> seek=10 count=1
> 
> 
This bit will actually work better if you use something other than /dev/zero 
to wipe out a block.

I used a file of 1048576 'Y' characters.

If you use /dev/zero, the table just disappears from the file, though still 
in the DD.
( Oracle initializes its files with chr(0))

perl -e 'for ($i=1;$i<=2**20;$i++){print "Y"}' >| yes.txt

dd conv=notrunc if=yes.txt of=/u01/oradata/dv03/corrupt .dbf bs=8192 seek=10 
count=1



-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
//www.freelists.org/webpage/oracle-l

Other related posts: