Solved

Interbase

Posted on 2001-07-11
3
836 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 50 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now