DBVerify can delete contents of datafiles

I was running Oracle DBVerify against my datafiles post-recovery to look for any corruption.  Things were going fine until I made a mistake in the syntax of my command.  I accidentally set the logfile parameter to the datafile name.  DBVerify completely erased the contents of my datafile.

system.dbf before my mistake:
770M Sep 7 23:42 system01.dbf

I ran this command:
dbv blocksize=8192 file=system01.dbf logfile=system01.dbf

After dbverify:
 0 Sep 8 12:37 system01.dbf

Lesson learned.  Be very careful when cutting and pasting!

Comments

Popular posts from this blog

Auditing user logon and logoff in Oracle

RMAN Restore vs. Recovery - what's the difference?