Subject | Re: [firebird-support] Re: how to run embedded firebird in a CD in readonly mode. |
---|---|
Author | Helen Borrie |
Post date | 2004-02-11T11:53:32Z |
At 11:39 AM 11/02/2004 +0000, robert_hollay wrote:
Embedded Server doesn't use it.
But I don't think you could make a whole embedded app that runs off a CD,
because the OS has to put an exclusive lock on the database file. I think
you'd have to have the application + client as an installable app on the
host machine, with a routine to create the database alias to point to the
location of the database on the CD-Rom drive.
I set up an embedded server app + read-only database on flash drive. That
worked fine, because it's a read-write device, so no problem with the
exclusive lock.
/heLen
>But is it possible to make a "true" read only embedded serverWhen it's used, the security.fdb can't be read-only - but the Windows
>installation on a CD? I mean, all the stuff on one CD (not only
>the database, but the server too).
>Can security.fdb be read only?
Embedded Server doesn't use it.
But I don't think you could make a whole embedded app that runs off a CD,
because the OS has to put an exclusive lock on the database file. I think
you'd have to have the application + client as an installable app on the
host machine, with a routine to create the database alias to point to the
location of the database on the CD-Rom drive.
I set up an embedded server app + read-only database on flash drive. That
worked fine, because it's a read-write device, so no problem with the
exclusive lock.
/heLen
>--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
>wrote:
> > At 06:52 AM 11/02/2004 +0000, you wrote:
> >
> > Yes.
> >
> > You actually have to make it a read-only database *before* you copy
>it to
> > the CD.
> > Either
> > restore it from a backup with the -mode read_only switch
> >
> > or
> > use gfix:
> >
> > gfix -mode read_only /path/to/your/database
> >
> > heLen
> > >
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>