Derby Database Seg0 folder .dat files growing too large

Hello experts,

I am running a program called Mirth on a Derby database, and the .dat files that exist in the seg0 directory contain one file for each user table, system table, and index (known as conglomerates) apparently.

My seg0 folder has .dat files that are at 50 GB and growing, and I would like to know if it's possible to shrink those files, or reduce the file size.  They cannot simply be deleted for many reasons, sadly.


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
Hi Rob,
I never worked with Derby database but since nobody came here to help you I made some researches and found that you can't shrink the files but compress them.
Here's an article that teaches how do compress a Derby database. Hope that can help you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
robthomas09Author Commented:
I ended up uninstalling Mirth after exporting my channels and reinstalling mirth and all of the space freed up.
Mirth installs by default to Derby. It is not, however,  recommended as the hosting database when used in a production setting. Depending on your preference and hosting OS, you may select from database templates backed by drivers which are part of the install. These include PostgreSQL, MySQL, Oracle, or SQLServer.

It is relatively simple to switch databases using the Mirth Connect Server Manager utility. Each time you switch to a new database, you begin with a vanilla instance and will need to import previously exported channels, code templates, alerts, etc.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.