The database will close when all connections to it are closed. So you must still have some connections open (Are you using a connection pool??)

Also see http://h2database.com/html/grammar.html#set_db_close_delay

Is there still the lock file present?. If that is still present then there is an open connection somewhere....

I close and open my databases all the time from the same JVM and copy them around, so it does work.

On 11/11/2013 8:13 AM, Mike Goodwin wrote:
Hi,

I have found I am unable to move the database directory after a shutdown. I have tried waiting, gc(), calling for a shutdown (using the SHUTDOWN sql command). I have made sure there are no more connections open.

Is there any expectation that it should be possible to close a database after shutting it down? Has anyone succeeded in doing so?

- mike
--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to