I'm trying to use Jaybird to validate a database before start the
update process of my database definition.
This validation is necessary to prevent the update of a corrupted database.
On 25-11-2019 13:52, Roberto Vieweg jjw.roberto.fireb...@gmail.com
[firebird-support] wrote:
> I'm trying to use Jaybird to validate a database before start the
> update process of my database definition.
>
> This validation is necessary to prevent the update of a corrupted database.
What is the
I was trying to shutdown a Firebird 2.1 using the Jaybird 3.x to validate
the database.
I wasn't abble to shutdown it like "gfix -shut multi -force 0
remote_server_host:database"
So, when I perform the validate using the jaybird service I got this:
java.sql.SQLException: bad parameters on attach
Sorry, my fault!
The problem was the "time" between perform the SHUTDOWN and the VALIDATION.
I just add a 1 second "sleep" between the shutdown and validate, and it
works!
FBMaintenanceManager mgr = .. ;
mgr.shutdownDatabase(FBMaintenanceManager.SHUTDOWN_FORCE, 0);
Thread.sleep(1000); // hol
On 25-11-2019 15:25, Roberto Vieweg jjw.roberto.fireb...@gmail.com
[firebird-support] wrote:
> The problem was the "time" between perform the SHUTDOWN and the VALIDATION.
>
> I just add a 1 second "sleep" between the shutdown and validate, and it
> works!
>
> FBMaintenanceManager mgr = .. ;