Subject | Re: [firebird-support] Re: How to avoid database to be corrupted? |
---|---|
Author | Helen Borrie |
Post date | 2003-09-17T10:06:09Z |
At 08:31 AM 17/09/2003 +0000, you wrote:
not supported on your platform. The other name for "forced writes off" is
"asynchronous writes".
So, the two things to do are
1) find out whether your platform supports asynchronous writes
2) if yes, then use gfix to enforce *synchronous* writes (= forced writes on)
gfix -w sync c:\databases\MyDB.gdb
--- if no, then something else caused your corruption, e.g. someone was
doing a filesystem copy on the file while the database was in use, someone
logged in to the database during a restore and tried to update something or
create something...or something else hitherto unknown. <g> I do recommend
raising it with Neil McCalden in firebird-devel, and see whether he can
shed some light.
heLen
>--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>If nothing shows under Attributes then forced writes is either 1) off or 2)
>wrote:
> > At 06:22 AM 17/09/2003 +0000, you wrote:
> >
> > >This firebird server is running in sun sparc. Firebird version is
>S0-
> > >V1.0.0.796 Firebird 1.0.
> > >How do I check on forced-writes ?
> >
> > Use the -h[eader] switch of gstat and read the report for
>Attributes (near
> > the bottom of the output).
> >
> > gstat -header c:\databases\MyDB.gdb
> >
> > heLen
>
>There is nothing appear under attributes. is there any default value ?
not supported on your platform. The other name for "forced writes off" is
"asynchronous writes".
So, the two things to do are
1) find out whether your platform supports asynchronous writes
2) if yes, then use gfix to enforce *synchronous* writes (= forced writes on)
gfix -w sync c:\databases\MyDB.gdb
--- if no, then something else caused your corruption, e.g. someone was
doing a filesystem copy on the file while the database was in use, someone
logged in to the database during a restore and tried to update something or
create something...or something else hitherto unknown. <g> I do recommend
raising it with Neil McCalden in firebird-devel, and see whether he can
shed some light.
heLen