How to repair a corrupt or dirty 2003 exchange database

Step 1: Have a backup of EDB and STM file.

Make a copy of the EDB and STM files before repairing it. You can find out the name of the EDB and STM files in Exchange System Manager by accessing the database properties. The Database page gives the file paths and names.

EDB to PST Converter

Quick Solution

EdbMails for EDB to PST Converter is a free tool to convert online & offline corrupt and healthy EDB Files to PST, Live Exchange and Office 365. EDB Download Button

Step 2: Disk space requirement for repair

Ensure that you have enough space to repair the EDB file. You require 20% more space than the size of the EDB and STM files. If you don’t have space on the database file drive, use command line to create the temp files on a different drive. You need 110% of your database file size for defragmentation.

Step 3: Repair the Edb file

Run Eseutil in /P [repair mode]

This command /p is used to repair data at page and ESE table level instead of application level. It will replace the corruption in the database with the white-space which can be removed with the help of eseutil/d mode.

Easy way to do this is to keep database files .EDB and .STM in the same directory.
Eseutil is located in the \exchsrvr\bin directory

eseutil /p c:\exchsrvr\edbdata\priv1.edb /sc:\exchsrvr\edbdata\priv1.stm /tc:\temp.edb

Command line will repair priv1.EDB located on C: along with its matching .STM file and will put the temporary file on the C: drive.

If your database file .STM is not matching with the .EDB file or it has a problem that is blocking repair, you can add the /i switch to repair in command line.
The /i option skips the signature mismatch error in repair check phase. The EDB and the STM file will receive new signatures while repair.

Repair can take for few hours. Once it finishes, it will create a detailed log file called .integ.raw.

Step 4: Defragment the EDB file

Exchange Defragmentation Mode

Command: Eseutil /d < edb_file_path >

This command is for Defragmentation. Rearrange the data stored in the hard disk and also reduces the disk space. Performance will be increased in the speed for accessing and retrieval of data from the database. Defragmentation rebuilds the indexes and space trees.

Step 5: Clear Transaction Log

Now the EDB file is restored, you can backup all the transaction logs for your database otherwise it won’t mount or run the integrity check.

Step 6: Run Integrity Check and remount

Run isinteg -s ServerName -test -alltests

When you run Isinteg, copy the database files back in the location from which it is mounted. At the end of an Isinteg run, you may see warnings. This is normal as Isinteg was originally created as an internal test utility. You ensure you have zero errors reported. If you find even one error, you should run Isinteg again.

EDB to PST Converter

Quick Solution

EdbMails for EDB to PST Converter is a free tool to convert online & offline corrupt and healthy EDB Files to PST, Live Exchange and Office 365. EDB Download Button

If a few runs of Isinteg do not decrease the error count down to zero, then you should not rely on this database in production. You should move mailboxes from it.

Now Remount the database and verify.

Buy Now and avail Upto 75% plus off along with an Edb to PST, Edb to Office 365, Edb to Live Exchange Migrator license from EdbMails! Visit www.edbmails.com for further details.

Leave A Reply

Your email address will not be published.