Subject | Re: Can I release a lock by invalid (uncomplete) session ? |
---|---|
Author | Adam |
Post date | 2006-11-20T22:53:35Z |
> When I tested about error cases, I unplug the computer's networkcable between client and server.
> Then I re-connect the computer's network cable. In some cases,uncomplete transaction (or invalid
> sessions?) keeps the lock then I cannot delete the specific row.(there is no reply to the Firebird).
Firebird doesn't use locks the way many other databases use locks.
I am guessing you are using a WAIT transaction.
>Not true. The Operating System will eventually tell Firebird the
> In this case, the only solution is restart Firebird?
connection is broken. By default on Windows and Linux, this takes 2
hours. After that time, your second query will succeed. Look in
Firebird.conf for the information about this timeout and how to reduce it.
Is there any method to detect invalid (or
> uncomplete transaction) process and kill it like an Oracle's "ALTERSYSTEM KILL SESSION".
>No, but it would be useful.
Adam