What is the TEMP.EDB file and why is it created?

By | 2007-06-13

The TEMP.EDB file in Microsoft Exchange serves a specific purpose within the realm of database management. Let’s delve into its significance:

  • Temporary Database:
    • The TEMP.EDB file is associated with Microsoft’s Extensible Storage Engine (ESE), which is the underlying database engine used by Exchange.
    • It is used as a temporary database during certain operations.
    • Specifically, it comes into play when:
      • Creating Indices: When Exchange needs to create indices (such as for search or sorting purposes), it uses the TEMP.EDB file.
      • Storing Templates: It also serves as a storage location for templates used within the database.
  • Repair and Recovery:
    • Sometimes, Exchange databases encounter issues, such as corruption or damage.
    • In such scenarios, administrators can use tools like Eseutil and Isinteg to repair and recover the database.
    • The Eseutil utility, in particular, is powerful and can stitch together a damaged database, making it (almost) like new.
    • However, relying solely on repair tools is not recommended. Having regular backups is crucial, as repair can only work with existing data.
  • How to Repair an Exchange Database:
    • If your Exchange database won’t start, consider the following steps:
    • Verify Startability: Ensure that the database truly isn’t startable. Check event logs and other factors before concluding that repair is necessary.
    • Restart the Server: Sometimes, a simple server restart can resolve issues.
    • Make a Copy: Before repairing, create a backup copy of the database files.
    • Use the following command to repair the database using Eseutil:
      Eseutil /P c:\exchsrvr\mdbdata\DB1.EDB /Sd:\exchsrvr\mdbdata\DB1.STM /Te:\TEMPREPAIR.EDB
    • This command repairs DB1.EDB located on drive C, along with its matching .STM file on drive D, and places the temporary file on drive E.

Remember, while repair tools are valuable, maintaining backups and redundancy remains essential for robust data protection in Exchange environments.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.