Become a Columnist Microsoft Exchange Site Microsoft Support SiteMSDN Exchange Site

   

Subscribe to OutlookExchange
Anderson Patricio
Ann Mc Donough
Bob Spurzem
Brian Veal
Catherine Creary
Cherry Beado
Colin Janssen
Collins Timothy Mutesaria
Drew Nicholson
Fred Volking
Glen Scales
Goran Husman
Guy Thomas
Henrik Walther
Jason Sherry
Jayme Bowers
John Young
Joyce Tang
Justin Braun
Konstantin Zheludev
Kristina Waters
Kuang Zhang
Mahmoud Magdy
Martin Tuip
Michael Dong
Michele Deo
Mitch Tulloch
Nicolas Blank
Pavel Nagaev
Ragnar Harper
Ricardo Silva
Richard Wakeman
Russ Iuliano
Santhosh Hanumanthappa
Steve Bryant
Steve Craig
Todd Walker
Tracey J. Rosenblath
 
 


Often people ask whether or not they need to do any maintenance on their Exchange Databases. Exchange 5.5 performs Online Maintenance, which takes care of most things, however, there may be some things you need done that isn't looked after by the Online Maintenance.

One of the things Online Maintenance does, is moves all the white space to the back of the databases (into the writable area). If you have information and users that change a lot, then this helps keep your database size regulated. However it won't make the actual size any smaller.

If your having trouble backing up Exchange, because your running out of room, then you may want to consider compacting the database.

This is an Offline task, which basically means, you have to shut down Exchange services, so if you plan on doing this, make sure you plan your downtime correctly. On this note, I wouldn't recommend performing this too often, once a year is adequate, or if when you have a period where you may have deleted lots of information and users.

To do this, follow these steps.

  1. Stop the Information Store and Directory Service.

  2. From a command prompt, type the following - eseutil /d <path to database>\pri.edb /bpri.bak. Make sure you have enough room for a backup of the database before proceeding. (Like always, backup, backup, backup, before performing ANY changes in your databases)

  3. Click OK to compact the PRI.EDB.

Follow the same process for the PUB.EDB and the DIR.EDB. When finished, restart the Information Store and Directory Store Services, and make sure users can log on. When satisfied, delete the *.BAK files.

This process works quite well. I've seen an 8GB PRI.EDB which compact to 800MB! This case was a little extreme, however not really that unusual. Make a note on your before and after, and you can have a big sigh of relief when your backups no longer run until 10am the next day!

 

  


Disclaimer: Your use of the information contained in these pages is at your sole risk. All information on these pages is provided "as is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Stephen Bryant or Pro Exchange. OutlookExchange.Com, Stephen Bryant and Pro Exchange shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Copyright Stephen Bryant 2008