Subject Re: [firebird-support] how to run embedded firebird in a CD in
Author Don Gollahon
"Helen Borrie" <helebor@...> wrote in message
news:<5.2.0.9.2.20040211192342.0820fcf8@...>...
> At 06:52 AM 11/02/2004 +0000, you wrote:
> >I want to use embedded firebird as the database in my application,
> >but because on the CD the file is always set to readonly, and when I
> >try to connect to the database via jdbc, the system say Resource
> >Exception. no permission for read-write access to database
> >Reason: no permission for read-write access to database Error Code:
> >335544352 SQL State: HY000
> >does any one know, how to use the database in readonly mode?
>
> 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

I'm trying to do this programmatically using the IBOAdmin restore component.
How do you set this property there? Is there a setting in Params to add for
this?

>
> or
> use gfix:
>
> gfix -mode read_only /path/to/your/database
>
> heLen
> >
>
>