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