Either install a hex capable editor or install Cygwin, which has UNIX utilities in it like dd
UltraEdit is one such that I use.
Main Topics
Browse All Topicsfor testing puposes we need to corrupt few blocks in windows to test recovering them in Unix you can use the dd coomand to do that but how to do that in windows??
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This method will work on any platform, it is Perl. The windows Perl will ignore the "#!/usr/bin/perl" portion and take the .pl as an extension to signify it is a Perl program. If the Oracle Perl does not handle it (which it should) then you can use ActivePerl
I wrote and tested on Windows before I posted.
Business Accounts
Answer for Membership
by: schwertnerPosted on 2009-07-03 at 06:58:20ID: 24772366
Create own tablespace
w_partion) _.dbf
create tablespace x datafile 'X01.DBF' size 10m;
create table x(A number,b varchar2(10)) tablespace x;
insert into x values(1,'CATS');
insert into x values(1,'DOGS');
Now i can see CATSin the file. This means i can edit a few
characters here or there that is in that block.
If you are using windows, it will not allow you to open the file with
another program like word.
So make a copy of the file.
copy the file using this
alter tablespace x offline
alter tablespace x online)
Another source:
Disclaimer severe damage may result. Make sure you have anything
necessary backed up. Do not do this on a production system!
The best advice would be to open a tar with oracle and get them to
supply info. But they won't do that ( at least easily ) when the
subject is how to corrupt a block.
Then proceed carefully and do some queries to identify what block you
want to wack!
The following script will ( perhaps ) work on a cooked file system.
*** Script supplied by oracle in the advanced rman class ...
> more corrupt.sh
#!/bin/ksh
FILE=${1:?'Parameter 1 should be set to file name'}
BLOCK=${2:?'Parameter 2 should be set to the block to be corrupted'}
dd of=$FILE bs=8192 conv=notrunc oseek=$BLOCK < CORRUPT
EOF
You may have to do something a little differently on a raw partition
and perhaps adjust the seek value ( from what block oracle thinks it is
) ( varies by os and logical volume manager setup )
> more bad_block.sh
#!/bin/ksh
dd if=/home/oracle/badb13.dd of=/dev/vs_4/r_(fill_in_ra
bs=8192 seek=13 count=1