Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Block corruption using dd command.

JhilMay 25 2016 — edited May 25 2016

Hi

I have seen different ways to corrupt Oracle database files using dd command.

What i have noticed few commands has some extra parameters.

and also all 5 commands exactly not similar.

I know

if  => input file ,  of => output file  and bs => block size

What about dd , seek , count conv=notrunc on the statememts ?

Please provide exactly (necessity) parameters to corrupt oracle db files at OS level ?

do we need to use EOF option everytime ?

$ dd if=/dev/zero of=/home/oracle/users01.dbf  bs=8192 seek=139 count=2 conv=notrunc < backup validate tablespace users format ‘/u02/oradat/arjun/%U%s%d%t’;

$ dd if=/dev/zero of=/home/oracle/users01.dbf  bs=8192 conv=notrunc seek=136 count=2

$ dd of=/home/oracle/users01.dbf bs=8192  conv=notrunc seek=130 <<EOF

$ dd of=/home/oracle/users01.dbf bs=8k    count=1 seek=11 << EOF

$ dd of=/home/oracle/users01.dbf bs=8192  conv=notrunc seek=60 << EOF

> corruption for test

> EOF

FYI : making block corruption for testing with personal database and not with Production.

Need for some testing for replication purpose.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2016
Added on May 25 2016
1 comment
1,736 views