Subject | RE: FB 2.5 shutdown & restore question |
---|---|
Author | Leyne, Sean |
Post date | 2013-04-03T19:12:08Z |
Rick,
- Create a new database with date in the filename
- write to/update FBAlias to replace the target database name with the new file name
- All existing connections will work until they disconnect
- new connection will use new database as soon as the alias is changed.
Sean
> We have a database that we want to wipe and replace every week,Rather than do that, have you considered:
> regardless of whether it is in use.
> Are these the correct steps? I notice that 'gfix -online' throws an error,
> probably because the database is online after gbak completes. Is there a
> way for the restore to not become online during (I found you can connect to
> the database in the middle of a restore, which breaks the
> restore) or after gbak?
- Create a new database with date in the filename
- write to/update FBAlias to replace the target database name with the new file name
- All existing connections will work until they disconnect
- new connection will use new database as soon as the alias is changed.
Sean