| 1. |
How To Detect Applications And Users That Hold Transactions Open Too Long? |
|
Answer» To do this, you need Firebird 2.1 or a higher version. FIRST, run gstat tool (from your Firebird installation’s bin directory), and you’ll get an output like this: Now, connect to that database and query the MON$TRANSACTTONS table to get the MON$ATTACHMENT_ID for that transaction, and then query the MONSATTACHMENTS table to get the user name, application name, 1P address and even PID on the client machine. We are looking for the oldest active transaction, so in this case, a query would look like: SELECT ma.* To do this, you need Firebird 2.1 or a higher version. First, run gstat tool (from your Firebird installation’s bin directory), and you’ll get an output like this: Now, connect to that database and query the MON$TRANSACTTONS table to get the MON$ATTACHMENT_ID for that transaction, and then query the MONSATTACHMENTS table to get the user name, application name, 1P address and even PID on the client machine. We are looking for the oldest active transaction, so in this case, a query would look like: SELECT ma.* |
|