Subject | Re: [Firebird-Java] Re: Shutting down a database |
---|---|
Author | Juan Pedro López Sáez |
Post date | 2003-07-30T16:27:48Z |
Hello,
I can shut down my database passing to the connection string something
like this:
"jdbc:...mydatabase.db?shutdown=8&shutdown_delay=60"
The problem comes when I want to bring the database online.
I tried the following:
"jdbc:...mydatabase.db?online"
without success. After that the database is still shut down.
I supposed isc_dpb_online would do the task but it seems I was wrong.
Any suggestions?
Thank you.
Juan Pedro Lopez.
Juan Pedro López Sáez
ALTIRIA TIC, S.L.L.
www.altiria.com
I can shut down my database passing to the connection string something
like this:
"jdbc:...mydatabase.db?shutdown=8&shutdown_delay=60"
The problem comes when I want to bring the database online.
I tried the following:
"jdbc:...mydatabase.db?online"
without success. After that the database is still shut down.
I supposed isc_dpb_online would do the task but it seems I was wrong.
Any suggestions?
Thank you.
Juan Pedro Lopez.
> > This is very simple question: is there any way to shut down a--
> database
> > directly from a java program?
> >
> > I know gfix does this task, but I would like to integrate it into my
> > java application.
>
> I have never tried, but there's a DPB parameter isc_dpb_shutdown. You
> can try to pass following with connection string:
>
> jdbc:...my.gdb?shutdown=<value>
>
> where possible values are combination of following flags:
>
> 1 - shutdown cache
> 2 - shutdown attachments
> 4 - shutdown transaction
> 8 - shutdown force
>
> If you suceed, please report it here, we will include this in FAQ.
>
> Best regards,
> Roman Rokytskyy
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> click here
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Juan Pedro López Sáez
ALTIRIA TIC, S.L.L.
www.altiria.com