[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Interbase

Posted on 2001-07-11
3
Medium Priority
?
922 Views
Last Modified: 2012-06-27
Can we compact or repair an interbase database like it exists with a  Microsoft access database ?
0
Comment
Question by:SChatel
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
YodaMage earned 200 total points
ID: 6274435
Interbase uses utilities to repair corruption. Gfix comes with Interbase. All compacting is done by either sweeping the DB, or through backup and restore through utilities like Gbak, which also ships with Interbase.

There are many good third party tools available which will do these tasks, IB Admin 3, and IB Expert 1.2 are both very good with an easy GUI front end.
0
 
LVL 2

Expert Comment

by:bego
ID: 6288691
As YodaMage said, IB comes with it's own tools for fixing databases. Moreover, there is a lot utilities over there.

Some notes:
- sweep does not shrink (or compact the database). Once a database allocates some space on the disk, it never releases it - deallocating / reallocating disk space is a costly process and may have impact on database performance. Thus the only way to compact the database is to perform backup / restore.

Example:

rem Project Backup
c:
cd Program Files\Borland\Interbase\Bin
del D:\User\Data\FridayBk.log
gbak -b D:\User\Data\Friday.gdb D:\User\Data\Friday.gbk -user SYSDBA -password masterkey -v -y D:\User\Data\FridayBk.log
pause
rem Backup End

rem Project Restore
c:
cd Program Files\Firebird\Bin
del D:\User\Data\FridayRs.log
gbak -r D:\User\Data\Friday.gbk D:\User\Data\Friday.gdb -user SYSDBA -password masterkey -v -y D:\User\Data\FridayRs.log -p 4096
pause
rem Backup End

For more info on what the switches mean see IB Operations Guide. There you can also find info on repairing database - this process is specific from case to case and there is no universal solution for every problem. Check the Operations Guide. All the docs and lots of more info is available from http://www.ibphoenix.com

HTH,

bego
0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6721790
You all set?

Please close question.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question