
An Overview of Queue Database Files
All the different queues are stored in a single ESE database. By default, this queue database is located at C:\Program Files\Microsoft\Exchange Server\TransportRoles\data\Queue.
Like any ESE database, the queue database uses log files to accept, track, and maintain data. To enhance performance, all message transactions are written first to log files and memory, and then to the database file. The checkpoint file tracks the transaction log entries that have been committed to the database. During an ordinary shutdown of the Microsoft Exchange Transport service, uncommitted database changes that are found in the transaction logs are always committed to the database.
Circular logging is used for the queue database. This means that the history of committed transactions that are found in the transaction logs is not maintained. Any transaction logs that are older than the current checkpoint are immediately and automatically deleted. Therefore, the transaction logs cannot be replayed for queue database recovery from backup.
Table 2 lists the files that constitute the queue database.
Table 2 Files that constitute the queue database
|
File
|
Description
|
|---|
|
Mail.que
|
This queue database file stores all the queued messages.
|
|
Tmp.edb
|
This temporary database file is used to verify the queue database schema on startup.
|
|
Trn*.log
|
This transaction log records all changes to the queue database. Changes to the database are first written to the transaction log and are then committed to the database. Trn.log is the current active transaction log file. Trntmp.log is the next provisioned transaction log file that is created in advance. If the existing Trn.log transaction log file reaches its maximum size, Trn.log is renamed to Trnnnnn.log, where nnnn is a sequence number. Trntmp.log is then renamed Trn.log and becomes the current active transaction log file.
|
|
Trn.chk
|
This checkpoint file tracks the transaction log entries that have been committed to the database. This file is always in the same location as the mail.que file.
|
|
Trnres00001.jrs
Trnres00002.jrs
|
These reserve transaction log files act as placeholders. They are only used when the hard disk drive that contains the transaction log runs out of space to stop the queue database cleanly.
|