Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

6.12. Rebuilding a Database File from Logs

Problem

One of your databases has become corrupt and you want to restore it using only the transaction log files.

Solution

Using a graphical user interface

  1. Ensure that you have all log files from E0000001.LOG through the anchor log. If you don't have every log file created since the database was created (either because you lost one or because circular logging was on), you may have difficulty restoring the complete database contents.

  2. Move or rename the EDB and STM files for the target database. Don't delete them; you may want to be able to return to them later.

  3. Move the CHK files from the transaction log path for the SG. As with the EDB and STM files, your best bet is to keep these in case you need them.

  4. Make sure the IS service is running, either by checking the Services control panel applet or looking in the application event log for event ID 1001.

  5. Mount the target database.

  6. The store will create new EDB and STM files with the appropriate name in the specified database location.

  7. Wait for the IS to finish replaying the transaction logs.

Discussion

If you have an unbroken chain of transaction log files and PRIV1.EDB becomes corrupt, you can quickly and accurately recover the data store by dismounting the database and removing (or renaming, which is much safer) the existing CHK, EDB and STM files. When you attempt to remount the database, the IS will create new, empty EDB and STM files, then it will begin sequentially playing back log files to restore ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page