Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re:How does one manually corrupt a database (database file, redo logs and backups)
I believe a simple way to corrupt an oracle datafile, redolog, controlfile could be:
echo "<somewhat string>" >> oracle_file
This should alter the file offset (I don't know if this is the correct technical term) for every binary file and thus making it corrupted towards and Oracle db. The command should also work for both unix and windows.
Regards,
Alessandro
< cut >
> problem. I have tried overwriting the binary files, but being simpled-minded
> I was using vi. I thought about using the unix dd utility - unfortuantely I
> do not have enough experience to be surgical (easy to mess up the first few
> blocks, but what about the middle?). Can I use the same method to isolate
> corruption to various parts of the database (ie, database files, redo logs
> or rman backups)?
< cut >
-- http://www.freelists.org/webpage/oracle-lReceived on Sat Sep 02 2006 - 16:48:13 CDT