[firebird-support] Why I cannot use firebird services to validate a remote database

2019-11-25 Thread Roberto Vieweg jjw.roberto.fireb...@gmail.com [firebird-support]
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.

Re: [firebird-support] Why I cannot use firebird services to validate a remote database

2019-11-25 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
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

Re: [firebird-support] Why I cannot use firebird services to validate a remote database

2019-11-25 Thread Roberto Vieweg jjw.roberto.fireb...@gmail.com [firebird-support]
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

Re: [firebird-support] Why I cannot use firebird services to validate a remote database

2019-11-25 Thread Roberto Vieweg jjw.roberto.fireb...@gmail.com [firebird-support]
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

Re: [firebird-support] Why I cannot use firebird services to validate a remote database

2019-11-25 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
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 = .. ;