Subject | Re: [ib-support] Re: [IBO] Backup and restore of a database |
---|---|
Author | Anthony Ison |
Post date | 2003-03-18T04:51:03Z |
> I just set sweep interval to 0 and run it manually when theI'm currently currently setting up our upgrade to ensure sweep interval is
> system is quiet. Backup and Restore should not be needed if
> the applications are running cleanly - if you are running
> BDE then THAT has to go first <g>.
set to 0. I plan to do a backup and restore instead of a sweep for
maintenance though... Does a sweep rebuild indices, etc?
> > Our upgrades involve a bunch of sql to reconstruct their currentdatabase
> > into the shape we want it... As such, it's a good idea to backup andif we
> > restore after this... I think our insert triggers would tear us apart
> > tried to pump to a new db...You are correct. It would be a good idea to shut everyone else down while
>
> If you are reconstructing the existing database, then you
> have to shut down everybody else anyway, so a final backup
> and restore should not be a problem. BUT I would still say
> that it is the wrong way to be doing things. You need a
> fully tested and working NEW database before you even start
> the upgrade, so simply dumping - with processing - the
> information from the OLD format should not be a problem. The
> only time I do online changes is if I simply need an extra
> field for something before we do a proper update.
an upgrade was running.... It seems to work if they are connected though
(sometimes...) :-) The important thing is that they don't try to do
anything - or it they do, you have good control over your try..except and
try..finally constructs....
I am interested in discovering a way of knowing whether the database is in
use before starting the upgrade.... Knowing the number of connected users
in this case would probably be sufficient... It would also be nice to be
able to lock out all users for a short period of time... This can't be done
by Interbase can it?
Cheers.
Anthony