Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Data corruption
>
> #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 -- http://www.freelists.org/webpage/oracle-lReceived on Mon Apr 18 2005 - 16:37:55 CDT
![]() |
![]() |