We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Compacting Databases Options

TheBull369 asked
Medium Priority
Last Modified: 2013-11-16
I would like to schedule a task to compact the mail databases I have on my server. What I would like to know is the documentation says the -b In-Place option is the recommended method. What are the advantages of this over the -B option which actually recovers disk space?? Are there downfalls to using the -B (In-place with file reduction) option???

Thank you
Watch Question


There are downfalls to compacting: http://www-1.ibm.com/support/docview.wss?rs=0&q1=compact+in-place&uid=swg21100318&loc=en_US&cs=utf-8&cc=us&lang=en

and: http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg21084388

Basically, you need to run it once to see how long it takes, and then make sure you don't run it at the same time as your backup program.  In-Place, I think, only matters if you have transactional logging turned on, and Notes will switch to copy style if it detects structural changes.

I used the -B setting for schedule tasks to reduce the white space size of the database (in R4 databases especially) when there was a finite limit set on the database size.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


The biggest reason I want to run a compact on these is because we are starting to archive email which will reduce the mail file size and no sense wasting the space if a mail file is only using 37%.


Agreed.  The only problem I ever had was competing with backup, and then you get the "database is in use... message" in the log, so compact skips it because the backup service had a handle on it.


Thank you!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.